Class TEDController

java.lang.Object
  |
  +--TEDController

public class TEDController
extends java.lang.Object


Constructor Summary
TEDController()
          Constructor
 
Method Summary
 void doHalt()
          halt() This method halts the execution of the TM
 void doLoad()
          doLoad() This method loads the current TM from a file
 void doSave()
          doSave() This method saves the current TM to a file
 void loadMachine(TEDTM theTM)
          loadMachine() This method loads the Turing Machine once it passes through the parser.
 void ludicrousSpeed()
          ludicrousSpeed() This method runs the TM at Ludicrous Speed
 java.lang.StringBuffer printSerialNumber()
          printSerialNumber() This method creates a dialog box which displays the serial number of the current Turing Machine.
 void reload()
          reload() This method reloads the current TM.
 void runSpeed()
          runSpeed() This method runs the TM at Run Speed
 void stepSpeed()
          stepSpeed() This method runs the TM at Step Speed
 void updateRuleDisplay(java.lang.String tuple)
          updateRuleDisplay() This method tells the gui to update the tuple history
 void updateStatusBox(TED5tuple currentTuple)
          updateStausBox() This method tells the user just what the TM is doing
 void updateTape(int x)
          updateTape This method tells the Gui to update the tape and gives it the current position of the tapehead.
 boolean validate()
          validate() This method takes the User-entered input and creates a parser to deal with it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TEDController

public TEDController()
Constructor
Method Detail

validate

public boolean validate()
validate() This method takes the User-entered input and creates a parser to deal with it.

loadMachine

public void loadMachine(TEDTM theTM)
loadMachine() This method loads the Turing Machine once it passes through the parser. This method also creates a backup TM in case the user wants to reset the currentTM
Parameters:
theTM: - the Turing Machine which was created by the parser.

doSave

public void doSave()
doSave() This method saves the current TM to a file

doLoad

public void doLoad()
doLoad() This method loads the current TM from a file

stepSpeed

public void stepSpeed()
stepSpeed() This method runs the TM at Step Speed

runSpeed

public void runSpeed()
runSpeed() This method runs the TM at Run Speed

ludicrousSpeed

public void ludicrousSpeed()
ludicrousSpeed() This method runs the TM at Ludicrous Speed

doHalt

public void doHalt()
halt() This method halts the execution of the TM

reload

public void reload()
reload() This method reloads the current TM.

printSerialNumber

public java.lang.StringBuffer printSerialNumber()
printSerialNumber() This method creates a dialog box which displays the serial number of the current Turing Machine.

updateStatusBox

public void updateStatusBox(TED5tuple currentTuple)
updateStausBox() This method tells the user just what the TM is doing
Parameters:
currentTuple: - the current 5Tuple we are printing out.

updateTape

public void updateTape(int x)
updateTape This method tells the Gui to update the tape and gives it the current position of the tapehead.
Parameters:
x: - the current position of the tapehead.

updateRuleDisplay

public void updateRuleDisplay(java.lang.String tuple)
updateRuleDisplay() This method tells the gui to update the tuple history
Parameters:
tuple: - the current 5Tuple we are printing out.