Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1498007
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
"SensorSlotOfAgent.h"
#include
"Unit.h"
#include
<vector>
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
();
public
:
SensorHandlerOfAgent
();
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
();
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Mar 1, 10:20 PM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
283010
Default Alt Text
SensorHandlerOfAgent.h (1 KB)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment