Problem connecting to TraceSource

23 views
Skip to first unread message

Vikash Kathirvel

unread,
Nov 10, 2017, 3:38:29 AM11/10/17
to ns-3-users
I am struggling to figure out the correct path when using Config::Connect to connect to the child class.

For example, if i want to connect to an Rlc Trace Source of a UE I do:

Config::Connect (basePath + "/DataRadioBearerMap/*/LteRlc/TxPDU")

However, now i have added a Trace Source specifically for the AM mode and want to connect to it.
I tried,

Config::Connect (basePath + "/DataRadioBearerMap/*/LteRlcAm/MyCustomTrace")    //This does not work

Can anyone explain what i am doing wrong, and how i am supposed to connect to this new trace source of the child class since LteRlcAm inherits LteRlc?

Anh Help would be greatly apprciated.
Thanks.

Vikash Kathirvel

unread,
Nov 10, 2017, 4:43:56 AM11/10/17
to ns-3-users

I tried to match :
Config::MatchContainer amobjects = Config::LookupMatches(basePath + "/DataRadioBearerMap/*/$ns3::LteRlcAm/"); //Returns empty

The above code snippet returns an empty vector.

However if i do:

Config::MatchContainer objects = Config::LookupMatches(basePath + "/DataRadioBearerMap/*/LteRlc/");

This does return an object. But i am sure that the object is ns3::LteRlcAm because i matched the TIDs

Why doesn't the first code snippet return empty? 

Any help would be appreciated.
Thanks.

Tommaso Pecorella

unread,
Nov 10, 2017, 11:40:13 AM11/10/17
to ns-3-users
Hi,

the DataRadioBearerMap holds the base class pointers. That's why you call them by the base class name.

T.
Reply all
Reply to author
Forward
0 new messages