[Ns-bugs] [Bug 215] Node names patch
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Sun Oct 19 16:51:35 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=215
------- Comment #8 from gjcarneiro at gmail.com 2008-10-19 19:51 -------
(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 ();
2. Everything gets put into the same namespace, nodes or whatever;
3. There should be trace path support for node names, otherwise what's the
point.
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.
--
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