This is a Home Page of GENERIC project

COM1205
Winter 97
Project: Generic

Members:
Alexander Mechnikov alex@ccs.neu.edu
Alexey Ivanov aliv@ccs.neu.edu
Michael Traskunov beatles@ccs.neu.edu


g_displayAsTree displays a detailed description of an object using the object graph notation. If the strm argument is provided, then the output is sent to the ostream in the given .I strm, otherwise the output is sent to the standard output. The object must be a tree object. That is, it cannot have any cycles or shared subobjects. The class of the object is displayed preceded by a colon, and followed by an open delimiter, the description of the compo- sition of the object, and a close delimiter. If the class of the object is a construction class the open and close delim- iters are "(" and ")", respectively, and the composition of the object is a number of part objects. If the class of the object is a repetition class the open and close delimiters are "{" and "}", respectively, and the composition of the object is a sequence of repeated element objects. Each part object or repeated element object is in turn displayed in object graph format in a similar fashion. Each part object is preceded by a label indicating the name of the part in the class dictionary that defines the object that contains the part. If the class of the object is a terminal class (i.e., Ident, Number, Real, String, or Text), then no delim- iters are displayed and the composition of the object is simply a quoted value.

Class Dictionary file: program.cd
Behavior file: program.beh
GUI Application (source code): applic.java
Shell Script that interacts between interface and project application: myscript



NOTE: To take advantage of GUI interface, the project must run on DEC Alpha Workstations.
SUN/SPARC stations do not have necessary support for all Java Packages!!!

Operating Instructions (Assuming project is compiled):

- Run compiled version of applic.java (Works on DEC Alphas ONLY!)
(execution can be completed by running: java applic)
- Create/Load a Class Dictionary file in the Input Window (left side)
- Select RUN to execute the processing (if the file was newly created,
the application will present the Save dialog box to save the file)
- Once processing completes, the output will be displayed in the Output
Window (right side).
- In addition, the output is saved in created.out.beh file in the
current working directory.

If DEC Alphas are not available for your use, look at myscript above and use similar
syntax to run the project. No GUI interface will be provided, though.

Last Updated: 03/14/1997