fesa::RTAction< DeviceType > Class Template Reference

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>

Inheritance diagram for fesa::RTAction< DeviceType >:
fesa::AbstractRTAction fesa::AbstractAction

List of all members.

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

Detailed Description

template<typename DeviceType>
class fesa::RTAction< DeviceType >

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.


Constructor & Destructor Documentation

template<typename DeviceType >
fesa::RTAction< DeviceType >::RTAction ( RTActionConfig rtActionConfig,
const AbstractServiceLocator serviceLocator,
const std::map< std::string, const AbstractServiceLocator * >  serviceLocatorRelatedClasses 
) [inline]

Constructor

Parameters:
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_.

template<typename DeviceType >
fesa::RTAction< DeviceType >::~RTAction (  )  [inline, virtual]

destructor

Definition at line 71 of file RTAction.h.

References fesa::RTAction< DeviceType >::deviceCol_.


Member Function Documentation

template<typename DeviceType >
void fesa::RTAction< DeviceType >::printConfig ( FesaStream configStream  )  [inline, virtual]

this method prints the action configuration into the stream passed by argument

Parameters:
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_.

template<typename DeviceType >
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

Parameters:
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_.


Member Data Documentation

template<typename DeviceType >
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().


The documentation for this class was generated from the following file:

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1