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

Re: [ns] nam and node movement



Hi Giri,

If you are using wireless nodes then every node animation event in the 
tracefile will cause the nodes to move.  The node event is handled in 2 
places.
netmodel.cc:NetModel::handle(const TraceEvent& e, double now, int 
direction)
wnetmodel.cc:WirelessNetModel::handle(const TraceEvent& e, double now, 
int direction)

Both are under the case 'n': sections.  In WirelessNetModel there is an 
explicit call to move the nodes to whatever x,y location is passed in.
For example, the trace file event
  n -t 1.0 -s 1 -x 10.0 -y 10.0
will move the node to 10.0,10.0.  If you don't want movement you should 
keep passing in the same values to -x and -y on each node animation 
event.

- John


On Sunday, April 29, 2001, at 04:12  PM, Giridhari Dash wrote:

> Hi,
> I found in the nam animation some nodes  jump over to other place(1ms 
> run interval). Any reason for that? Also I did not find a jump in the 
> position for those nodes in the trace file (not nam trace).
>
> Another question when I set log movement interval 0.5 sec, I get some 
> node movements recorded in between.
>
>    t      Ni  X     Y
> M 57.00000 7 445.96 328.44
> M 57.50000 7 448.42 324.01
> M 58.00000 7 450.88 319.58
> M 58.07716 7 451.26 318.90
> M 58.50000 7 451.26 318.90
> Is there any other cause for this movement? Again out of a whole bunch 
> of 20 nodes only couple of nodes do that.
>
> I appreciate any help..
> Giri
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>