[Ns-developers] Bug 215 Name Container

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Tue Dec 2 01:05:09 PST 2008


On Mon, 2008-12-01 at 21:56 -0800, Tom Henderson wrote:
> >>
> >> 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.?

'/' is critical to make the thing work because it is the element
separator. '*', '(', '|', and, ')' would be nice to disallow but are not
critical.

> 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");

I am fine with this if it can be implemented by adding another
constructor to the NodeContainer class:
class NodeContainer {
public:
  NodeContainer (std::string name);
};
and maybe, if needed:
  NodeContainer (const char *name);

Otherwise, I would be scared by the idea of adding yet another set of
overloaded Install methods.

Mathieu



More information about the Ns-developers mailing list