home *** CD-ROM | disk | FTP | other *** search
Modula Definition | 1994-01-27 | 1010 b | 33 lines |
- DEFINITION MODULE AMGraphics;
-
- (* AMGraphics does all the interactive graphics work required during
- program execution, incluing plotting an automata, printing message
- outputs, and accepting input.
-
- Version 2.0A by Mike Dryja February 21, 1987 *)
-
- FROM AMCalc IMPORT Automata;
-
- TYPE
- ScrollType = (Coarse, Smooth); (* Possible scroll types for the Automata
- screen *)
-
- VAR
- Error : BOOLEAN; (* After any call, returns FALSE if no Error, TRUE if
- some type of Error occurred *)
-
- PROCEDURE PreparePlot ();
- (* Initializes internal variables, so it must be called before a new
- automata is to be plotted. *)
-
- PROCEDURE SetScroll (Scroll : ScrollType);
- (* Sets the scrolling of an automata to be smooth or coarse, even during
- the plot of an automata. *)
-
- PROCEDURE PlotAutomata(State : Automata);
- (* Takes an automata and plots it, scrolling the screen when there is no
- more room left. *)
-
- END AMGraphics.
-
-