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

📄 types.h

📁 WSN仿真一例假定节点0(node[0])周期性广播消息其它节点接收到消息并转发出去
💻 H
字号:
//-------------------------------------------------------------------//  file name: types.h// //    - various structures and types definitions////-------------------------------------------------------------------    struct nodepos_struct			/* 2D position structure */	  {     int x;		/* x position	*/     int y;		/* y position	*/  };  struct gatecd_struct			/* gate connect/disconnect structure */  {     bool cd[NNODES];				/* connected - true; disconnected = false										*/	 cMessage *msg[NNODES];			/* pointer to last disconnect message											*/	 cGate *fromGate[NNODES];		/* number of the gate where a specific link is								*/     cGate *toGate[NNODES];			/* used or faster disconnection (without searching quering the gates again	*/  };  typedef int nodeid_t;								/* nodeID structure						*/  typedef struct nodepos_struct nodepos_t;			/* position structure						*/  typedef struct interval_struct interval_t;		/* time interval structure				*/  typedef struct gatecd_struct gatecd_t;			/* gate connect/disconnect structure		*/

⌨️ 快捷键说明

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