Hello friends,
I have doubts on how to connect trace sources using Config::Connect. From 'All Trace Sources' in documentation I can find the trace sources available. Then by looking into it I can also find Config Paths. But what is written in the documentation is not working all the time. For example--
ns3::WifiPhyStateHelper has one Trace source
State. And in the Documentation the config path is given as: "/NodeList/[i]/DeviceList/[i]/$ns3::WifiNetDevice/Phy/State"...............however in one example I find --"/NodeList/0/DeviceList/*/Phy/State/State" with that "$ns3::WifiNetDevice" part missing. [ example/wireless/wifi-sleep.cc example]
Surprisingly, both the config paths are working.
Why is that? How do I know which GetObject part is to be taken or not? Is there any redundancy? Is there any method to understand that?? Please help.
Thanks!