Leach_test file
I read Leach_test file but I can't understand this, Please help
ns tcl/ex/wireless.tcl \ -sc mit/uAMPS/sims/nodescen \ -rp $alg \ -x $x \ -y $y \ -nn $nn \ -stop $stop \ -eq_energy $eq_energy \ -init_energy $init_energy \ -filename $filename \ -dirname $dirname \ -topo $topology_file \ -num_clusters $num_clusters \ -bs_x $bs_x \ -bs_y $bs_y 2>$dirname/$filename.err 1>$dirname/$filename.out & |
ns tcl/ex/wireless.tcl : This is the first command in the simulation.
-sc mit/uAMPS/sims/nodescen : Reads the file "nodescen" in mit/uAMPS/sims/ -rp $alg : That's the algoritm that you select in leach_test line 5. ... Other choices are `leach_c' and `pegasis' (If pegasis-leach is implemented.) -x $x : The X coordinate. http://en.wikipedia.org/wiki/Coordinate_system -y $y : The Y coordinate. -nn $nn : Like any other simulation.tcl : Number of nodes. -stop $stop : Stop the simulation after <n> seconds. -eq_energy $eq_energy : eq_energy=1, defined in leach_test line 23. -init_energy $init_energy : Initial energy, leach_test line 24: init_energy=2 -filename $filename : filename=$alg, leach_test line 10. -dirname $dirname : leach_test line 9 : dirname="mit/leach_sims" -topo $topology_file : topology_file="mit/uAMPS/sims/100nodes.txt", line 17. -num_clusters $num_clusters : Number of clusters : num_clusters=5 : line 21. -bs_x $bs_x : bs_x=50 , line 31. -bs_y $bs_y 2>$dirname/$filename.err 1>$dirname/$filename.out & : .. I don't know what the two ns2/tcl commands 'bs_x' and 'bs_y' actually do. .. May be Google will come up with an answer ? Good luck :) .. - |
About bs_x and bs_y : coordinates of BS
but what I need to understand what is SC an rp and for example x=1000 at line 28 so why x $x is this the definition for x or what? |
All times are GMT -5. The time now is 03:53 PM. |