This class extends the AbstractRTAction and adds the deviceType parameter template. Specific real time actions will inherit from this class, replacing the template parameter for a specific device class. More...
#include <RTAction.h>
Public Member Functions | |
RTAction (RTActionConfig &rtActionConfig, const AbstractServiceLocator *serviceLocator, const std::map< std::string, const AbstractServiceLocator * > serviceLocatorRelatedClasses) | |
virtual | ~RTAction () |
virtual void | printConfig (FesaStream *configStream) |
this method prints the action configuration into the stream passed by argument | |
virtual void | printState (FesaStream *fesaStream, double elapsedTime) |
this method prints the actual state of the action (frequency of the completed actions) into the stream passed by argument | |
Protected Attributes | |
std::vector< DeviceType * > | deviceCol_ |
list of devices for this real time action |
This class extends the AbstractRTAction and adds the deviceType parameter template. Specific real time actions will inherit from this class, replacing the template parameter for a specific device class.
Definition at line 19 of file RTAction.h.
fesa::RTAction< DeviceType >::RTAction | ( | RTActionConfig & | rtActionConfig, | |
const AbstractServiceLocator * | serviceLocator, | |||
const std::map< std::string, const AbstractServiceLocator * > | serviceLocatorRelatedClasses | |||
) | [inline] |
Constructor
rtActionConfig | contains all the necessary values to configure the action |
Definition at line 61 of file RTAction.h.
References fesa::RTAction< DeviceType >::deviceCol_, and fesa::RTActionConfig::deviceCol_.
fesa::RTAction< DeviceType >::~RTAction | ( | ) | [inline, virtual] |
destructor
Definition at line 71 of file RTAction.h.
References fesa::RTAction< DeviceType >::deviceCol_.
void fesa::RTAction< DeviceType >::printConfig | ( | FesaStream * | configStream | ) | [inline, virtual] |
this method prints the action configuration into the stream passed by argument
configStream | in which the information will be printed |
Implements fesa::AbstractRTAction.
Definition at line 77 of file RTAction.h.
References fesa::RTAction< DeviceType >::deviceCol_, fesa::AbstractAction::name_, and fesa::AbstractRTAction::selectionCriterion_.
void fesa::RTAction< DeviceType >::printState | ( | FesaStream * | fesaStream, | |
double | elapsedTime | |||
) | [inline, virtual] |
this method prints the actual state of the action (frequency of the completed actions) into the stream passed by argument
fesaStream | in which the information will be printed |
Implements fesa::AbstractRTAction.
Definition at line 88 of file RTAction.h.
References fesa::AbstractRTAction::abortedActionCount_, fesa::AbstractRTAction::completedActionCount_, fesa::DiagnosticUtils::DiagStateCounter::current_, fesa::DiagnosticUtils::DiagStateCounter::last_, and fesa::AbstractAction::name_.
fesa::RTAction< DeviceType >::deviceCol_ [protected] |
list of devices for this real time action
Definition at line 55 of file RTAction.h.
Referenced by fesa::RTAction< DeviceType >::printConfig(), fesa::RTAction< DeviceType >::RTAction(), and fesa::RTAction< DeviceType >::~RTAction().