View Source Protean.Transition (Protean v0.0.1)

TODO

Event descriptors Guards Internal Exact Actions

Link to this section Summary

Functions

Checks whether the transition is enabled for the given event.

Link to this section Types

@type t() :: %Protean.Transition{
  actions: [Protean.Action.t()],
  guard: Protean.Guard.guard(),
  internal: boolean(),
  match?: (term() -> boolean()) | term() | nil,
  source_id: Protean.Node.id(),
  target_ids: [Protean.Node.id()] | nil
}

Link to this section Functions

Link to this function

enabled?(transition, event, state, handler)

View Source
@spec enabled?(t(), Protean.event() | nil, Protean.State.t(), handler :: module()) ::
  boolean()

Checks whether the transition is enabled for the given event.