[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Node velocity
Hi Abdullah!
One way to do that is to write a TCL procedure which
retrieves the position etc. of a node and does whatever
you want with it. Then schedule it at the time you wish
it executed.
The mobility-calculations are done in the c++ part of
the mobilenode, but
the position (coordinates X, Y, Z) are bound c++-variables,
(see mobilenode{h,cc}), so you can access them easily from
your function.
The destination or direction isn't bound to TCL variables,
but are present as c++-variables, so you can easily bind them, too.
I hope, this helps...
Bye
Felix
Abdullah M Jibaly wrote:
> Hi,
>
> When using one of the mobile adhoc routing algorithms, how is it possible
> to find a node's position and velocity at a certain time?
>
> Any help would be greatly appreciated,
> Abdullah Jibaly