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

📄 application.h

📁 this is source code for adhoc network using omnet
💻 H
字号:
#ifndef APPLICATION_H#define APPLICATION_H#include "omnetpp.h"#include "costants.h"#include "physic.h"class Application : public cSimpleModule{	Module_Class_Members(Application,cSimpleModule,0);  private:		//number of packet to send in a request burst	int pktNum;	//the destinatary node of a pkt burst	int dest;		int pktSize;	int hostNum;	int rate; // pkt per second	simtime_t burstInterval;	//an unique id of the message	int msgId;		bool active; //does this app generate traffic?	//pointer tho the module that hold 	//the vector with all possible destination	Physic* physic;		  public:		virtual void initialize();	virtual void handleMessage(cMessage* msg);	virtual void finish();};#endif

⌨️ 快捷键说明

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