Thanks for your guides. However, the mobile node MUST decide when to move and
when to stop.
As far as I know the pause time, which can be set via dist command through TCL,
was used to determine the nodes stop behaviour, i.e. to stop at fixed time.
regards,
Husam Y. ALZAQ
Istanbul
Date: Wed, 16 May 2012 10:53:16 -0700
From: star_s...@yahoo.com
Subject: Re: [ns] Nodes movement in NS-2
To: bayan...@hotmail.com
as for as i understand , u should set pause time in set destination
command......
Muhammad Saleem Khan
Ph.D(CS) , COMSATS Institute of Information Technology, Islamabad.
Cell No# 0346-9754454
From: Husam Y ALZAQ <bayan...@hotmail.com>
To: ns-users@ISI.EDU
Sent: Wednesday, May 16, 2012 10:26 PM
Subject: [ns] Nodes movement in NS-2
Hello ns-users,I am using NS-2 for creating a mobile node. actually those nodes
are Wireless Sensor Nodes created by mannasim.
My scinario as the following
a mobile node will move between 4 places and wait for some time
and it issues 4 move commandes like
set_destination(new_x,new_y,SPEED);
set_destination(new_x1,new_y1,SPEED);
set_destination(new_x2,new_y2,SPEED);
set_destination(new_x3,new_y3,SPEED);
from C++ code. this pices of code allow a node to move from its
current location to new_x and new_y location at speed of SPEED value
However
just when the last command was executed, it didn't allow the previous ones to
finish.
So the mobile node will got to new_x3 and new_y3.
So my question is how we can wait until reaching the first place
before moving to the next one. In othe words, how we can know that the
mobile node has reached one desination and the event was successfully
finished
Thanks