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

📄 application.h.bak

📁 一个简单的基于静态路由表的最佳路由过程
💻 BAK
字号:
//-------------------------------------------------------------------//  file name: application.h// //    - header file for the application class//    - see the .cpp file for more details////-------------------------------------------------------------------#ifndef __APPLICATION_H#define __APPLICATION_H#include <omnetpp.h>#include "globaldef.h"#include <list>/** Main class on top of all the protocol stack. It contains user defined code  * as the top application or for debugging/testing the underlying layers  */class application : public cSimpleModule{    	/** omnet++ specific code */    Module_Class_Members(application,cSimpleModule,0);	/** the initialization function */	void initialize();	/** main loop function */	void handleMessage(cMessage *msg);	void finish();    // process message from black node or grey node	void processBlackRequest(cMessage *msg);	void processGreyRequest(cMessage *msg);	// sign the node   -1--white    0--grey     1--black//	int isreq;	//int nhops;};Define_Module( application );#endif

⌨️ 快捷键说明

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