Bases: automaton.machines.FiniteMachine
An ironic state-machine class with some ironic specific additions.
Adds a given state to the state machine.
| Parameters: |
|
|---|
Further arguments are interpreted as for parent method add_state.
Adds an allowed transition from start -> end for the given event.
Trigger a state change in response to the provided event.
| Returns: | Effect this is either a FiniteMachine.Effect or an Effect from a subclass of FiniteMachine. See the appropriate named tuple for a description of the actual items in the tuple. For example, FiniteMachine.Effect‘s first item is reaction: one could invoke this reaction’s callback to react to the new stable state. |
|---|---|
| Return type: | namedtuple |