Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework
master (f31105fd)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
c
d
e
f
i
l
m
n
o
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
u
z
Variables
a
b
c
d
e
g
h
i
m
o
p
q
r
s
t
v
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
c
e
f
p
u
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
StateMachine.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#include <
GaudiKernel/StateMachine.h
>
12
13
namespace
Gaudi
{
14
namespace
StateMachine {
19
State
ChangeState
(
const
Transition
transition,
const
State
state
) {
20
switch
( transition ) {
21
case
CONFIGURE
:
22
if
(
OFFLINE
==
state
) {
return
CONFIGURED
; }
23
break
;
24
case
INITIALIZE
:
25
if
(
CONFIGURED
==
state
) {
return
INITIALIZED
; }
26
break
;
27
case
START
:
28
if
(
INITIALIZED
==
state
) {
return
RUNNING
; }
29
break
;
30
case
STOP
:
31
if
(
RUNNING
==
state
) {
return
INITIALIZED
; }
32
break
;
33
case
FINALIZE
:
34
if
(
INITIALIZED
==
state
) {
return
CONFIGURED
; }
35
break
;
36
case
TERMINATE
:
37
if
(
CONFIGURED
==
state
) {
return
OFFLINE
; }
38
break
;
39
default
:
40
break
;
41
}
42
std::stringstream
msg
;
43
msg
<<
"Invalid transition '"
<< transition <<
"' from state '"
<<
state
<<
"'"
;
44
throw
GaudiException
(
msg
.str(),
"Gaudi::StateMachine::ChangeState"
,
StatusCode::FAILURE
);
45
return
OFFLINE
;
// never reached, but maked the compiler happy
46
}
47
}
// namespace StateMachine
48
}
// namespace Gaudi
Gaudi::StateMachine::TERMINATE
@ TERMINATE
Definition:
StateMachine.h:39
Gaudi::StateMachine::FINALIZE
@ FINALIZE
Definition:
StateMachine.h:38
GaudiException
Definition:
GaudiException.h:32
GaudiMP.FdsRegistry.msg
msg
Definition:
FdsRegistry.py:19
std::stringstream
STL class.
Gaudi::StateMachine::INITIALIZE
@ INITIALIZE
Definition:
StateMachine.h:35
StateMachine.h
Gaudi::StateMachine::State
State
Allowed states for classes implementing the state machine (ApplicationMgr, Algorithm,...
Definition:
StateMachine.h:22
Gaudi::StateMachine::CONFIGURED
@ CONFIGURED
Definition:
StateMachine.h:24
Gaudi::StateMachine::OFFLINE
@ OFFLINE
Definition:
StateMachine.h:23
Gaudi::StateMachine::RUNNING
@ RUNNING
Definition:
StateMachine.h:26
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition:
__init__.py:1
Gaudi::StateMachine::ChangeState
State GAUDI_API ChangeState(const Transition transition, const State state)
Function to get the new state according to the required transition, checking if the transition is all...
Definition:
StateMachine.cpp:19
Gaudi::StateMachine::Transition
Transition
Allowed transitions between states.
Definition:
StateMachine.h:33
Gaudi::StateMachine::INITIALIZED
@ INITIALIZED
Definition:
StateMachine.h:25
Gaudi::StateMachine::START
@ START
Definition:
StateMachine.h:36
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition:
StatusCode.h:101
compareRootHistos.state
state
Definition:
compareRootHistos.py:496
Gaudi::StateMachine::CONFIGURE
@ CONFIGURE
Definition:
StateMachine.h:34
Gaudi::StateMachine::STOP
@ STOP
Definition:
StateMachine.h:37
GaudiKernel
src
Lib
StateMachine.cpp
Generated on Mon Apr 7 2025 16:26:24 for The Gaudi Framework by
1.8.18