Class: Transition

Transition(from, to, action, canChange)

This class has information about a state change.

Constructor

new Transition(from, to, action, canChange)

The constructor

Parameters:
Name Type Description
from string

The from state

to string

The to state

action function

The action to call if this transtion allows to change

canChange function

Guard function determis upon true and false if the transition is allowed

Source: