[Ns-developers] helper API + python
Gustavo Carneiro
gjcarneiro at gmail.com
Mon Oct 27 07:29:30 PDT 2008
I have actually looked at fixing this in pybindgen side, but it turns out to
be rather complex and I was uninspired. I have not given up, but it might
take several weekends until I get this done.
2008/10/27 Mathieu Lacage <mathieu.lacage at sophia.inria.fr>
> I have filed bug 393 to keep track of this issue.
>
> On Tue, 2008-10-21 at 08:45 +0200, Mathieu Lacage wrote:
> > 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
> > >
> >
>
>
--
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