model
Class TuringInstruction

java.lang.Object
  extended by model.TuringInstruction

public class TuringInstruction
extends java.lang.Object

Stores an instruction for the Turing Machine

Author:
nadim

Constructor Summary
TuringInstruction(int input, int output, int move, java.lang.String newState)
          Takes the inputs for the instruction
 
Method Summary
 int getInput()
           
 int getMove()
           
 java.lang.String getNewState()
           
 int getOutput()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TuringInstruction

public TuringInstruction(int input,
                         int output,
                         int move,
                         java.lang.String newState)
Takes the inputs for the instruction

Parameters:
input -
output -
move -
newState -
Method Detail

getInput

public int getInput()
Returns:
the input

getMove

public int getMove()
Returns:
the move

getNewState

public java.lang.String getNewState()
Returns:
the newState

getOutput

public int getOutput()
Returns:
the output

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object