layer0.h

来自「topdisc算法的omnet仿真.平台:omnet+vc 6.0」· C头文件 代码 · 共 47 行

H
47
字号
//-------------------------------------------------------------------
//  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();

	void finish();

	//judge if is connected
	int data[NNODES];

	double time;
};


Define_Module( layer0 );


#endif

⌨️ 快捷键说明

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