otsdaq  v2_05_02_indev
ots::RunControlStateMachine Class Reference
Inheritance diagram for ots::RunControlStateMachine:
ots::CoreSupervisorBase ots::GatewaySupervisor ots::ARTDAQDataManagerSupervisor ots::ARTDAQSupervisor ots::CodeEditorSupervisor ots::DataManagerSupervisor ots::FESupervisor ots::FEDataManagerSupervisor ots::ARTDAQFEDataManagerSupervisor

Public Member Functions

 RunControlStateMachine (const std::string &name="Undefined Name")
 
void reset (void)
 
void setStateMachineName (const std::string &name)
 
const std::string & getErrorMessage (void) const
 
void setAsyncSoftErrorMessage (const std::string &error)
 
template<class OBJECT >
void addStateTransition (toolbox::fsm::State from, toolbox::fsm::State to, const std::string &input, const std::string &transitionName, OBJECT *obj, void(OBJECT::*func)(toolbox::Event::Reference))
 
template<class OBJECT >
void addStateTransition (toolbox::fsm::State from, toolbox::fsm::State to, const std::string &input, const std::string &transitionName, const std::string &transitionParameter, OBJECT *obj, void(OBJECT::*func)(toolbox::Event::Reference))
 
virtual void stateInitial (toolbox::fsm::FiniteStateMachine &)
 
virtual void statePaused (toolbox::fsm::FiniteStateMachine &)
 
virtual void stateRunning (toolbox::fsm::FiniteStateMachine &)
 
virtual void stateHalted (toolbox::fsm::FiniteStateMachine &)
 
virtual void stateShutdown (toolbox::fsm::FiniteStateMachine &)
 
virtual void stateConfigured (toolbox::fsm::FiniteStateMachine &)
 
virtual void inError (toolbox::fsm::FiniteStateMachine &)
 
virtual void transitionConfiguring (toolbox::Event::Reference)
 
virtual void transitionHalting (toolbox::Event::Reference)
 
virtual void transitionShuttingDown (toolbox::Event::Reference)
 
virtual void transitionStartingUp (toolbox::Event::Reference)
 
virtual void transitionInitializing (toolbox::Event::Reference)
 
virtual void transitionPausing (toolbox::Event::Reference)
 
virtual void transitionResuming (toolbox::Event::Reference)
 
virtual void transitionStarting (toolbox::Event::Reference)
 
virtual void transitionStopping (toolbox::Event::Reference)
 
virtual void enteringError (toolbox::Event::Reference)
 
xoap::MessageReference runControlMessageHandler (xoap::MessageReference message)
 
unsigned int getIterationIndex (void)
 
unsigned int getSubIterationIndex (void)
 
void indicateIterationWork (void)
 
void clearIterationWork (void)
 
bool getIterationWork (void)
 
void indicateSubIterationWork (void)
 
void clearSubIterationWork (void)
 
bool getSubIterationWork (void)
 

Static Public Attributes

static const std::string FAILED_STATE_NAME = "Failed"
 
static const std::string HALTED_STATE_NAME = "Halted"
 

Protected Attributes

FiniteStateMachine theStateMachine_
 
ProgressBar theProgressBar_
 
volatile bool asyncFailureReceived_
 
volatile bool asyncSoftFailureReceived_
 
unsigned int iterationIndex_
 
unsigned int subIterationIndex_
 
bool iterationWorkFlag_
 
bool subIterationWorkFlag_
 
toolbox::fsm::State lastIterationState_
 
std::string lastIterationCommand_
 
std::string lastIterationResult_
 
unsigned int lastIterationIndex_
 
unsigned int lastSubIterationIndex_
 
std::map< toolbox::fsm::State,
std::map< std::string, void(RunControlStateMachine::*)(toolbox::Event::Reference),
std::less< std::string > > > 
stateTransitionFunctionTable_
 

Detailed Description

Definition at line 14 of file RunControlStateMachine.h.


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