![]() |
![]() |
![]() |
![]() |
![]() |
Drawing a Deployment Diagram
In order to build a threaded executable, you must supply information about the threads of the application. For each thread, you must specify which SDL instance sets that should run inside it. Finally, you may want to partition your SDL system into several executable files.
This information is modeled using Deployment Diagrams. These are edited using the Deployment Editor. The Deployment Diagram provides a way to model deployment of SDL systems independently of the target platform.
What You Will Learn
Starting the Deployment Editor
Double-click the deployment symbol "network_depl" in the Organizer. The Deployment Editor is launched with the selected diagram.
Deploying an SDL System
The Deployment Diagram features:
- Partitioning of SDL systems
- Organization of SDL instance sets within executable files
- Organization of SDL instance sets within threads (Threaded Integration only)
A deployment diagram has five symbols: the node, the component, the thread, the object and the comment symbols. Each symbol is described in Table 1.
Table 1Deployment Diagram Symbols
A point of execution. The symbol is used for threaded integrations only
An SDL instance set, i.e. a system, block or process instance set
The symbols are connected using compositions. When a symbol is selected in a diagram, a handle is shown at its bottom. Click the handle to create a composition link. Click the symbol you wish to connect to.
The name of each symbol can be edited from the diagram area. Some of the symbols contain additional information, which is edited from the Symbol Details dialog box.
The network_depl deployment diagram is shown in Figure 206.
The diagram shows five components, each representing an executable file. All components are attached to one node. Each component has one or many threads. Each thread has one or many objects attached to it, reflecting the SDL instance sets that execute inside it.
For instance, the "JohnMS" component contains one thread, "T". The thread has one object attached to it, called "JohnMS". The object reflects an SDL instance set in the network SDL system. Look at the Organizer window and compare the block instance sets shown in the system with the objects in the deployment diagram.
The Symbol Details Dialog Box
The dialog box is opened in one of the following ways:
- Double-click a diagram symbol
- Right-click a diagram symbol. Select Symbol Details... in the pop-up menu.
Component
Double-click the component named "John". The symbol details dialog box will appear. The dialog box is shown in Figure 207.
The integration model can be selected from a drop-down list in the dialog box. The selected integration model controls the code generation parameters for the executable file that is generated from the component. Three integration models can be selected: Light, Threaded and Tight.
For the "John" component, the selected integration model is "Threaded". The information filled in the other text boxes is not used for code generation.
Thread
Click the thread symbol "T". The dialog box will change its content to reflect that of the thread. The new appearance of the dialog box is shown in Figure 208.
For a thread, four parameters can be set for performance-tuning of the generated executable:
The values of these parameters are specific to the target operating system. If no values are given, default values are used. All threads in the network_depl deployment diagram use default values.
Object
Click the object symbol "JohnMS". The dialog box will change its content to reflect that of the object. The new appearance of the dialog box is shown in Figure 209.
For an object, two parameters are mandatory to fill in:
The stereotype is the type of SDL instance set. The possible values are "system", "block" and "process". "JohnMS" is a block, which is reflected in the stereotype text box.
The qualifier is used to identify the SDL instance set. Locate the "JohnMS" block in the Organizer window. The block instance set is located directly under the "network" system. This renders the qualifier "network/johnMS".
The network_depl diagram is complete. The next step is to build executable files from the diagram.
More information on the Deployment Editor is available in The Deployment Editor.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |