Defining a J profile implementation
Creating a J profile implementation
Profile implementations, which are
specific packages dedicated to implementing a profile or metamodel, can be
created in J by clicking on the
icon from the “Behavior profiles”
folder of a J MDA component.
A J profile implementation must be
linked to a reference metamodel.
The current version of the MDA Modeler tool provides the Objecteering
metamodel, which
To create a new J profile implementation, simply carry out the steps:
1. In the explorer, select the “Behavior profiles” folder.
2.
Click on the
icon. The “Profile implementation”
window then appears.
3. Name your profile implementation.
4. Click on “OK” to confirm.
After confirmation of the information entered, the following elements are created:
· a package stereotyped “j_profile_implementation” with the name entered in the “Name” field of the “Profile implementation” dialog box
· a dependency stereotyped “referencedMetamodel”, linking the profile implementation and the Objecteering metamodel
· a dependency linking the profile and the “ObjecteeringTypes” package, so as to have access to the types necessary to the definition of parameters
· a static diagram named “Overview of Xxxx” linked to the profile implementation
The “J profile implementation” dialog box

Figure 90. The “J profile implementation” dialog box
Key:
· “Name”: This field is used to enter the name of the J profile implementation you are about to create.
Implementing a profile
By default, a newly created J profile implementation only implements the metamodel it references. To implement a specific profile, a dependency stereotyped “realize” must be created between the profile implementation and the profile.
Steps:
1. Select the profile implementation in the explorer.
2.
Click on the
icon. The “Profile
realization” dialog box then appears.
3. In the “Profile realization” dialog box, select a profile. Confirm creation of this new realization link by clicking on “OK”. You can double-click directly on the profile without clicking on the button “OK”.
Updating diagrams
If the “Create/update MDA diagrams automatically” MDAC option is activated and if you use the MDA icons to create MDA element, all diagrams concerning the MDA component are automatically created or updated.
Otherwise, the
button allows you to force the creation or
update of the MDA diagrams.
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 create/update diagrams, even if the “Create/update MDA diagrams automatically” option is deactivated. |
|
|
This icon is used to generate documentation of the J profile implementation. |
|
|
This icon is used to view the generated documentation. |
|
|
This icon is used to open an editor in which you can edit the J profile implementation's J code. |
|
|
This icon is used to check that the J profile implementation has been correctly modeled. |
|
|
This icon is used to compile the J profile implementation. |