fesa::AbstractRTDeviceClass Class Reference

this class contains the real time data of the FESA class More...

#include <AbstractRTDeviceClass.h>

Inheritance diagram for fesa::AbstractRTDeviceClass:
fesa::AbstractDeviceClass

List of all members.

Public Types

typedef std::set< std::string > RTActionNameCol
typedef std::map< std::string,
RTActionNameCol
DerivedClassesRTActionCol
typedef std::map< std::string,
RTActionInfo * > 
RTActionInfoCol

Public Member Functions

 AbstractRTDeviceClass (const std::string &name, const std::string &version)
 constructor
 AbstractRTDeviceClass ()
virtual ~AbstractRTDeviceClass ()
 destructor
virtual AbstractRTActionFactorygetRTActionFactory ()
virtual
AbstractEventSourceFactory
getEventSourceFactory ()
virtual void initialize ()
 Implementation of the pure virtual baseclass method.
virtual void addDiagnosticSchedulingUnitInfo (std::vector< RTSchedulingUnitInfo * > &schedulingUnitInfo)
 Used to add diagnostic-events-mapping, hidden from the class-developer TODO: get rid of this, it is very error-pron, neiter transparent, nor flexible.
virtual void addDiagnosticRTActionInfo (RTActionInfoCol &actionInfoCol)
 Used to add diagnostic-events-mapping, hidden from the class-developer TODO: get rid of this, it is very error-pron, neiter transparent, nor flexible.
virtual void addDiagnosticEvents (ElementXML *xmlElementClass)
 Used to add diagnostic-events-mapping, hidden from the class-developer TODO: get rid of this, it is very error-pron, neiter transparent, nor flexible.

Protected Member Functions

virtual void fillRTSchedulingUnitsInfo (std::vector< RTSchedulingUnitInfo * > &schedulingUnitInfo)=0
 fill the scheduling info for the class
virtual void fillRTActionInfo (RTActionInfoCol &actionInfo)=0
 fill the actions information associated with this class

Protected Attributes

AbstractRTActionFactoryrtActionFactory_
 reference to the action factory
AbstractEventSourceFactoryeventSourceFactory_
 factory to create the event sources

Private Member Functions

ElementXMLgetOrCreateXMLElement (ElementXML *baseElement, std::string name)
 Used to add diagnostic-events-mapping, hidden from the class-developer TODO: get rid of this, it is very error-pron, neiter transparent, nor flexible.
void addXMLAttribute (ElementXML *baseElement, std::string name, std::string value)
 Used to add diagnostic-events-mapping, hidden from the class-developer TODO: get rid of this, it is very error-pron, neiter transparent, nor flexible.

Friends

class RTController

Detailed Description

this class contains the real time data of the FESA class

Definition at line 108 of file AbstractRTDeviceClass.h.


Member Typedef Documentation

Definition at line 114 of file AbstractRTDeviceClass.h.

Definition at line 115 of file AbstractRTDeviceClass.h.

typedef std::set<std::string> fesa::AbstractRTDeviceClass::RTActionNameCol

Definition at line 113 of file AbstractRTDeviceClass.h.


Constructor & Destructor Documentation

fesa::AbstractRTDeviceClass::AbstractRTDeviceClass ( const std::string &  name,
const std::string &  version 
)

constructor

Parameters:
name of the class

Definition at line 14 of file AbstractRTDeviceClass.cpp.

References fesa::AbstractRTEquipment::getInstance(), and fesa::AbstractComponentEquipment::registerDeviceClass().

fesa::AbstractRTDeviceClass::AbstractRTDeviceClass (  ) 

Definition at line 22 of file AbstractRTDeviceClass.cpp.

fesa::AbstractRTDeviceClass::~AbstractRTDeviceClass (  )  [virtual]

Member Function Documentation

void fesa::AbstractRTDeviceClass::addDiagnosticEvents ( ElementXML xmlElementClass  )  [virtual]

Used to add diagnostic-events-mapping, hidden from the class-developer TODO: get rid of this, it is very error-pron, neiter transparent, nor flexible.

