Hello:
I don't know what's wrong in my code that I don't see any changes in the
color of flows in my nam.
Could you please tell me what can be wrong in my code?
here is part of my code:
set ns_ [new Simulator]
set tracefd [open simple.tr w]
$ns_ trace-all $tracefd
set namtrace [open simwrls.nam w]
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y)
$ns_ color 0 Black
$ns_ color 1 Blue
$ns_ color 2 Red
$ns_ color 3 Green
$ns_ color 4 Yellow
$ns_ color 5 Blue
$ns_ color 6 Green
$ns_ color 7 Red
$ns_ color 8 Yellow
$ns_ color 9 Black
......
$ns_ at [expr $Duration] "finish"
$ns_ at $Duration "puts \"end simulation\" ; $ns_ halt"
for {set j 0} {$j < $val(nn) } {incr j} {
$udp($j) set class_ ($j)
}
proc finish {} {
global ns_ tracefd namtrace
$ns_ flush-trace
close $tracefd
close $namtrace
}
$ns_ run
Thanks in advance:
Sara
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/