?? pursuit.h
字號:
//#ifndef PURSUIT_H#define PURSUIT_H#include "omnetpp.h"#include "costants.h"#include "physic.h"class Pursuit : public cSimpleModule{ //Macro that contains the costructor,destructor //and other Omnett++ stuff Module_Class_Members(Pursuit,cSimpleModule,0) virtual void initialize(); virtual void handleMessage(cMessage* ); virtual void finish(); // private: //implement the mvement that sims a torus bool torus(int&, int&); //mplement the rebound movement bool rebound(int, int); //returns the time intervall //to the next move void pursuit(int&, int&); //e.g. 1s if the speed is in m/sec cPar* moveInterval; //cPar* pauseTime; cPar* moveKind; cPar* minSpeed; cPar* maxSpeed; //pointer of the physic module wich store //the actual <x,y> position Physic* physic; //pointer to the physic module of the target node Physic * target; //size of the movement field int minX,maxX,minY,maxY; //the minimum distance from the target //node that each host has to keep int distanceThreshold; //direction flag int dX,dY; //statistics vars int movements; double partial;}; #endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -