Documentation of the Alter-Java GUI

Skip to Content

TU Wien Fakultät für Informatik DBAI Database and Artificial Intelligence Group
Top-level Navigation: Current-level Navigation:

Path: DBAI > research > project > Alter-Java

Tools: Drucken


Documentation of the Alter-Java GUI

This documentation illustrates the functionality of the graphical user interface, which has been implemented to illustrate an algorithm from the Alter-Java framework. The GUI is adaptable for every kind of algorithm, which is implemented in the Alter-Java framework. The following guide illustrates, how the graphical user interface can be used.

Design and building

The graphical user interface consists of following components:

Components of the GUI

Menu

The menu of the GUI offers the possibility to edit the view of the computation tree. It offers the following menu-points:

Usage of the GUI - Code Implementation

The Implementation of the worktape in the graphical user interface needs a few components, which has to be down by the developer of an Alter-Java program. The GUI offers the class DefaultFormat, with the necessary methods, which can be extended.

The class DefaultFormat in the Package at.ac.tuwien.dbai.alternation.gui contains the following methods:

If an own class is defined and extends the DefaultFormat-class, this class should be instantiated. The Object of this class offers the method setFormat, where the Dimension of the nodes and the space between the nodes can be defined. Without using this method the class defines default parameters for the application.

To create a mainframe of the GUI, it is necessary to instantiate the class Mainframe of the package at.ac.tuwien.dbai.alternation.gui. The constructor of the class needs the computation-tree of the alternation-example, the own implemented class which extends DefaultFormat and an integer-value, which defines the maximum tree deep, to which the gets drawn. (Please mention that the computation tree may increase expontentially with the tree deep and thus for high deep the GUI may exeed the available resources of the java proccess)

For detailed information about the code-implementation have a look at the API of the application.

Examples

Maybe the best way to see how this GUI can be used is to study some examples:

Home / Kontakt / Webmaster / Offenlegung gemäß § 25 Mediengesetz: Inhaber der Website ist das Institut für Logic and Computation an der Technischen Universität Wien, 1040 Wien. Die TU Wien distanziert sich von den Inhalten aller extern gelinkten Seiten und übernimmt diesbezüglich keine Haftung. Disclaimer / Datenschutzerklärung