Example

Introduction

In this example, we are going to work on the “Newton” integration project, which is going to build an application based on two model components, “Data” and “GUI”. Each of these model components has been built by a separate team, using its own teamwork environment.

As shown in the illustration below, a class belonging to the “Newton” integration project is going to use the “MainWindow” class contained in the “GUI” model component, which itself depends on the “Data” model component.

2

Diagram of our example

Deploying model components in the “Newton” integration project

Since we are going to be working on the “Newton” integration project, the first step in our example is to deploy the “Data” and “gui” model components in the “Newton” project.

Since the “gui” model component depends on the “Data” model component, the “Data” model component must be installed first and the “gui” model component second.

3

Deploying the “Data” model component in your project

We’re now going to repeat this operation to deploy the “gui” model component. As you can see, when the “gui” model component is selected, the “Dependency” field in the “Deploy model component” field shows a message indicating that model component dependency has been respected (this message is indicated by the icon).

Result of the deployment operations

After the “Data” and “gui” model components have been deployed in the “Newton” integration project, the “Newton” integration project contains the two model components, along with all the model elements they contain (as shown below). Both the model components and the elements contained therein appear in gray in the “Model” view, thereby making them easily distinguishable from model elements directly belonging to the “Newton” integration project itself.

5

Our project after deployment of the “Data” and “gui” model components

Using a model component element in our project

The model components that have just been deployed (and the elements they have imported into the integration project) are in read-only mode and appear in gray in the “Model” view, indicating that they are not truly present in the “Newton” integration project, but can be used transparently like any other model element.

We are now going to continue by making the “MyApplication” class in our integration project use the “MainWindow” class provided by the “gui” model component (as shown below).

6

Creating a use link to the “MainWindow” class provided by the “gui” model component

The “Newton” integration project is now ready, and the build process can now begin (generation, compilation and linking).

modeler_fig_58.png (4.03 KB) admin admin, 12 June 2012 16:24

modeler_fig_76.gif (20.4 KB) admin admin, 12 June 2012 16:24

modeler_fig_76.png (40.9 KB) admin admin, 12 June 2012 16:24

modeler_fig_75.png (148 KB) admin admin, 12 June 2012 16:24

modeler_fig_75.gif (89.8 KB) admin admin, 12 June 2012 16:25

tick.png (679 Bytes) admin admin, 12 June 2012 16:25

modeler_fig_77.gif (46.3 KB) admin admin, 12 June 2012 16:25

modeler_fig_77.png (110 KB) admin admin, 12 June 2012 16:25