Options
All
  • Public
  • Public/Protected
  • All
Menu

This class holds the information nesessary to perform a state machine transition.

You can extend this class to implement some custom logic.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • state: State

      state from which the transition is possible

    • signal: Signal | undefined

      signal, that triggers the transition, or undefined if it is an unconditional transition

    • implementation: TransitionFunction

      the next state or a function that returns one

    Returns Transition

Properties

implementation

implementation: TransitionFunction

the next state or a function that returns one

signal

signal: Signal | undefined

signal, that triggers the transition, or undefined if it is an unconditional transition

state

state: State

state from which the transition is possible

Methods

onConditionsMet

  • onConditionsMet(stateMachine: Automaton): void
  • This lifecycle method is triggered when all conditions are met to perform a transition.

    Parameters

    Returns void

onConditionsUnmet

  • onConditionsUnmet(stateMachine: Automaton): void
  • This lifecycle method is triggered when conditions to perform a transition are no longer met

    Parameters

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc