public class StateMachine
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StateMachine.Transition
The resulting transition.
|
static class |
StateMachine.TransitionType
The possible transition type.
|
Constructor and Description |
---|
StateMachine(History history)
Instantiates a new state machine.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getLastNode()
Returns the last node.
|
StateMachine.Transition |
getLastTransition() |
void |
reset()
Resets the state machine.
|
StateMachine.Transition |
transition(int[] currentNode)
Computes the best state transition.
|
public StateMachine(History history)
history
- the historypublic int[] getLastNode()
public StateMachine.Transition getLastTransition()
public void reset()
public StateMachine.Transition transition(int[] currentNode)
currentNode
- the current node