genericrouter.ned

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

NED
49
字号
//-------------------------------
// File: genericRouter.ned
// This is a simple simulation program whose purpose is just
// to get a know how antNet algorithm works
//-------------------------------

//Router --
//
// This is the actual module that mimics the functionality of a 
// complete router application layer. At the moment only network 
// layer is implemented

simple Router
	parameters:
		queueSize : numeric,
		address : numeric const,
		numStations : numeric const,
		dataRate : numeric const, 
		messageLength : numeric,
		
		// time out values for different situations

		helloTimeOutValue : numeric const,
		linkStateTimeOutValue : numeric const,
		waitBeforeUpdatingTopology : numeric const,
		topologyUpdatePeriod : numeric const,
		floodWaitInterval : numeric const,
		waitHelloReplyTime : numeric const,
		resendAttempts : numeric const,
		logResults : bool,
		probabilisticRouting : bool,
		startTime : numeric const,
		endTime : numeric const,
		qWeightFactor : numeric const,
		statModulePath : string;
		
	gates:
		out: toDataSink;
		in: fromDataGen;
		out: toAntNest;
		in: fromAntNest;
		in: fromAntGen;
		in: in[];
		out: out[];

endsimple


⌨️ 快捷键说明

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