world.ned
来自「this is source code for adhoc network us」· NED 代码 · 共 41 行
NED
41 行
import "mobileHost";module World parameters: dim , width, height; submodules: mobileHost: 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: "p=10,10;b=$width,$height";endmodule network world : World parameters: dim = input, width = input, height = input;endnetwork
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?