Tool Overview | Using CoCompose | Modelling Designs | Translating Designs |
FRAMES | NO FRAMES |
3. Modelling Designs |
3.1. Adding Elements |
To add elements to the design model, select the element to create in the "Mouse action" box (see Figure 1). Generally, one will start a design model by introducing concepts. Composites can be used to describe the relationships between concepts. By default the "Select" action is activated.
Figure 1: The mouse action box.
Click on an empty spot in the drawing area to create the selected element on that spot. Note that composite roles should be placed inside composites.
3.2. Adding Links |
Links are used to connect concepts, composites and/or composite roles. To create links between elements, select the "Create link" option from the "Mouse action" box (see Figure 1).
Now click the first element and then click the second element. Both elements should now be linked. To create multiple points on the link, you can click on an empty spot in the drawing area after having clicked the first element.
3.3. Editing Element Properties |
To edit an element in the design model, double-click it. An element-specific dialogue window pops up in which the properties for the selected element can be edited.
3.4. Editing Model Properties |
The global properties for the entire design model can be edited by selecting "Model -> Model properties" from the main menu. The target language for translating can be set here, as well as the translation priority heuristic per target language.
The translation priority can be defined by adding specific concept forms (e.g. Class, Method) for a specific target language (e.g. Java) to the ordered list of concept forms. After adding concept forms, one can move them up and down in the priority list. The concept form at the top has the highest priority.
3.5. Saving/Loading Models |
To save a design model to a file, click the "Save model" button in the model/drawing window. To load a design model from a file, click the "Open model" button in the main/repository window.
You can also choose to export EPS images of your models. To save an EPS image of a design model, choose "File -> Save model as EPS" from the menu of the model/drawing window.
3.6. Saving/Loading Composites |
To save a composite type to a file, select the composite to save and then click the "Save composite" button in the model/drawing window.
To load a composite type from a file, select the composite type to load from the "Composite Repository" box in the main/repository window. Then select "Create repository composite" in the "Mouse action" box (Figure 1). Click an empty spot in the drawing area to create an instance of the selected composite type.
Tool Overview | Using CoCompose | Modelling Designs | Translating Designs |
FRAMES | NO FRAMES |