world.ned
来自「OMNET++仿真三色算法的源码,三色算法是无线传感器中一个典型的分簇算法」· NED 代码 · 共 36 行
NED
36 行
import "mobileHost";module World parameters: dim, width, height; submodules: N: MobileHost[dim]; parameters: numHost = dim, Xbound = width, Ybound = height, //x = width /2, //y = height /2; x = intuniform(5, width -5), y = intuniform(5, height -5); //x = 60 + (index % 5 ) * 120, //y = 30 + (index - index % 5 ) * 30 ; //display: "b=20,20,oval";
display: "b=10,10,oval"; //display: "p=10,10;b=$width,$height";
display: "p=5,5;b=$width,$height";endmodule network world : World parameters: dim = input, width = input, height = input;endnetwork
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?