Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Transition<T>

Represent a transition function from state(s) to state(s)

Type parameters

  • T

Hierarchy

  • Transition

Index

Constructors

constructor

Properties

from

from: T | Array<T>

The starting state(s)

name

name: string

A name that identifies logically this state change (eg. Melting, Vaporizing, ...)

Optional onAfterTransition

onAfterTransition: GenericEventHandler<T>

Called after the transition occurs

Optional onBeforeTransition

onBeforeTransition: GenericEventHandler<T>

Called before the transition occurs

to

to: T | Array<T>

The destination state(s)

Methods

toString

  • toString(): string

Generated using TypeDoc