Creating parameters
Overview
In the
“MDAC options” window, you can access and
define the parameters of a given MDA component.
These parameters are organized into groups.
Creating a group
Groups can be created by clicking on
the
icon from
a Java MDA component.
Steps:
1. In the explorer, select the Java MDA component for which you wish to create parameters.
2.
Click on the
icon and confirm by clicking on “OK”.
The “Group” dialog box then appears.
3. Enter a name for your new parameter group and click on “OK” to confirm.
Creating a parameter
Parameters can be created by clicking
on the
icon from a parameter group belonging to a
Java MDA component, by carrying out the steps below.

Figure 178. The "Parameter" dialog box
Steps:
1. In the explorer, select the parameter group to which you want to add a new parameter.
2.
Click on the
icon. The “Parameter” window then
appears (as shown in Figure 178).
3. In the window, enter a name and a type for the new parameter and then click on “OK” to confirm. Possible types are as follows:
· boolean: This type of parameter will produce a tickbox.
· char: This type of parameter will produce a textfield.
· integer: This type of parameter will produce a textfield.
· real: This type of parameter will produce a textfield.
· string: This type of parameter will produce a textfield.
· ObjecteeringTypes::Directory: This type of parameter will produce a textfield with a button next to it, used to open a directory chooser.
· ObjecteeringTypes::File: This type of parameter will produce a textfield with a button next to it, used to open a file chooser.
· ObjecteeringTypes::Note: This type of parameter will produce a textfield.
· ObjecteeringTypes::SetOfDirectories: This type of parameter will produce a textfield with a button next to it, used to open a directory chooser.
· ObjecteeringTypes::SetOfFiles: This type of parameter will produce a textfield with a button next to it, used to open a directory chooser.
The result of the operation shown in Figure 178 is shown below.

Figure 178-bis. Example of a parameter
After carrying out these operations
and compiling the Java MDA component, the parameter appears in the
“MDAC
options” window (Figure 179).

Figure 179. The parameter now appears in the “MDAC options” window
Toolbar
The icons appearing in the “MDA” tab of the auxiliary window can be used to run the following commands:
|
Icon |
Description |
|
|
This icon is used to open this page. |
|
|
This icon is used to check that the parameter has been correctly modeled. |