Dfa behaviour (dfa v0.2.1)

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

initialize!(t, integer, t)

(optional)

Specs

Link to this callback

initialize!(t, t, integer, t)

(optional)

Specs

Link to this callback

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

Specs

Defines a state change event.

Link to this callback

rm!(t, integer, t)

Specs

Removes a state change event.

Link to this callback

state!(t, integer)

Specs

Load a state.

Link to this callback

trigger!(t, integer, t)

Specs

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

Triggers an event.