PureMVC Framework for haXe: API Documentation
Back | Index
class org.puremvc.haxe.multicore.utilities.statemachine.StateMachine
extends org.puremvc.haxe.multicore.patterns.mediator.Mediator

A Finite State Machine implementation.

Handles regisistration and removal of state definitions, which include optional entry and exit commands for each state.

var currentState(getCurrentState,setCurrentState) : State
function new() : Void
Constructor.
function registerState(state : State, ?initial : Bool) : Void
Registers the entry and exit commands for a given state.
function removeState(stateName : String) : Void

Remove a state mapping.

Removes the entry and exit commands for a given state as well as the state mapping itself.

static var ACTION : String
Action Notification name.
static var CANCEL : String
Cancel Notification name
static var CHANGED : String
Changed Notification name
static var NAME : String
Back | Index