8#ifndef _Belle2_RCState_hh
9#define _Belle2_RCState_hh
11#include <daq/slc/nsm/NSMState.h>
23 static const RCState NOTREADY_S;
27 static const RCState CONFIGURING_TS;
28 static const RCState LOADING_TS;
29 static const RCState STARTING_TS;
30 static const RCState STOPPING_TS;
33 static const RCState RECOVERING_RS;
34 static const RCState ABORTING_RS;
35 static const RCState BOOTING_RS;
42 RCState(
const char* st) { *
this = st; }
43 RCState(
const std::string& st) { *
this = st; }
48 RCState(
int id,
const char* label)
52 bool isStable()
const {
return getId() > 1 && getId() <= 5; }
53 bool isTransition()
const {
return getId() > 5 && getId() <= 9; }
54 bool isError()
const {
return getId() > 9 && getId() <= 11; }
55 bool isRecovering()
const {
return getId() > 11 && getId() <= 14; }
const RCState & operator=(const RCState &state)
Operator =.
Abstract base class for different kinds of events.