genericrouter.ned

来自「Programming language: Developed in Omnet」· NED 代码 · 共 45 行

NED
45
字号
//-------------------------------
// 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,
        linkStateTimeOutValue : numeric const,
        waitBeforeUpdatingTopology : numeric const,
        topologyUpdatePeriod : numeric const,
        floodWaitInterval : numeric const,
        waitHelloReplyTime : numeric const,
        resendAttempts : numeric const,
        logResults : bool,
        probabilisticRouting : bool,
        statFile : string;

    gates:
        out: toDataSink;
        in: fromDataGen;
        out: toAntNest;
        in: fromAntNest;
        in: fromAntGen;
        in: in[];
        out: out[];

endsimple


⌨️ 快捷键说明

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