Hello everybody!
I have a doubt about the log movements. I need the *coordinates* (x,y) of
nodes appear on the trace output (file .tr or file .nam). I have read in
some tutorials that I have to add the following procedure in the tlc file:
*proc log-movement {} {
global logtimer ns_ ns
set ns $ns_
source ../mobility/timer.tcl
Class LogTimer -superclass Timer
LogTimer instproc timeout {} {
global opt node_;
for {set i 0} {$i \< $opt(nn)} {incr i} {
$node_($i) log-movement
}
$self sched 0.1
}
set logtimer [new LogTimer]
$logtimer sched 0.1
}*
But, there's a problem, I don't know how to call it and use it. In my tlc
file i wrote that, but nothing happens. Could you help me, please? I links
where I took the information:
www.cse.cuhk.edu.hk/~cslui/CSC5480/<http://www.cse.cuhk.edu.hk/%7Ecslui/CSC5480/>
*patrick*.ps.gz
http://www.isi.edu/nsnam/ns/doc/node174.html
Thanks you very much for all the help!!!
Agus