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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Martin Wenig
> Sent: quarta-feira, 4 de Janeiro de 2006 12:13
> To: Olivier Berho
> Cc: [email protected]
> 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.
> >
> >
> >
> >
> 


Reply via email to