zoukankan      html  css  js  c++  java
  • Getting Started with the Simulation IDE

    Getting Started with the Simulation IDE

    Exploring the Models

    1. Make sure project is open.

     

    2. Note the folder structure of the INET Framework project: src contains model components (protocols, apps, etc), and examples contains example simulations.

     

    The OMNeT++ programming examples (aloha, cqn, etc.) are mostly single-folder projects.

    3. Common file types you'll encounter:

     

    .ned

      definitions of simulation components and networks

    .cc, .h

      C++ source files of simulation components

    .msg

      message descriptions (e.g. protocol headers) that are automatically translated to C++ classes

    _m.cc, _m.h

      generated files, created from msg files during the build process

    .ini

      parameter settings and configuration options for simulations

    Launching Simulations

    1. Select the .ini file (usually omnetpp.ini) or its parent folder.

     

    2. Click Run on the toolbar.

     

    3. If the following dialog comes up, choose OMNeT++ Simulation and click OK.

     

    4. Launch configurations go to the Run button's menu. Select one to run, or Ctrl+Click to open it for editing.

     

    Viewing Simulation Results

    1. Simulation results are normally saved in the results folder. You may need to select the project and hit Refresh (F5) to see it.

    2. Double-click any (.vec or .sca) file to open the Analysis Tool.

     

    3. The Analysis Tool will let you browse, select, process and plot the results. It will save your analysis into a .anf file in the parent folder.

     

    4. Later on you can just double-click the .anf file to open the analysis again. Having .anf files enables you to call up the same charts with different results after new simulation runs.

    Exploring Simulation Interactions on a Sequence Chart

    OMNeT++ helps you explore simulation models by letting you visualize interactions on a dynamic sequence chart. The sequence chart works from an event log file (.elog) recorded during simulation execution. Due to the associated overhead, recording has to be turned on explicitly.

    1. To turn on eventlog recording, open the launch configuration (see Launching Simulations above), select the option in the dialog, then click Apply.

     

    2. Run the simulation.

     

    3. The event log (.elog) file will be in the results folder, double-click to open it. (You may need to select the project and hit Refresh (F5) to see the file.)

     

    4. Sequence chart will open in the editor area.

     

    Getting More Simulation Models

    1. The Help > Install simulation models menu item offers automatic installation of selected simulation models or model frameworks.

     

    Currently only the INET Framework is available via this facility, but with time, the list will be to expanded to include other models as well.

    2. For models not directly available, go to the download area of omnetpp.org, which contains a fairly complete list of open-source OMNeT++ simulation models.

    These models have to be downloaded and installed and/or imported into the IDE manually (see next item).

     

    Importing Simulation Models into the IDE

    If you have downloaded a simulation model or some other project and you want use the IDE to work with it, it needs to be imported into the workspace.

    1. Choose File > Import... from the menu.

     

    2. In the dialog, select Generic > Existing project into the workspace.

     

    More Help on Getting Started

    1. You can find more introductory material under the Getting Started folder of the OMNeT++ documentation in the IDE help system.

    2. The documentation is available in PDF format and outside the IDE as well, see the doc folder of your OMNeT++ installation.

    3. Recommended items:

    • TicToc Tutorial: Going through this tutorial is the quickest way pick up OMNeT++ modeling concepts and become productive as fast as possible.
    • The OMNeT++ Manual explains everything you need to know for writing OMNeT++ simulations in detail. A must-read if you are serious about working with OMNeT++.
    • The IDE User Guide methodically describes the features of the Simulation IDE. Read it to be able to get the most out of the IDE.

    Screenshot from the TicToc Tutorial:

     

  • 相关阅读:
    VUE assets里的scss没有引用会被打包进代码里,本地代码和打包后的代码样式不一致解决办法
    echarts图表配置
    关于哈希路由多项目部署同一个服务器的链接访问问题
    git操作失误,提交代码因为网络问题没有成功,然后操作时候点错按钮导致代码全部没有了,也没用备份,如何解决
    浏览器刷新时候不删除信息,关闭后删除用户信息处理办法,浏览器监听刷新以及删除事件、cookie、session、sessionStorage、localStorage区别
    angular打包部署设置publicPath文件目录及访问地址,解决打包完成后,运行打包文件,报错404,js,css未找到
    Oracle spatial与arcsde 的关系
    Oracle Spatial图层元数据坐标范围影响R-TREE索引的ROOT MBR吗?
    centos下安装supervisor的步骤详解
    laravel 队列
  • 原文地址:https://www.cnblogs.com/Duxue/p/13858704.html
Copyright © 2011-2022 走看看