[ns] How acess the protocol agent of a mobil node
Pedro Vale Estrela
pedro.estrela at gmail.com
Mon Jan 9 08:43:03 PST 2006
This kind of problems are made much easier using my otcl object inspector.
http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging3.html
Pedro Vale Estrela
> -----Original Message-----
> From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf
> Of Martin Wenig
> Sent: quarta-feira, 4 de Janeiro de 2006 12:13
> To: Olivier Berho
> Cc: ns-users at ISI.EDU
> Subject: Re: [ns] How acess the protocol agent of a mobil node
>
>
> Hi!
>
> in the tcl script you can add the following line after the creation of
> the node
>
> set node_($i) [$ns_ node] ;#create the node
> set ragent_($i) [$node_($i) set ragent_] ;#get the routing agent
>
> Hope that helps
> Martin
>
> Olivier Berho wrote:
> > Hi all.
> >
> > I would like to know if someone can explain me how sould I do to get an
> > access of the protocol agent of a mobile node.
> > The mobile node I use is declared in this way :
> >
> > set val(adhocRouting) AODV
> > .
> > .
> > .
> > $ns_ node-config -adhocRouting $val(adhocRouting) \
> > .
> > .
> > .
> >
> > How could I do to get the "name" of that variable in order to use some
> > methods I have develop in the body of the protocol AODV ?
> >
> > Thanks a lot.
> >
> > Olivier.
> >
> >
> >
> >
>
More information about the Ns-users
mailing list