The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
IStateful.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 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#pragma once
12
15#include <string>
16
24class GAUDI_API IStateful : virtual public IInterface {
25public:
28
31 virtual StatusCode configure() = 0;
32
35 virtual StatusCode initialize() = 0;
36
39 virtual StatusCode start() = 0;
40
43 virtual StatusCode stop() = 0;
44
47 virtual StatusCode finalize() = 0;
48
51 virtual StatusCode terminate() = 0;
52
55 virtual StatusCode reinitialize() = 0;
56
59 virtual StatusCode restart() = 0;
60
64
69};
#define GAUDI_API
Definition Kernel.h:49
Definition of the basic interface.
Definition IInterface.h:225
Interface for classes that implement the Gaudi State Machine.
Definition IStateful.h:24
virtual StatusCode finalize()=0
Finalize (from INITIALIZED to CONFIGURED).
virtual StatusCode configure()=0
Configuration (from OFFLINE to CONFIGURED).
virtual StatusCode terminate()=0
Initialization (from CONFIGURED to OFFLINE).
virtual StatusCode restart()=0
Initialization (from RUNNING to RUNNING, via INITIALIZED).
virtual StatusCode reinitialize()=0
Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED).
virtual Gaudi::StateMachine::State targetFSMState() const =0
When we are in the middle of a transition, get the state where the transition is leading us.
virtual StatusCode start()=0
Start (from INITIALIZED to RUNNING).
virtual StatusCode stop()=0
Stop (from RUNNING to INITIALIZED).
virtual Gaudi::StateMachine::State FSMState() const =0
Get the current state.
DeclareInterfaceID(IStateful, 1, 0)
InterfaceID.
virtual StatusCode initialize()=0
Initialization (from CONFIGURED to INITIALIZED).
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
State
Allowed states for classes implementing the state machine (ApplicationMgr, Algorithm,...