Programming

<<[Graph Grammars]  ::: [Debugging]>>

7. The ATOM3 class

The ATOM3 class implements the AToM3 Kernel. It is the file you have to invoke when loading AToM3 from the command line. From the command line AToM3 accepts as a parameter the name of the meta-model which should be loaded. If no meta-model is specified, the it will look in the default options which, by the way, are stored in file myOptions.py. These are the main attributes this class contains:

Figure 1: Main attributes of the ATOM3 class

The attributes' meaning is as follows:
Mode
Meaning
IDLEMODE The user didn't press any button
EDITstate The user pressed the "Edit Entity" button.
CONNECTstate The user pressed the "connect" button.
EXPANDModel The user pressed the "Expand model" button.
INSERTModel The user pressed the "Insert model" button.
DELETEstate The user pressed the "Delete" button.
SELECTgraph The user is requested by the graph grammar execution controls to select one of the highlighted subgraphs (a rule is applicable in several places).
SMOOTHconnection The user pressed the "Smooth" button.
DELETEpoint The user pressed the "Delete point" button.
INSERTpoint The user pressed the "Insert point" button.
CHANGEconnector The user pressed the "Change connector" button.
Table 1: ATOM3 predefined modes
The following figure contains the most important methods of the ATOM3 class.

Figure 2: Main methods of the ATOM3 class

The meaning of these methods is as follows:


<<[Graph Grammars]  ::: [Debugging]>>



Maintained by Juan de Lara. Last modified 25 July 2002.