model
Class Instruction<STATE,SYMBOL,MOVE>

java.lang.Object
  extended by model.Instruction<STATE,SYMBOL,MOVE>
Type Parameters:
STATE - States domain
SYMBOL - Symbols domain
MOVE - 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

Field Summary
 MOVE m
           
 STATE nq
           
 SYMBOL ns
           
 STATE q
           
 SYMBOL s
           
private static long serialVersionUID
           
 
Constructor Summary
Instruction(STATE currentState, SYMBOL currentSymbol, STATE nextState, SYMBOL nextSymbol, MOVE move)
          Create the instruction
 
Method Summary
 STATE getCurrentState()
           
 SYMBOL getCurrentSymbol()
           
 MOVE getMovement()
           
 STATE getNextState()
           
 SYMBOL getNextSymbol()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Instruction

public Instruction(STATE currentState,
                   SYMBOL currentSymbol,
                   STATE nextState,
                   SYMBOL nextSymbol,
                   MOVE move)
Create the instruction

Parameters:
currentState -
currentSymbol -
nextState -
nextSymbol -
move -
Method Detail

getCurrentState

public STATE getCurrentState()

getCurrentSymbol

public SYMBOL getCurrentSymbol()

getNextState

public STATE getNextState()

getNextSymbol

public SYMBOL getNextSymbol()

getMovement

public MOVE getMovement()