antgenerator.ned

来自「use swarm intelligence to simulate netwo」· NED 代码 · 共 27 行

NED
27
字号
//-------------------------------
// File: antGenerator.ned
// This is a simple simulation program whose purpose is just
// to understand how antNet algorithm works
//-------------------------------

//
// The generator will randomly generate a packet that for 
// a random destination
//
simple antGenerator
	parameters:
		iaTime : numeric,
		address : numeric const,
		numStations : numeric const,
		messageLength : numeric const,
		sleepTimeAtStart: numeric,
		logResults : bool,
		converganceTime : numeric const,
		statModulePath : string;

	gates:
		in: fromDataGen;
		out: toRouter;
		out: toAntNest;
endsimple

⌨️ 快捷键说明

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