radloggerpy.device.device_state_machine module
- class radloggerpy.device.device_state_machine.DeviceStateMachine[source]
Bases:
StateMachine
State machine class for devices
can be constructed without arguments
- POSSIBLE_STATES: enum.Enum | None = 1
Initial state and possible state types
- _abc_impl = <_abc._abc_data object>
- _transitions = {DeviceStates.ERROR: {DeviceStates.STOPPED}, DeviceStates.INITIALIZING: {DeviceStates.ERROR, DeviceStates.RUNNING}, DeviceStates.RUNNING: {DeviceStates.ERROR, DeviceStates.STOPPED}, DeviceStates.STOPPED: {DeviceStates.INITIALIZING}}
Possible states and subsequent transitions