Class for the core (C) events.
Definition: core.h:14
States
Possible types of core states.
Definition: core.h:21
@ idle
The core is currently idle.
@ execution
The core is currently executing a process instance.
bool isIdle() const
Checks, if the current core is in the state idle.
Definition: core.cpp:84
static Events stringToEvent(const std::string &str)
Converts a string into the enum Events.
Definition: core.cpp:64
Events
Possible types of core events.
Definition: core.h:36
@ execute
The execute event indicates that the core is going into the execution state.
@ idle
The idle event indicates that the core is going into the idle state.
ErrorCodes doStateTransition(Events core_event)
Transitions the current state depending on the event.
Definition: core.cpp:9
Core(States state=States::unknown)
Constructor of the class Core.
Definition: core.cpp:5
bool isStateUnknown() const
Checks, if the current core is in the state unknown.
Definition: core.cpp:89
static std::string eventToString(Events ev)
Converts the enum Events into string.
Definition: core.cpp:49
ErrorCodes
Error Codes for the btf library.
Definition: common.h:13