[Ns-developers] Node names

craigdo@ee.washington.edu craigdo at ee.washington.edu
Thu May 15 12:56:00 PDT 2008


> > > 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?... :-)

I think it is obviously a good thing.  A long time ago, I put a name in the
channel base class that is still there.  I put a name in the node base class
at one time, but it seems to be gone.  It wasn't considered terribly useful
when our most complicated simulation was two nodes over a point to point
link ;-)

I think it is very useful to be able to give these things human
understandable names.

+1 on the name.

-- Craig




More information about the Ns-developers mailing list