⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plot-arena.tcl

📁 采用蚂蚁算法实现ad hoc网络路由协议,平台为ns2
💻 TCL
字号:
source runsimulation.tclset simulationlibrary swarmsimulations.tclloadSimulationLibrary# this script is purely for generating a view of the arena,# which tehn needs to be hand-tweaked a bit.set val(mobilenodes) 0set val(fixednodes) 33set val(servernodes) 1set val(numflows) 1set val(simtime) 150set val(maxpause) 5set val(maxspeed) 25set val(scenario) 1set val(seed) 18set val(routingprotocol) SWARMset val(traffictype) cbrset val(exptname) plot-arenaset val(keeptrace) 1set val(dumpevery) 0.5set val(dumpto) 75set val(maxReceivesWithoutSend)		5set val(specialtraffic) 1set val(specialtrafficfile) traffic/emptyexecSimulationputs "creating movie!"exec tclsh analyse-visual.tcl latest/ns2.tr plot-arena-visual.avi 2 >&@stdout

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -