[ns] Movement generation

karim zerioh zerioh at yahoo.co.uk
Mon Sep 19 07:55:14 PDT 2005


Hi,

In the case of my movement it is very simple to know
when the node arrives to a destination theoretically
because i have only movements in the direction of the
x axix or the y axis.
My question is, is it safe to do this? In the case of
multiple users there might be an overload that may
affect the simulated node movement. So i was thinking
about the existence of a function in ns that returns
the position of a node at any given time.


Thanks
--- René Orlando Lozada Gutiérrez
<rolozadag at mail.udistrital.edu.co> wrote:

> Hi,
> 
> You Know to indirect way the time that node arrive 
> 
> (yf-y0) = m(xf-x0)
> Vy=mvx
> V = sqrt(vy**2+vx**2)
> 
> y: position in y axis
> x: position in x axis
> v: speed
> m: straight's pending
> 
> bye
> René Lozada
> 
> -----Mensaje original-----
> De: ns-users-bounces at ISI.EDU
> [mailto:ns-users-bounces at ISI.EDU] En nombre de
> karim zerioh
> Enviado el: Viernes, 16 de Septiembre de 2005 08:03
> a.m.
> Para: ns-users at ISI.EDU
> Asunto: [ns] Movement generation
> 
> 
> Hi,
> 
> I want to generate node's movement.
> 
> now i'm doing the following:
> $ns_ at $time "$node_(0) setdest 100 200 50".
> 
> I want the node to go to a certain destination, then
> when it arrives to this destination i want it to go
> to
> an other destination.
> 
> So what i want is to be able to add setdest commands
> but depending on user's position not on time.
> 
> is this possible?
> 
> Thank you
> 
> 
> 		
>
___________________________________________________________
> 
> To help you stay safe and secure online, we've
> developed the all new Yahoo!
> Security Centre. http://uk.security.yahoo.com
> 
> 
> 


Send instant messages to your online friends http://uk.messenger.yahoo.com 



More information about the Ns-users mailing list