Definition at line 104 of file AbstractRTDeviceClass.cpp.

References addXMLAttribute(), fesa::DIAG_EVENT_SOURCE_NAME, fesa::DiagnosticUtils::event, and getOrCreateXMLElement().

void fesa::AbstractRTDeviceClass::addDiagnosticRTActionInfo ( RTActionInfoCol actionInfoCol  )  [virtual]

Used to add diagnostic-events-mapping, hidden from the class-developer TODO: get rid of this, it is very error-pron, neiter transparent, nor flexible.

Definition at line 94 of file AbstractRTDeviceClass.cpp.

References fesa::RTActionInfo::className_, and fesa::AbstractDeviceClass::name_.

void fesa::AbstractRTDeviceClass::addDiagnosticSchedulingUnitInfo ( std::vector< RTSchedulingUnitInfo * > &  schedulingUnitInfo  )  [virtual]

Used to add diagnostic-events-mapping, hidden from the class-developer TODO: get rid of this, it is very error-pron, neiter transparent, nor flexible.

fill in the table with the information

Definition at line 77 of file AbstractRTDeviceClass.cpp.

References fesa::RTSchedulingUnitInfo::actionName_, fesa::RTSchedulingUnitInfo::className_, fesa::DIAGNOSTIC_LAYER, fesa::RTSchedulingUnitInfo::eventField_, fesa::RTSchedulingUnitInfo::eventName_, fesa::AbstractDeviceClass::name_, fesa::RTSchedulingUnitInfo::name_, and fesa::RTSchedulingUnitInfo::selectionCriterion_.

void fesa::AbstractRTDeviceClass::addXMLAttribute ( ElementXML baseElement,
std::string  name,
std::string  value 
) [private]

Used to add diagnostic-events-mapping, hidden from the class-developer TODO: get rid of this, it is very error-pron, neiter transparent, nor flexible.

Definition at line 143 of file AbstractRTDeviceClass.cpp.

References fesa::ElementXML::attributeList_, fesa::AttributeXML::name_, and fesa::AttributeXML::value_.

Referenced by addDiagnosticEvents().

virtual void fesa::AbstractRTDeviceClass::fillRTActionInfo ( RTActionInfoCol actionInfo  )  [protected, pure virtual]

fill the actions information associated with this class

virtual void fesa::AbstractRTDeviceClass::fillRTSchedulingUnitsInfo ( std::vector< RTSchedulingUnitInfo * > &  schedulingUnitInfo  )  [protected, pure virtual]

fill the scheduling info for the class

AbstractEventSourceFactory * fesa::AbstractRTDeviceClass::getEventSourceFactory (  )  [inline, virtual]
Returns:
the event source action factory

Definition at line 213 of file AbstractRTDeviceClass.h.

References eventSourceFactory_.

Referenced by fesa::RTController::createRTActionConfig().

ElementXML * fesa::AbstractRTDeviceClass::getOrCreateXMLElement ( ElementXML baseElement,
std::string  name 
) [private]

Used to add diagnostic-events-mapping, hidden from the class-developer TODO: get rid of this, it is very error-pron, neiter transparent, nor flexible.

Definition at line 125 of file AbstractRTDeviceClass.cpp.

References fesa::ElementXML::childList_, and fesa::ElementXML::name_.

Referenced by addDiagnosticEvents().

AbstractRTActionFactory * fesa::AbstractRTDeviceClass::getRTActionFactory (  )  [inline, virtual]
Returns:
the RT action factory

Definition at line 209 of file AbstractRTDeviceClass.h.

References rtActionFactory_.

Referenced by fesa::RTController::createAction().

fesa::AbstractRTDeviceClass::initialize (  )  [virtual]

Friends And Related Function Documentation

friend class RTController [friend]

Definition at line 167 of file AbstractRTDeviceClass.h.


Member Data Documentation

factory to create the event sources

Definition at line 187 of file AbstractRTDeviceClass.h.

Referenced by getEventSourceFactory().

reference to the action factory

Definition at line 181 of file AbstractRTDeviceClass.h.

Referenced by getRTActionFactory().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1