Dfa behaviour (dfa v0.1.9)

Behaviour of deterministic finite automaton.

Link to this section Summary

Link to this section Types

Specs

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

Link to this section Callbacks

Link to this callback

initialize!(t, integer, t, list)

(optional)

Specs

initialize!(String.t(), integer(), String.t(), [option()]) ::
  Redix.Protocol.redis_value()
Link to this callback

initialize!(t, t, integer, t, list)

(optional)

Specs

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.