您好,欢迎光临本网站![请登录][注册会员]  
文件名称: omnet++ 用户手册
  所属分类: Java
  开发工具:
  文件大小: 1mb
  下载次数: 0
  上传时间: 2010-11-22
  提 供 者: yunfei*******
 详细说明: Contents v 1 Introduction 1 1.1 What is OMNeT++? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Organization of this manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3 Credits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 Overview 5 2.1 Modeling concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.1.1 Hierarchical modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.1.2 Module types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1.3 Messages, gates, links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1.4 Modeling of packet transmissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1.5 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1.6 Topology description method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 Programming the algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.3 Using OMNeT++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3.1 Building and running simulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3.2 What is in the distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 The NED Language 11 3.1 NED overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1.1 Components of a NED description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1.2 Reserved words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1.3 Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1.4 Case sensitivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.1.5 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.2 The import directive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.3 Channel definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.4 Simple module definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.4.1 Simple module parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.4.2 Simple module gates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 v OMNeT++ Manual – CONTENTS 3.5 Compound module definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.5.1 Compound module parameters and gates . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.5.2 Submodules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5.3 Submodule type as parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.5.4 Assigning values to submodule parameters . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.5.5 Defining sizes of submodule gate vectors . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.5.6 Conditional parameters and gatesizes sections . . . . . . . . . . . . . . . . . . . . . . . 19 3.5.7 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.6 Network definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.7 Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.7.1 Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.7.2 Referencing parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.7.3 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.7.4 The sizeof() and index operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.7.5 The xmldoc() operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.7.6 XML documents and the XPath subset supported . . . . . . . . . . . . . . . . . . . . . 26 3.7.7 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.7.8 Random values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.7.9 Defining new functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.8 Parameterized compound modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.8.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.8.2 Design patterns for compound modules . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.8.3 Topology templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 3.9 Large networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 3.9.1 Generating NED files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 3.9.2 Building the network from C++ code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 3.10 XML binding for NED files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 4 Simple Modules 37 4.1 Simulation concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.1.1 Discrete Event Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.1.2 The event loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 4.1.3 Simple modules in OMNeT++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 4.1.4 Events in OMNeT++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 4.1.5 FES implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 4.2 Packet transmission modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 4.2.1 Delay, bit error rate, data rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 4.2.2 Multiple transmissions on links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 4.3 Defining simple module types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 4.3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 vi OMNeT++ Manual – CONTENTS 4.3.2 Constructor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 4.3.3 Constructor and destructor vs initialize() and finish() . . . . . . . . . . . . . . . . . . . 44 4.3.4 Compatibility with earlier versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 4.3.5 "Garbage collection" and compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 4.3.6 An example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 4.3.7 Using global variables . . . . . . . . . . . . ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: omnnet
 输入关键字,在本站1000多万海量源码库中尽情搜索: