period_simulation.sh
来自「对IEEE 802.11e里的分布式信道接入算法EDCA进行改进」· Shell 代码 · 共 66 行
SH
66 行
#!/bin/csh -fset max_adapt = 10000set max_simulations = 3set increment1 = 100set max_nodes = 25set increment = 10set nodes = 25while ( $nodes <= $max_nodes ) set gfile = control_period.goodput.$nodes rm -f $gfile touch $gfile set ctr_period = 200 while ( $ctr_period <= $max_adapt ) set simulations = 1 rm -f "gfile_many" touch "gfile_many" while ( $simulations <= $max_simulations ) echo "simulations $simulations" ns ni_test1.tcl test_three.tcl $nodes $ctr_period 80 set goodput = `wlan-goodput-normal test_three.tcl 0.5` echo "$goodput " >> gfile_many @ simulations = $simulations + 1 end set meangood = `compute-mean gfile_many 3` echo "$ctr_period $meangood" >> $gfile @ ctr_period = $ctr_period + $increment1 end @ nodes = $nodes + $incrementend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?