Dfa behaviour (dfa v0.1.8)

Behaviour of deterministic finite automaton.

Link to this section Summary

Callbacks

Defines a state change event.

Removes a state change event.

Load a state.

Triggers an event.

Link to this section Types

Specs

option() :: String.t() | integer() | nil

Link to this section Callbacks

Link to this callback

on!(t, integer, t, t, t, list)

Specs

Defines a state change event.

Link to this callback

rm!(t, integer, t, list)

Specs

Removes a state change event.

Link to this callback

state!(t, integer, list)

Specs

Load a state.

Link to this callback

trigger!(t, integer, t, list)

Specs

trigger!(String.t(), integer(), String.t(), [option()]) ::
  {:ok, String.t()} | {:error, String.t()}

Triggers an event.