Enumerations | |
enum | State { OFFLINE, CONFIGURED, INITIALIZED, RUNNING } |
Allowed states for classes implementing the state machine (ApplicationMgr, Algorithm, Service, AlgTool). More... | |
enum | Transition { CONFIGURE, INITIALIZE, START, STOP, FINALIZE, TERMINATE } |
Allowed transitions between states. More... | |
Functions | |
State | ChangeState (const Transition transition, const State state) |
Function to get the new state according to the required transition, checking if the transition is allowed. |
Allowed states for classes implementing the state machine (ApplicationMgr, Algorithm, Service, AlgTool).
Definition at line 12 of file StateMachine.h.
00012 { 00013 OFFLINE, 00014 CONFIGURED, 00015 INITIALIZED, 00016 RUNNING//, 00017 //FINALIZED = CONFIGURED 00018 };
Allowed transitions between states.
Definition at line 23 of file StateMachine.h.
00023 { 00024 CONFIGURE, // OFFLINE -> CONFIGURED 00025 INITIALIZE, // CONFIGURED -> INITIALIZED 00026 START, // INITIALIZED -> RUNNING 00027 STOP, // RUNNING -> INITIALIZED 00028 FINALIZE, // INITIALIZED -> CONFIGURED 00029 TERMINATE // CONFIGURED -> OFFLINE 00030 };
State Gaudi::StateMachine::ChangeState | ( | const Transition | transition, | |
const State | state | |||
) |
Function to get the new state according to the required transition, checking if the transition is allowed.