sims.mdt
Class MachineRead
java.lang.Object
sims.mdt.TuringMachine
sims.mdt.MachineRead
- All Implemented Interfaces:
- GrapheInterface, Errors
public class MachineRead
- extends TuringMachine
Fields inherited from interface sims.mdt.Errors |
error1, error10, error11, error12, error13, error2, error3, error4, error5, error6, error7, error8, error9 |
Constructor Summary |
MachineRead(java.lang.String myFile)
class constructor, open file, and read it. |
Methods inherited from class sims.mdt.TuringMachine |
arcs, currentConf, getCurState, getInstructionLine, getMin, getName, getNbrArc, getNbrEtat, getNbTapes, getRacine, getScannedSquare, getSpaceCplx, getSpeed, getStateStatus, getTapeStatus, getTapeWord, getTimeCplx, getTransState, isGravity, isND, isProb, nextConf, nextConfD, nextConfND, readWord, setTapeCont |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MachineRead
public MachineRead(java.lang.String myFile)
throws java.io.IOException,
ExceptionCompilation
- class constructor, open file, and read it.
- Parameters:
myFile
- the entry word
- Throws:
java.io.IOException
ExceptionCompilation
inAlphabet
public boolean inAlphabet(char c)
- Returns:
- true if s (a character) is in the alphabet // later: manage tape's own alphabets
setStateStatus
public void setStateStatus(java.lang.String key,
java.lang.String value)
setNbTapes
public void setNbTapes(int i)
setInWord
public void setInWord(java.lang.String s)
setAlpha
public void setAlpha(int i,
char c)
setSpeed
public void setSpeed(int i)
setName
public void setName(java.lang.String s)
setInitState
public void setInitState(java.lang.String s)
setChoiceMachine
public void setChoiceMachine()
setProbMachine
public void setProbMachine()
setGravity
public void setGravity()