chewie.state_machines.abstract_state_machine module

This Module provides the Abstract Design Requirements for a State Machine in Chewie

class chewie.state_machines.abstract_state_machine.AbstractStateMachine

Bases: object

This Class provides the Abstract Design Requirements for a State Machine in Chewie

COMPLETION_STATES = []
CORE_TRANSITIONS = []
ERROR_TRANSTIONS = []
FAILURE_STATES = []
INITIAL_STATE = None
PROGRESS_STATES = []
STATES = []
SUCCESS_STATES = []
TRANSITIONS = []
classmethod build_state_graph(filename)

Build a graphc representation of the state machine and store in ‘filename’.png

is_in_progress()

Returns true if the state machine is currently in progress

is_success()

Returns true if the state machine currently in a successful completion state and enabled

port_enabled = None
state = None