[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: They belong to Class "Simulator" ?
On Tue, 14 Sep 1999, Frank Chu wrote:
> 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.
that's because it's otcl only, not shared.
See ~ns/tcl/lib/ns-compat.tcl
>
> 2) The same as "lindex" below, and the "OpenTrace",
> "trace" in some other code. Where can I find them ?
lindex is a Tcl command. See any book on Tcl.
L.
> 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
>
<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>