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

📄 genericrouter.ned

📁 In this implementation of AntNet-3.0 one could get the behavior of both algorithms through a simple
💻 NED
字号:
//-------------------------------
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -