next up previous contents
Next: The Simulator's Programming Language Up: Java Implementation Previous: Package eniac.view   Contents

Subsections

Package eniac.control

Class eniac.control.Controller

This central class is used whenever there is communication between classes in different packages, to have a unified interface. Furthermore, it provides methods for resetting the virtual machine (initialClear()), and printing in the central GUI text area (print(), println()).

Class eniac.control.CPPException

An instance of this exception is thrown if there is more than one CPP reception on a program input port at a time. This means that there is an error in the connections. eniac.control.CPPException is the only custom exception defined so far, but pre-defined exceptions, such as java.lang.ParseException, and java.io.IOException, are for example used in eniac.control.Loader to signal problems.

Class eniac.control.Display

Here we find the method show(), which forms a long String, which contains the complete description of the current virtual machine state. This value is used in eniac.view.EditWindow (eniac.control.Controller.show() calls eniac.control.Display.show()).

Class eniac.control.Loader

This class contains two similar parts, one for reading virtual machine code from a file, the other for reading an argument string. Parsing is done by the methods load(), or input(), which in turn call methods parseContent(), parseConnect(), and parseAction(), to process the three blocks of the machine code source files.


next up previous contents
Next: The Simulator's Programming Language Up: Java Implementation Previous: Package eniac.view   Contents
Peter Hansen 2003-09-21