📄 genericrouter.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 + -