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

📄 globaldef.h

📁 拓扑查找算法的omnet仿真实现
💻 H
字号:
//-------------------------------------------------------------------//  file name: globaldef.h////    - several constants definition////    - macros have been moved to macros.h, types and structures to//      structures.h (see the bottom of this file for #include-s)////-------------------------------------------------------------------#ifndef __GLOBAL_H#define __GLOBAL_H// constant definitions  #define MINIMUMDELAY 0.0001  // minimum resolution in the simulator / 10  // color and type ranges  #define MAXCOLOR  10  #define MAXKIND    3  #define NNODES   20  // number of nodes in the simulation  #define MAXCONN  20  // maximum connectivity assumed  // constants used for position and mobility  #define SPACEX  800  // nodes are placed in a rectangle SPACEX X SPACEY  #define SPACEY  500  //  #define DISTANCE  100  // initial transmission range  // constants used for the display  #define MX  30  // margins around the display area  #define MY  30  // message types  enum {    M_LOWHIGH,     // message from lower layer to higher layer    M_HIGHLOW,     // message from higher layer to lower layer    M_NODE,        // message from another node    M_MOVE,        // node has to change his destination    M_REFRESH,     // refresh position message    M_UPDATE,      // refresh the layer 0 variables    M_NFAIL,       // change the failing probability of a node    M_AFREF,       // refresh the area failure information    M_BBUPDATE,    // update message from the blackboard    M_REPORTRWP,   // a node reports its new RWP    M_CONNECT,     // connect 2 gates    (message inside the manager)    M_DISCONNECT,  // disconnect 2 gates (message inside the manager)    M_UPDSSTRENGTH, // report the signal strength    // any more kinds of messages, define them here    M_SELF	   // test message for the application  };// other includes...#include "macros.h"		// all the macros have been moved to this file#include "types.h"		// the type & structure definitions are moved to this file#endif

⌨️ 快捷键说明

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