|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--TED5tuple
TED5Tuple.java This class simulates a 5-Tuple in a Turing Machine. The 5 Data fields are: Initial State: The state you are in. Final State: The state you will transition to. Character Read: The character at the current position of the tape head. Character to be Written: The character to be written at the position of the tape head. Direction to move: Direction in which to move the tape head. Copyright 2005 Ben Pfistner and Jason Emmons
| Constructor Summary | |
TED5tuple()
|
|
| Method Summary | |
char |
getDirection()
getDirection() |
java.lang.String |
getFinalState()
getFinalState() |
java.lang.String |
getInitialState()
getInitialState() |
char |
getReadChar()
getReadChar() |
char |
getWriteChar()
getWriteChar() |
static void |
main(java.lang.String[] args)
|
void |
setDirection(char direction)
setDirection() |
void |
setFinalState(java.lang.String state)
setFinalState() |
void |
setInitialState(java.lang.String state)
setInitialState() |
void |
setReadChar(char read)
setReadChar() |
void |
setWriteChar(char write)
setWriteChar() |
java.lang.String |
toString()
toString() This method tells a 5tuple how to write itself out as a string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TED5tuple()
| Method Detail |
public void setInitialState(java.lang.String state)
the - state we are currently inpublic java.lang.String getInitialState()
public void setFinalState(java.lang.String state)
the - state we will transition to from this 5-Tuplepublic java.lang.String getFinalState()
public void setReadChar(char read)
the - character we readpublic char getReadChar()
public void setWriteChar(char write)
the - charcter to be writtenpublic char getWriteChar()
public void setDirection(char direction)
the - direction for thispublic char getDirection()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||