otsdaq  v2_05_02_indev
ots::FiniteStateMachine Class Reference
Inheritance diagram for ots::FiniteStateMachine:

Public Member Functions

 FiniteStateMachine (const std::string &stateMachineName)
 
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))
 
toolbox::fsm::State getProvenanceState (void)
 
toolbox::fsm::State getTransitionFinalState (const std::string &transition)
 
std::string getProvenanceStateName (void)
 
std::string getCurrentStateName (void)
 
time_t getTimeInState (void)
 
std::string getCurrentTransitionName (const std::string &transition)
 
std::string getTransitionName (const toolbox::fsm::State from, const std::string &transition)
 
std::string getTransitionParameter (const toolbox::fsm::State from, const std::string &transition)
 
std::string getTransitionFinalStateName (const std::string &transition)
 
const std::string & getErrorMessage () const
 
const std::string & getStateMachineName (void) const
 
void setStateMachineName (const std::string &name)
 
const xoap::MessageReference & getCurrentMessage (void)
 
bool execTransition (const std::string &transition)
 
bool execTransition (const std::string &transition, const xoap::MessageReference &message)
 
bool isInTransition (void)
 
void setInitialState (toolbox::fsm::State state)
 
void setErrorMessage (const std::string &errMessage, bool append=true)
 

Protected Attributes

time_t stateEntranceTime_
 
volatile bool inTransition_
 
toolbox::fsm::State provenanceState_
 
std::map< toolbox::fsm::State,
std::map< std::string,
std::string, std::less
< std::string > > > 
stateTransitionNameTable_
 
std::map< toolbox::fsm::State,
std::map< std::string,
std::string, std::less
< std::string > > > 
stateTransitionParameterTable_
 
xoap::MessageReference theMessage_
 
std::string theErrorMessage_
 
std::string stateMachineName_
 

Detailed Description

Definition at line 9 of file FiniteStateMachine.h.


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