[Ns-developers] Bug 215 Name Container
Tom Henderson
tomh at tomh.org
Mon Dec 1 21:56:33 PST 2008
>>
>> What are your thoughts about pushing this into ns-3.3?
I am OK with sliding this to ns-3.4, so long as we just try to resolve
the issues now and check it in early in the next open cycle, such as
later this month. The main open issues seem to be
1) what restrictions to place on strings, so that they interact well
with the attribute system or other things like trace file names. Should
it just be "/" or also "*", whitespace, etc.?
2) what helper API might look like. I hope that we could reduce this:
ApplicationContainer app = onoff.Install
(NameList::GetObjectOfName<Node> ("Node 0"));
to something like this:
ApplicationContainer app = onoff.Install ("Node 0");
Other comments:
- I don't have a strong opinion of the ordering of the parameters in
Add(); what is there now seems fine to me
- I would also prefer Find() instead of GetNameOfObject()
- As I mentioned earlier, I'd like also as part of the name system:
Ptr<NetDevice> Node::GetDeviceByName (std::string name); to allow for
non-unique device names such as "eth0"
- and Mathieu previously suggested to remove the Channel names
- I agree with Mathieu's suggestion to assert on a duplicate name
Tom
More information about the Ns-developers
mailing list