[ns] velocity and direction of mobile nodes

Firdaus Alias fudgy.geek at gmail.com
Mon Mar 16 08:31:10 PDT 2009


You can control the start/stop of the node via a tcl. The movement of the
nodes can also be generated by tcl. You may want to look at traffic
generators for ns-2 if you want to generate more complicated movements.

Firdaus.

On Mon, Mar 16, 2009 at 2:02 PM, Phenix <phenix_yw at hhu.edu.cn> wrote:

>
> Hi Rainn,
>
> I only know how to get the velocity and direction vector, as below:
>
> MobileNode * pMNode ;
> ....
> speed = pMNode->speed();
> dx = pMNode->dX();
> dy = pMNode->dY();
>
>
> I also want to know how to control the movement of mobile nodes, such
> as, nodes stop moving at a specific time.
>
> If anybody know, pls let me know.
> Thank you!
>
>
> Regards,
> Phenix
>
> --------------------------------------------------
> From: "Rainn" <rajstha2006 at gmail.com>
> Sent: Monday, March 16, 2009 12:45 PM
> To: <ns-users at ISI.EDU>
> Subject: [ns] velocity and direction of mobile nodes
>
> >
> > Dear all,
> >
> > I need to manipulate velocity and direction of mobile nodes in ns-2.
> Could
> > anyone please help me out "CODE" to manipulate this.
> > It's urgent .....
> > Thanks in advance.
> > Have a good days always.
> >
>
>


More information about the Ns-users mailing list