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