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                      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
}*

Poi pero credo che debba essere chiamata in qualche maniera. Il problema è
che non so come richiamarla ed usarla. Io l'ho scritta cosi nel mio tcl
file, ma non è successo nulla. Qualche suggerimento? Vi metto i link da cui
ho preso le informazioni:

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

Reply via email to