[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
They belong to Class "Simulator" ?
In the following example, two questions:
1) "ns_duplex" is a method of class "Simulator" ?
all methods without explicitely indicating its class
or object in a procedure means its class is
"Simulator" ? But I can't find "ns_duplex" method
under the class "Simulator" in Antonie's class
hierachy homepage.
2) The same as "lindex" below, and the "OpenTrace",
"trace" in some other code. Where can I find them ?
Thanks so much!
Frank
---
proc create_testnet1 { } {
global s1 s2 r1 k1
set s1 [ns node]
set s2 [ns node]
set r1 [ns node]
set k1 [ns node]
ns_duplex $s1 $r1 10Mb 5ms drop-tail
ns_duplex $s2 $r1 10Mb 5ms drop-tail
set L [ns_duplex $r1 $k1 1.5Mb 100ms
drop-tail]
[lindex $L 0] set queue-limit 23
[lindex $L 1] set queue-limit 23
}
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com