nssimples
所属分类:网络
开发工具:tcl/tk
文件大小:1KB
下载次数:4
上传日期:2011-08-01 13:50:28
上 传 者:
timgirlsex
说明: #Create a simulator object
set ns [new Simulator]
#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red
#Open the NAM trace file
set nf [open out.nam w]
$ns namtrace-all $nf
#Define a finish procedure
proc finish {} {
global ns nf
$ns flush-trace
#Close the NAM trace file
close $nf
#Execute NAM on the trace file
exec nam out.nam &
exit 0
}
文件列表:
ns-simple(2).tcl (2242, 2010-12-02)
近期下载者:
相关文件:
收藏者: