datagenerator.ned

来自「In this implementation of AntNet-3.0 one」· NED 代码 · 共 35 行

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

//Generator --
//
// The generator will randomly generate a packet that for 
// a random destination

simple dataGenerator
	parameters:
		numMessages : numeric,
		iaTime : numeric,
		address : numeric const,
		numStations : numeric const,
		messageLength : numeric,
		sleepTimeAtStart: numeric,
		converganceTime : numeric,
		msiaTime : numeric,
		sessionSize : numeric,
		factor : numeric,
		hotSpot : numeric,
		startTime : numeric,
		endTime : numeric,
		hotmpia : numeric,
		logResults : bool,
		statModulePath : string;

	gates:
		out: toRouter;
		out: toAntGen;
endsimple

⌨️ 快捷键说明

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