www.pudn.com > adHocSimtest.rar > inspector.h, change:2003-02-22,size:765b


#ifndef INSPECTOR_H
#define INSPECTOR_H

#include "omnetpp.h"

#include "costants.h"

#include "physic.h"

#define CELLS 23

class Inspector : public cSimpleModule
{
	Module_Class_Members(Inspector,cSimpleModule,0);

  private:
	
	int hostNum;

	//intervall between two snapshots
	simtime_t snapshotInterval;

	//on / off
	bool active; 
	
	//snapshot counter
	int snaps;

	//pointer tho the module that hold 
	//the vector with all possible destination
	int hosts[12];

	//fullfill the cArray with the physic 
	//module adresses
	void collectNodes();

	int matrix[CELLS][CELLS];

	cPar* fileName;

	Physic* physic;

	int cellW;
	int cellH;
	
	
  public:
	
	virtual void initialize();

	virtual void handleMessage(cMessage* msg);

	virtual void finish();
};

#endif