1.为什么在下面的代码中为什么他们使用'at 11.5'并请解释给定NS2代码的详细信息
$ns_ at 11.5 "source high-energy.tcl"
$ns_ at 13.5 "exec awk -f high-engy.awk Nodes-Initial-Energy Trace.tr Node- cost-values"
$ns_ at 14.0 "exec awk -f Cluster-heads.awk clusterhead Node-cost-values"
$ns_ at 14.0 "source cluster-heads.tcl"
$ns_ at 14.3 "exec awk -f clusterhead-info.awk cluster-heads"
$ns_ at 14.3 "source comm.tcl"
$ns_ at 16.9 "exec awk -f Head-Ack.awk cluster-heads Nodes-Initial-Energy"
$ns_ at 16.9 "source communication1.tcl"
答案 0 :(得分:0)
$ns_ at 11.5
...表示:“11.5秒后执行一些操作/命令”。
“Marc Greis,ns2 basics”http://www.isi.edu/nsnam/ns/tutorial/nsscript4.html中显示了类似的时间顺序,并附有说明。