Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F10704681
SensorHandlerOfAgent.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
1 KB
Referenced Files
None
Subscribers
None
SensorHandlerOfAgent.h
View Options
#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
Details
Attached
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)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment