Class: StateEvent

StateEvent

new StateEvent(type, from, to, transition)

Parameters:
Name Type Description
type String
from String name of the exiting/exited state
to String name of the entering/entered state
transition transition name of the transition
Source:

Members

<static, constant> CHANGED

Dispatched after transitioning has completely finished.
Default Value:
  • 'changed'
Source:

<static, constant> ENTERED

Dispatched when a state has been entered
Default Value:
  • 'entered'
Source:

<static, constant> ENTRY_DENIED

Dispatched when entry to a state has been denied by a guard
Default Value:
  • 'entryDenied'
Source:

<static, constant> EXIT_DENIED

Dispatched when exit from a state has been denied by a guard.
Default Value:
  • 'exitDenied'
Source:

<static, constant> EXITED

Dispatched when a state has been exited
Default Value:
  • 'exit'
Source:

<static, constant> TRANSITION_DENIED

Dispatched when the current state has no transition with the specified name or if the to state was not found.
This event is only dispatched by jsfsa.Automaton
Default Value:
  • 'transitionDenied'
Source:

fqn :String

Source:

from :String

The name of the state we're (trying to) transition from.
Source:

to :String

The name of the state we're (trying to) transition to.
Source:

transition :String

The name of the transition.
Source:

type :String

The name of the dispatched event.
Source:
See:
  • jsfsa.StateEvent.ENTERED
  • jsfsa.StateEvent.EXITED
  • jsfsa.StateEvent.ENTRY_DENIED
  • jsfsa.StateEvent.EXIT_DENIED
  • jsfsa.StateEvent.TRANSITION_DENIED
  • jsfsa.StateEvent.CHANGED

Methods

_setType(type)

Parameters:
Name Type Description
type
Source:

clone() → {jsfsa.StateEvent}

Source:
Returns:
Type
jsfsa.StateEvent