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

📄 fullgraph.ned

📁 omnet++下仿真100个节点的路由协议!
💻 NED
字号:
//
// This file is part of an OMNeT++/OMNEST simulation example.
//
// Copyright (C) 1992-2005 Andras Varga
//
// This file is distributed WITHOUT ANY WARRANTY. See the file
// `license' for details on this and other legal matters.
//

import "../node";

module FullGraph
    parameters:
        n : numeric const;
    submodules:
        node: Node[n];
            parameters:
                address = index;
            gatesizes:
                in[n],
                out[n];
            display: "i=misc/node_vs;p=,,ring";
    connections nocheck:
        for i=0..n-1, j=0..n-1 do
            node[i].out[j] --> node[j].in[i] if i!=j;
        endfor;
endmodule


network fullGraph : FullGraph
    parameters:
        n = input(15,"Number of nodes");
endnetwork

⌨️ 快捷键说明

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