View Source Finitomata.State (Finitomata v0.7.2)

Carries the state of the FSM.

Link to this section Summary

Types

The payload that has been passed to the FSM instance on startup

t()

The internal representation of the FSM state

Link to this section Types

@type payload() :: any()

The payload that has been passed to the FSM instance on startup

@type t() :: %Finitomata.State{
  current: Finitomata.Transition.state(),
  payload: payload(),
  timer: non_neg_integer(),
  history: [Finitomata.Transition.state()]
}

The internal representation of the FSM state