?? genericrouter.ned
字號:
//-------------------------------
// File: genericRouter.ned
// This is a simple simulation program whose purpose is just
// to get a know how antNet algorithm works
//-------------------------------
//
// 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,
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,
converganceTime : numeric const,
contextSwitchTime: numeric,
agentProcTime : bool,
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 + -