1 #ifndef _ots_RunControlStateMachine_h_
2 #define _ots_RunControlStateMachine_h_
4 #include "otsdaq-core/FiniteStateMachine/FiniteStateMachine.h"
5 #include "otsdaq-core/ProgressBar/ProgressBar.h"
7 #include "toolbox/lang/Class.h"
23 void setStateMachineName(std::string name){stateMachineName_ = name;}
27 virtual void stateInitial (toolbox::fsm::FiniteStateMachine& fsm)
throw (toolbox::fsm::exception::Exception){;}
34 virtual void statePaused (toolbox::fsm::FiniteStateMachine& fsm)
throw (toolbox::fsm::exception::Exception){;}
41 virtual void stateRunning (toolbox::fsm::FiniteStateMachine& fsm)
throw (toolbox::fsm::exception::Exception){;}
47 virtual void stateHalted (toolbox::fsm::FiniteStateMachine& fsm)
throw (toolbox::fsm::exception::Exception){;}
54 virtual void stateConfigured (toolbox::fsm::FiniteStateMachine& fsm)
throw (toolbox::fsm::exception::Exception){;}
56 virtual void inError (toolbox::fsm::FiniteStateMachine& fsm)
throw (toolbox::fsm::exception::Exception){;}
58 virtual void transitionConfiguring (toolbox::Event::Reference e)
throw (toolbox::fsm::exception::Exception){;}
59 virtual void transitionHalting (toolbox::Event::Reference e)
throw (toolbox::fsm::exception::Exception){;}
60 virtual void transitionInitializing(toolbox::Event::Reference e)
throw (toolbox::fsm::exception::Exception){;}
61 virtual void transitionPausing (toolbox::Event::Reference e)
throw (toolbox::fsm::exception::Exception){;}
62 virtual void transitionResuming (toolbox::Event::Reference e)
throw (toolbox::fsm::exception::Exception){;}
63 virtual void transitionStarting (toolbox::Event::Reference e)
throw (toolbox::fsm::exception::Exception){;}
64 virtual void transitionStopping (toolbox::Event::Reference e)
throw (toolbox::fsm::exception::Exception){;}
65 virtual void enteringError (toolbox::Event::Reference e)
throw (toolbox::fsm::exception::Exception){;}
68 xoap::MessageReference runControlMessageHandler(xoap::MessageReference message)
throw (xoap::exception::Exception);
70 static const std::string FAILED_STATE_NAME;
75 std::string stateMachineName_;