zoukankan      html  css  js  c++  java
  • XML in NED of Omnet++(1)

    XML in NED of Omnet++

    The following example declares an xml parameter, and assigns an XML file to it:

    simple TrafGen {

        parameters:

            xml profile;

        gates:

            output out;

    }

    module Node {

        submodules:

            trafGen1 : TrafGen {

                profile = xmldoc("data.xml");

            }

            ...

    }

    It is also possible to assign an XML element within a file to the parameter:

    module Node {

        submodules:

            trafGen1 : TrafGen {

                profile = xmldoc("all.xml", "profile[@id='gen1']");

            }

            trafGen2 : TrafGen {

                profile = xmldoc("all.xml", "profile[@id='gen2']");

            }

    }

    <?xml>

    <profile id="gen1">

      <element>3</element>

      <element>5</element>

    </profile>

    <profile id="ge21">

      <element>9</element>

    </profile>

  • 相关阅读:
    注意技巧小结
    小数点转百分比
    Mysql 性能监控及调优
    Linux下快速安装Mysql及使用
    如何建立压力计算模型
    Redis 2种持久化模式的缺陷
    Redis性能调优建议
    Node.js学习入门手册
    手机APP脚本录制(LoadRunner 12)
    Linux系统内核性能调优
  • 原文地址:https://www.cnblogs.com/CUCmehp/p/1551473.html
Copyright © 2011-2022 走看看