fesa::RTDiagnosticSetting Class Reference

This class is responsible for doing diagnostics in the framework. It turns on or off topics and diagnostic mode. More...

#include <RTDiagnosticSetting.h>

Inheritance diagram for fesa::RTDiagnosticSetting:
fesa::AbstractRTAction fesa::AbstractAction

List of all members.

Public Member Functions

 RTDiagnosticSetting (RTActionConfig &rtActionConfig, const AbstractServiceLocator *serviceLocator, const std::map< std::string, const AbstractServiceLocator * > serviceLocatorRelatedClasses)
virtual ~RTDiagnosticSetting ()
void execute (RTEvent *event)
 Modify topics and diagnostic paramters according to information passed as a payload in the event. That payload must extend the class DiagnosticEventPayload.
virtual void printConfig (FesaStream *)
 Print the action configuration into the stream passed by argument.
virtual void printState (FesaStream *, double)
 Print the actual state of the action (frequency of the completed actions) into the stream passed by argument.

Private Attributes

double processStartTS_
 time whe the process started
double lastStateTS_
bool splitProcess_
 true if the equipment is split server and real time

Detailed Description

This class is responsible for doing diagnostics in the framework. It turns on or off topics and diagnostic mode.

Definition at line 16 of file RTDiagnosticSetting.h.


Constructor & Destructor Documentation

fesa::RTDiagnosticSetting::RTDiagnosticSetting ( RTActionConfig rtActionConfig,
const AbstractServiceLocator serviceLocator,
const std::map< std::string, const AbstractServiceLocator * >  serviceLocatorRelatedClasses 
)
fesa::RTDiagnosticSetting::~RTDiagnosticSetting (  )  [virtual]

Destructor

Definition at line 122 of file RTDiagnosticSetting.cpp.


Member Function Documentation

void fesa::RTDiagnosticSetting::execute ( RTEvent event  )  [virtual]
void fesa::RTDiagnosticSetting::printConfig ( FesaStream configStream  )  [virtual]

Print the action configuration into the stream passed by argument.

Parameters:
configStream in which the information will be printed

Implements fesa::AbstractRTAction.

Definition at line 102 of file RTDiagnosticSetting.cpp.

References fesa::AbstractAction::name_, and fesa::AbstractRTAction::selectionCriterion_.

void fesa::RTDiagnosticSetting::printState ( FesaStream fesaStream,
double  elapsedTime 
) [virtual]

Print 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 110 of file RTDiagnosticSetting.cpp.

References fesa::AbstractRTAction::abortedActionCount_, fesa::AbstractRTAction::completedActionCount_, fesa::DiagnosticUtils::DiagStateCounter::current_, fesa::DiagnosticUtils::DiagStateCounter::last_, and fesa::AbstractAction::name_.


Member Data Documentation

CRFESA-764 not used

Definition at line 54 of file RTDiagnosticSetting.h.

Referenced by RTDiagnosticSetting().

time whe the process started

Definition at line 50 of file RTDiagnosticSetting.h.

Referenced by RTDiagnosticSetting().

true if the equipment is split server and real time

Definition at line 59 of file RTDiagnosticSetting.h.

Referenced by execute(), and RTDiagnosticSetting().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1