Package | artcustomer.framework.process.states |
Class | public class StateMachine |
Inheritance | StateMachine Object |
Implements | IDestroyable |
Method | Defined By | ||
---|---|---|---|
Constructor
| StateMachine | ||
addState(id:String, entry:Function, exit:Function):Boolean
Add State in machine. | StateMachine | ||
destroy():void
Destructor
| StateMachine | ||
hasState(id:String):Boolean
Test if State exist in machine. | StateMachine | ||
removeState(id:String):Boolean
Remove State from machine. | StateMachine | ||
setState(id:String):Boolean
Set State in machine. | StateMachine |
StateMachine | () | Constructor |
public function StateMachine()
Constructor
addState | () | method |
public final function addState(id:String, entry:Function, exit:Function):Boolean
Add State in machine.
Parameters
id:String | |
entry:Function | |
exit:Function |
Boolean —
|
destroy | () | method |
public function destroy():void
Destructor
hasState | () | method |
public final function hasState(id:String):Boolean
Test if State exist in machine.
Parameters
id:String |
Boolean —
|
removeState | () | method |
public final function removeState(id:String):Boolean
Remove State from machine.
Parameters
id:String |
Boolean —
|
setState | () | method |
public final function setState(id:String):Boolean
Set State in machine.
Parameters
id:String |
Boolean —
|