Hi all
I've made some detailed anwers that cover exactly this issue: http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_tips.html Pedro Vale Estrela > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Pedro Vale Estrela > Sent: segunda-feira, 9 de Janeiro de 2006 16:43 > To: 'Martin Wenig' > Cc: [email protected] > Subject: Re: [ns] How acess the protocol agent of a mobil node > > > > 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. > > > > > > > > > > > > > > >
