View Source Protean.Machinery (Protean v0.1.0-alpha.0)

Purely-functional statechart core based on the SCXML specification.

Provides the underlying state-transition logic for a statechart, primarily through transition/3, a higher-level transition API for using %Protean.Machine{} apart from the interpreter provided by Protean, and take_transitions/3, a lower-level API used by a statechart interpreter.

It is uncommon to use this module independently of the Protean behaviour.

Link to this section Summary

Functions

Select any machine transitions that apply to the given event in the current state.

Transition in response to an event.

Link to this section Functions

Link to this function

select_transitions(config, state, event, attribute \\ :transitions)

View Source

Select any machine transitions that apply to the given event in the current state.

Link to this function

take_transitions(config, state, transitions)

View Source
Link to this function

transition(config, state, event)

View Source

Transition in response to an event.