ex_state v0.3.0 ExState.Definition.State View Source

Link to this section Summary

Link to this section Types

Link to this type

state_type()

View Source
state_type() :: :atomic | :compound | :final
Link to this type

t()

View Source
t() :: %ExState.Definition.State{
  actions: %{required(ExState.Definition.Transition.event()) => atom()},
  ignored_steps: [ExState.Definition.Step.t()],
  initial_state: String.t(),
  name: String.t(),
  repeatable_steps: [String.t()],
  steps: [ExState.Definition.Step.t()],
  transitions: %{
    required(ExState.Definition.Transition.event()) =>
      ExState.Definition.Transition.t()
  },
  type: state_type()
}

Link to this section Functions

Link to this function

add_action(state, event, action)

View Source
Link to this function

add_parallel_steps(state, steps)

View Source
Link to this function

add_repeatable_step(state, step)

View Source
Link to this function

add_step(state, step, order)

View Source
Link to this function

add_transition(state, transition)

View Source
Link to this function

child?(state, child_maybe)

View Source
Link to this function

complete_step(state, name, decision \\ nil)

View Source
Link to this function

filter_steps(state, filter)

View Source
Link to this function

put_completed_step(state, name, decision \\ nil)

View Source
Link to this function

repeatable?(state, step_name)

View Source
Link to this function

sibling?(state, sibling_maybe)

View Source
Link to this function

transition(state, event)

View Source