Package ro.inf.p2.odd.alan

Class Summary
AboutDialog About dialog for Alan.
Alan Implements a graphical frontend for the Turing Machine with input elements for the Turing Machine tuple, the transition functions and output elements for a textual output of the tape plus additional information like: no transition function defined for character 'c' and so on.
ContentDialog This class is used to display the help for alan.
HtmlEditor Format a text field using HTML tags and provide the user with a preview option
Tape Class Tape A Endless Tape, on which the Touring Machine writes
TapeGUI A custom widget that draws the contents of a Tape in a very nice way.
TransitionFunctionElement Class TransistionFunctionElement Contains the transistion function delta = { p, Y, D } - p is the next state of the turing machine - Y is the symbol from gamma to write to the tape - D is the direction to move
TuringMachine Class TuringMachine This class implements a complete Turing Machine which is described by the formula M = (Q,Sigma, Gamma, delta, q0, B, F) where: - Q is a finite set of states - Gamma is a finite set of the tape alphabet - Sigma is a finite set of the input symbols (subset of Gamma) - delta is the set of transistion functions - q0 is the initial state (member of Q) - B is the BLANK symbol - F is set of final accepting states (subset of Q) You can either execute the turing machine with execute and just get the results or walk step by step through the execution using start() and nextStep().
 

Enum Summary
TuringMachine.Direction This enum describes the possible ways to move for the tape.