[Ns-developers] Node names

Gustavo Carneiro gjcarneiro at gmail.com
Thu May 15 12:48:28 PDT 2008


2008/5/15 Mathieu Lacage <mathieu.lacage at sophia.inria.fr>:

>
> On Thu, 2008-05-15 at 19:32 +0100, Gustavo Carneiro wrote:
> > I think NS-3 needs a "name" Node attribute.  This name could be very
> useful
> > in logging, as numbers are meaningless.  Comments?
>
> Would you mind outline a rough use-case for this ? i.e., how would user
> scripts use it ? How would you use this for logging ?


I think it's rather obvious how to use it, node->SetName("AccessPoint");

Logging code could use node->GetName to get a user friendly node name.

Really, there is not much more I can say about this subject.  Isn't it
obvious?... :-)

-- 
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert


More information about the Ns-developers mailing list