GODPAPER | All Packages | All Classes | Index | Frames No Frames |
HierarchicalFiniteStateMachine

Package | com.lookbackon.AI.HFSM
Class | public class HierarchicalFiniteStateMachine
Inheritance | HierarchicalFiniteStateMachine com.lookbackon.AI.FSM.FiniteStateMachine
Implements | IHierarchicalFiniteStateMachine

HierarchicalFiniteStateMachine.as class. In a hierarchical finite state machine,any state can be a substate of some large state.

See also

http://www.drdobbs.com/184402040;jsessionid=PYAOQHC2ZEFFFQE1GHPCKHWATMY32JVN?pgno=3

Public Methods

| Method | Defined By
--- | --- | ---
|  | HierarchicalFiniteStateMachine(owner:Agent, currentState:IState = null, previousState:IState = null, nextState:IState = null) | HierarchicalFiniteStateMachine
|  | changeState(s:IState):void [override] Change to another sub-state. | HierarchicalFiniteStateMachine

Constructor Detail

HierarchicalFiniteStateMachine | () | Constructor

`public function HierarchicalFiniteStateMachine(owner:Agent, currentState:IState = null, previousState:IState = null, nextState:IState = null)`

Parameters

| `owner:Agent`
| `currentState:IState` (default = `null`)``
| `previousState:IState` (default = `null`)``
| `nextState:IState` (default = `null`)``

Method Detail

changeState | () | method

`override public function changeState(s:IState):void`

Change to another sub-state.

Parameters

| `s:IState` — is anew state.actually is IHState.

Thu Jan 16 2014, 01:11 PM +08:00