#include <DC_DataPoolMonitor.h>
Inheritance diagram for DC_DataPoolMonitor:
The system data pool that is subjected to monitoring is loaded from the CC_RootObject
class. The data pool monitor is implemented as a form of conditional punctual action. When it is executed, the component iterates over all items in the data pool (using the iteration service offered by the data pool). It retrieves the monitoring profile associated to each item and it uses it to check the current value of the item. If a monitoring violation is detected, the validity status of the item is set to "not valid" and the recovery action associated to the item is executed.
Definition at line 40 of file DC_DataPoolMonitor.h.
Public Member Functions | |
DC_DataPoolMonitor (void) | |
Instantiate a data pool monitor component. | |
Protected Member Functions | |
virtual bool | canExecute (void) |
Encapsulate an execution check that always returns "can execute". | |
virtual TD_ActionOutcome | doConditionalAction (void) |
Perform the monitoring action on all the items in the data pool. |
|
Instantiate a data pool monitor component. The value of the class identifier is set. Definition at line 19 of file DC_DataPoolMonitor.cpp. |
|
Encapsulate an execution check that always returns "can execute".
Implements ConditionalPunctualAction. Definition at line 23 of file DC_DataPoolMonitor.cpp. |
|
Perform the monitoring action on all the items in the data pool.
The data pool is loaded from the pDataPool = CC_RootObject::getDataPool(); for (all items p in pDataPool) { get the value v of p get the monitoring profile m associated to p in pDataPool pass the value v through the monitoring profile m if (monitoring violation detected) { set the validity status of p to "not valid" get the recovery action r associated to p in pDataPool execute r } }This method always returns: "ACTION_SUCCESS"
Implements ConditionalPunctualAction. Definition at line 27 of file DC_DataPoolMonitor.cpp. |