problem in understanding the 4 argument of .AddTraceSource

39 views
Skip to first unread message

Kapil Kumar sharma

unread,
Feb 25, 2020, 6:37:41 AM2/25/20
to ns-3-users
.AddTraceSource ("CourseChange",
"The value of the position and/or velocity vector changed",
MakeTraceSourceAccessor (&MobilityModel::m_courseChangeTrace),
"ns3::MobilityModel::CourseChangeCallback")

l have problem in understanding what the last argument means. From what i have understood from the previous example was that in "ns3::MobilityModel::CourseChangeCallback" meant a typedef for the tracedvalue type
Can anyone please elaborate on this?

Zhang Chenke

unread,
Sep 19, 2024, 5:17:51 AM9/19/24
to ns-3-users
I have the same problem as you. Have you solved it?

Tommaso Pecorella

unread,
Sep 19, 2024, 1:38:06 PM9/19/24
to ns-3-users
The 4th argument is to allow a check of the callback parameters. Meaning that the function you use as a callback must have the same parameters as the "MobilityModel::CourseChangeCallback" one.
Reply all
Reply to author
Forward
0 new messages