Module Index

Constructor

Methods

Class: StateTransition

The StateTransition class. Used to change the state of a given state machine.

Constructor

__init__ (self, machine=None, target=None, predicate=None)

Constructor. Initialize the StateTransition attributes. The machine parameter is a StateMachine instance. The target parameter is the new state the machine will be in upon a successful transition. The predicate parameter is a Predicate instance that will determine if a change in state will take place.

Methods

transition (self)

Perform a state machine transition test. This method will publish a EventStateTransitionTransition event.