hsm.core

hsm.core

This module provides the core elements for hierarchical state machines: Event, State, StateMachine

Functions

bind

Turn a function to a bound method on an instance

listify

Wraps a passed object into a list in case it has not been a list, tuple before.

run

Run the statemachine until the final state is reached.

Classes

CallbackState

State executing a given function while being active.

Container

Containers allow for hierarchical nesting of states.

Event

Events trigger actions and transitions.

OrderedSet

ProcessingState

State executing a procedure in a background thread

ProcessorThread

This constructor should always be called with keyword arguments.

State

Represents a state in a state machine.

StateMachine

State machine controls actions and transitions.

TransitionsContainer

Validator

Exceptions

StateMachineException

All StateMachine exceptions are of this type.