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

📄 world.ned

📁 OMNET++仿真三色算法的源码,三色算法是无线传感器中一个典型的分簇算法
💻 NED
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -