otsdaq  v1_01_04
 All Classes Namespaces Functions
Public Member Functions | Protected Attributes | List of all members
ots::FiniteStateMachine Class Reference
+ Inheritance diagram for ots::FiniteStateMachine:

Public Member Functions

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

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_
 

Detailed Description

Definition at line 11 of file FiniteStateMachine.h.


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