[Ns-developers] helper API + python

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Mon Oct 20 23:45:42 PDT 2008


On Mon, 2008-10-20 at 15:40 +0100, Gustavo Carneiro wrote:

>         
>         2) modify the underlying c++ API to make
>         NodeContainer/NetDeviceContainer much more pervasive and avoid
>         Ptr<Node>
> 
> I am not sure this is correct.  I think it is the reverse.  For
> instance:
> 
> class WifiHelper
> {
>   NetDeviceContainer Install (NodeContainer c) const;
> };
> 
> If you simply extend it thus:
> 
> class WifiHelper
> {
>   NetDeviceContainer Install (NodeContainer c) const;
>   NetDeviceContainer Install (Ptr<Node> node) const { return Install
> (NodeContainer (node)); }
> };
> 
> Then you no longer need the implicit conversion anymore, and you don't
> break any API.

Indeed, that is another option. Thanks for the idea.

>         
>         2) is a reasonably-big API change which would require quite a
>         bit of API
>         breakage at the C++ level so, I wonder if 1) is something
>         which could be
>         fixed in the near future. I would be happy to give this a shot
>         if you
>         can give me a hint as to what needs to be done to implement
>         1).
> 
> The problem is that giving a hint of what needs to be done is almost
> as much work as doing it :|
> 
> The way it is currently supported is ugly but works, so I don't think
> this is urgent.  On the other hand my time is kind of short these
> days.  Also you could extend the C++ API without much effort IMHO.

ok.

> 
> I will try to evaluate the needed work over next weekend.  Sorry I
> can't do it sooner.  But if you can figure something out sooner, the
> better ;-)

I am focused on cleaning up our bug backlog so, I don't think I will get
to it earlier than you.

Mathieu
> 



More information about the Ns-developers mailing list