[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] setdest in a wireless scenario
Hi padma
I use the following function that I saw in an example to log the
movements of the MH but where is it logged (in what file and
directory)??
proc log-movement {} {
global logtimer ns_ ns
set ns $ns_
source ../ns-2.1b7a/tcl/mobility/timer.tcl
Class Logtimer -superclass Timer
Logtimer instproc timeout {} {
global opt node_;
$MH log-movement
$self sched 1
}
set logtimer [new Logtimer]
$logtimer sched 1
}
thanks
Babak
----- Original Message -----
From: Padmaparna Haldar <[email protected]>
Date: Tuesday, February 27, 2001 5:29 pm
Subject: Re: [ns] setdest in a wireless scenario
>
> Did you try to log node-movements? see wireless example scripts
> under~ns/tcl/ex for usage of log-movement.
> becoz it could be that what you see by printing "puts x=[$MH set
> X_]" is
> not correct since you donot explicitly call update_position(), the
> function that actually updates the node positions.
>
> --Padma.
>
> On Tue, 27 Feb 2001 [email protected] wrote:
>
>
> > Hi everybody
> > I'm trying to run a simple Mobile IP scenario. I try to make my
> mobile> node to move with this line of code
> >
> > $ns at 6.000000000000 "$MH setdest 100.0000000000 100.0000000000
> > 2.000000000000"
> >
> > but it doesn't work. Does anyone know what the problem could be? Why
> > doesn't setdest work?
> >
> > Thanks for your help
> > Babak
> >
>
> --
> ------------------------------------------------
> Be true to your work, your word, and your friend.
> --Thoreau
>
> Padmaparna Haldar
>
>
>