sims.mdt
Class Instruction

java.lang.Object
  extended by sims.mdt.Instruction

public class Instruction
extends java.lang.Object


Constructor Summary
Instruction(int l, java.lang.String st)
          Instance a new instruction
 
Method Summary
 int getLine()
           
 java.lang.String getNewState()
           
 java.lang.String getTapeTrans(int i)
           
 void setTrans(int tape, java.lang.String value)
          Insert the move value as a move of this instruction for the tape tape.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction

public Instruction(int l,
                   java.lang.String st)
Instance a new instruction

Parameters:
l - the line number in the file.
st - the new state.
Method Detail

setTrans

public void setTrans(int tape,
                     java.lang.String value)
Insert the move value as a move of this instruction for the tape tape.


getNewState

public java.lang.String getNewState()
Returns:
the new state of this instruction.

getTapeTrans

public java.lang.String getTapeTrans(int i)
Returns:
the move of the tape i.

getLine

public int getLine()
Returns:
the line of this instruction.