[Ns-bugs] [Bug 215] Node names patch
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Oct 20 00:02:11 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=215
------- Comment #9 from mathieu.lacage at sophia.inria.fr 2008-10-20 03:02 -------
(In reply to comment #8)
> (In reply to comment #7)
> > Mathieu suggested the following to me a little while ago:
> >
> > class NameContainer
> > {
> > public:
> > void Set (Ptr<Object> obj, std::string name);
> > template <typename T>
> > Ptr<T> Get (std::string name);
> > };
> >
> > This allows any Object to have a unique name in the system, and doesn't cause
> > all nodes to carry a std::string. Thoughts?
>
> I don't like that:
> 1. We have would Node::GetId () but no Node::GetName ();
The main requirement is that we are trying to give a name to other objects than
nodes.
> 2. Everything gets put into the same namespace, nodes or whatever;
Yes, the use-case we are trying to support here is that of a global namespace
for objects.
> 3. There should be trace path support for node names, otherwise what's the
> point.
Good idea: /Names/xxx/...
> An intermediate possibility would be to put the names in the NodeList class.
> That would make a lot of sense, conceptually, and avoid the need for each node
> to carry a name.
That does not seem very desirable because other objects than nodes want names.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Ns-bugs
mailing list