org.jscience.computing.automaton.machines
Class TuringMachine.Transition
java.lang.Object
org.jscience.computing.automaton.machines.FSM.State
org.jscience.computing.automaton.machines.TuringMachine.Transition
- Enclosing class:
- TuringMachine
public static class TuringMachine.Transition
- extends FSM.State
This class handles the Turing Machine transitions. Turing
Machine transitions are a little more complicated than finite state
machine transitions since tape direction and write symbols need to be
accounted for.
|
Constructor Summary |
TuringMachine.Transition(FSM.State state,
int write,
int tape)
The default constructor that specifies the next state, the write
symbol and tape direction. |
| Methods inherited from class org.jscience.computing.automaton.machines.FSM.State |
addTransition, getPositionX, getPositionY, isSelfReferring, render, renderConnections, setName, setPosition, setSelfReferring, toString, transition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nextState
protected FSM.State nextState
- The next state.
writeSymbol
protected int writeSymbol
- The write symbol.
tapeDirection
protected int tapeDirection
- The new tape direction.
TuringMachine.Transition
public TuringMachine.Transition(FSM.State state,
int write,
int tape)
- The default constructor that specifies the next state, the write
symbol and tape direction. Note that the state self-sets its
position according to the position of the next state.
- Parameters:
state - the next state.write - the write symbol.tape - the tape direction.