Re: [ns] signal strenght

2011-04-06 Thread Urlan Salgado de Barros
You must to insert in* sendUp()* method. I don't kwno what ns version you're using, so, let me take as example* ns2.29* and the browse source http://www.auto-nomos.de/ns2doku/wireless-phy_8cc-source.html : You can find* sendUp()* method at line *00306*. Inside* if (propagation_)*, situated at

[ns] Reference for 2 queues in C++ level for duplex link

2011-04-06 Thread dipjahid
Hello all, I am stuck at one point. I know that a duplex-link in ns is two simplex links. And each link has one queue (in my case RED queue) associated with it. But I have to communicate between these two queues in the C++ level so I have to have the references for these queues. Can anybody

[ns] HelloTimer function in ADOV of ns-2.30

2011-04-06 Thread molly
Hi,all. HelloTimer::handle(Event*) { agent-sendHello(); double interval = MinHelloInterval + ((MaxHelloInterval - MinHelloInterval) * Random::uniform()); assert(interval = 0); Scheduler::instance().schedule(this, intr, interval); } Originally, I read from a book, saying the

[ns] finding node by location

2011-04-06 Thread Sudhanshu Pant
Hi i want to know if the coordinates are given, then how to reretrieve the node located at that location or around the coordinate. like If(location = x,y) then {make the node root} -- Sudhanshu Pant --