model
Class Instruction<STATE,SYMBOL,MOVE>
java.lang.Object
model.Instruction<STATE,SYMBOL,MOVE>
- Type Parameters:
STATE
- States domainSYMBOL
- Symbols domainMOVE
- Moves domain
- All Implemented Interfaces:
- java.io.Serializable
public class Instruction<STATE,SYMBOL,MOVE>
- extends java.lang.Object
- implements java.io.Serializable
The quintuple representing an instruction for the Turing Machine
Copyright (C) 2011 Federico "MrModd" Cosentino (http://mrmodd.it/)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
q
public final STATE q
s
public final SYMBOL s
nq
public final STATE nq
ns
public final SYMBOL ns
m
public final MOVE m
Instruction
public Instruction(STATE currentState,
SYMBOL currentSymbol,
STATE nextState,
SYMBOL nextSymbol,
MOVE move)
- Create the instruction
- Parameters:
currentState
- currentSymbol
- nextState
- nextSymbol
- move
-
getCurrentState
public STATE getCurrentState()
getCurrentSymbol
public SYMBOL getCurrentSymbol()
getNextState
public STATE getNextState()
getNextSymbol
public SYMBOL getNextSymbol()
getMovement
public MOVE getMovement()