[Ns-developers] ns-3-object proposed for merge

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Mon Jan 28 12:49:39 PST 2008


hi gustavo,

On Sat, 2008-01-26 at 00:39 +0000, Gustavo Carneiro wrote:

>         
>         I would like to propose that we merge the above repository to
>         ns-3-dev
>         by next Wed Jan 30.    Please review and comment to the list.
>         
>         One remaining issue that is not implemented in the above is
>         whether we
>         rename QueryInterface and AddInterface to something
>         else.  What about
>         QueryObject and AggregateObject?
> 
> I think QueryInterface and AddInterface can remain as they are.  It
> really is just a matter of how you define "interface" :)  Unless you
> are determined to define interface as "pure" java-style interfaces,
> then all is ok from my point of view.

The thing is that for most people, an interface is really a very
java-like interface, which is really nothing like what we have.

I would thus tend to support tom's proposal.

> 
> Besides, AggregateObject has one big problem: it makes it sound like
> we can just add as many objects as we like freely.  This is not true.
> You can only aggregate objects _of different types_.  For instance,
> you cannot add two OlsrAgent objects to the same Node object; doing so
> will result in an assertion error.

This is true but it seems like a decent trade-off.

Mathieu



More information about the Ns-developers mailing list