layer0.h
来自「WSN仿真一例假定节点0(node[0])周期性广播消息其它节点接收到消息并转发」· C头文件 代码 · 共 40 行
H
40 行
//-------------------------------------------------------------------// file name: layer.h// // - header file for the layer0 class// - see the .cpp file for more details////-------------------------------------------------------------------#ifndef __LAYER0_H#define __LAYER0_H#include <omnetpp.h>#include "globaldef.h"/** layer0 simple module class. it is responsible for: *- the communication with the manager *- for delivering the messages to the nodes within the transmission range *- refreshing the display *- computing and updating the RWP data structures */class layer0 : public cSimpleModule{ /** omnet++ specific code */ Module_Class_Members(layer0,cSimpleModule,16384); /** the initialization function */ void initialize(); /** main loop function */ void activity();};Define_Module( layer0 );#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?