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.
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.
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).
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.
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).
The “Newton” integration project is now ready, and the build process can now begin (generation, compilation and linking).