[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Relation among Delaylink,Simplelink,LinkDelayClass
Hi again,
i believe i've solved my doubts:
in
SimpleLink instproc init { src dst bw delay q {lltype
"DelayLink"} }
this line
set link_ [new $lltype]
creates a new LinkDelay connector and attaches it to
the link
Anyway, this approach doesn't follow the "standard" NS
philosophy based on OTCl/C++ linkage;what is the use
of LinkDelayClass in this context then ?
(by the way,the documentation refers to a Delay/Link
class, which probably was part of an old NS version)
Thanks.
--- Andrea Josi <[email protected]> ha scritto: > Hi,
> i would like to understand how is the LinkDelay
> connector used:
>
> * a TclClass is defined for this class
> (LinkDelayClass), what is the corresponding OTCL
> class ?
> from its definition :
>
> static class LinkDelayClass : public TclClass {
> public:
> LinkDelayClass() : TclClass("DelayLink") {}
> .....................................
>
> i would expect an OTCl class called "DelayLink";
> anyway, the only significant trace of DelayLink is
> in
> the LINK definition (which is defined as a
> standalone
> class, not as a splitobject!):
>
> Class SimpleLink -superclass Link
>
> { src dst bw delay q
> {lltype
> "DelayLink"} }
> ............................................
>
> What is the effect of "...{lltype "DelayLink"}..." ?
>
>
> Thanks a lot,
>
> Andrea.
>
>
>
>
>
>
______________________________________________________________________
> Do You Yahoo!?
> Il tuo indirizzo gratis e per sempre @yahoo.it su
> http://mail.yahoo.it
>
______________________________________________________________________
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it