Page MenuHomePhorge

SensorHandlerOfAgent.h
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

SensorHandlerOfAgent.h

#ifndef SENSORHANDLEROFAGENT_HEADERFILE
#define SENSORHANDLEROFAGENT_HEADERFILE
#include <vector>
#include "Unit.h"
//#include "Agent.h"
#include "SensorSlotOfAgent.h"
using namespace std;
class SensorHandlerOfAgent : public Unit {
private:
//TODO: set- and get function for maxNumOf_mountedSensors;
vector<SensorSlotOfAgent*> vMountedSensors;
unsigned int maxNumOf_mountedSensors;
void init_sensorHandler();
void delete_all_Mounted_Sensors();
public:
SensorHandlerOfAgent();
//SensorHandler(char* name);
bool mount_sensorIntoSensorSlot(Channel* inputPort);
SensorSlotOfAgent* get_sensorSlotAddress(Channel* inputPort);
unsigned int get_sensorSlotNumber(Channel* inputPort);
SensorSlotOfAgent* get_sensorSlotAddress(HistoryModule* history);
SensorSlotOfAgent* get_sensorSlotAddress(ConfidenceModule* confidenceModule);
bool demount_sensor(Channel* inputPort);
bool read_sensorValue(SensorSlotOfAgent* sensorSlot);
bool read_allSensorValues();
bool attach_historyModule(Channel* inputPort, HistoryModule* historyModule);
bool detach_historyModule(SensorSlotOfAgent* sensorSlotOfAgent);
bool detach_historyModule(Channel* inputPort);
bool detach_historyModule(HistoryModule* historyModule);
HistoryModule* get_historyModuleOfSensorSlot(Channel* inputPort);
bool attach_confidenceModule(Channel* inputPort, ConfidenceModule* confidenceModule);
bool detach_confidenceModule(SensorSlotOfAgent* sensorSlotOfAgent);
bool detach_confidenceModule(Channel* inputPort);
bool detach_confidenceModule(ConfidenceModule* confidenceModule);
ConfidenceModule* get_confidenceModuleOfSensorSlot(Channel* inputPort);
vector<SensorSlotOfAgent*>* get_vMountedSensors();
~SensorHandlerOfAgent();
};
#endif

File Metadata

Mime Type
text/x-c++
Expires
Sun, May 31, 4:34 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
330217
Default Alt Text
SensorHandlerOfAgent.h (1 KB)

Event Timeline