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

📄 layer0.h

📁 一个简单的基于静态路由表的最佳路由过程
💻 H
字号:
//-------------------------------------------------------------------
//  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();
       //int find(int des);
	void finish();

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

};


Define_Module( layer0 );


#endif

⌨️ 快捷键说明

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