[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help needed



you can use OTcl call "load_flatgrid" to define the area (see
Marc Geris's tutorial on ns web page) . To get the node position,
you can try Mobilenode::getLoc() in ~ns/mobilenode.cc

Kun-chan Lan


> Hi,
>      I am working on simulating a new routing agent for mobile ad-hoc
> networks. I need to define a simulation area and I also need to get the
> x,y position of the nodes dynamically once they start moving in a
> wireless scenario.
> Can anyone tell me how to go about it.
> What classes I need to touch upon in the C++ and the OTCL hierarchies.
> Where can I get some information and documentation on these.
> Any help will be greatly appreciated
> Thanks & regards
> Rudhrakumar
>