Creating a diagram
To create an L2 Logical Scenario diagram
- In the Containment Tree, select the L2 package, and do one of the following:
- From the selected package's shortcut menu, select Create Diagram > L2 Logical Scenario.
- In the modeling tool's main menu, click Create Diagram, search for L2 Logical Scenario, and select it.
- From the selected package's shortcut menu, select Create Diagram > L2 Logical Scenario.
- Name a diagram or leave it with the default name.
Creating an element
When the diagram is created, you can start creating the appropriate elements. An example is described using the Operational Performer element, but the same is valid for other structural elements.
To create an Operational Performer in a diagram
- In the diagram palette, click the Operational Performer and then click the appropriate place on the diagram pane.
- Name the element.
To create an Operational Performer in a Containment tree
- In the Containment tree, right-click the L2 package, and from the shortcut menu, select Create Element. Search for the Operational Performer and select it.
- Name the element.
- Drag the created element from the Containment tree to the diagram pane.
To create the elements from other resources (e.g. Word, Excel, HTML)
- Copy a list in your resource.
- In a diagram, press Ctrl+V and from the Paste Special dialog, choose Element.
- From the Select Type dialog, choose Operational Performer (or other appropriate element).
For more information about creating the elements from other resources, see Creating elements from other resources.
Connecting the Operational Performers
When you have Operational Performer created, you can start connecting them using the Composition and Aggregation relationships.
To connect the elements with the Composition relationship
- Select an element, which will be the Composition End.
From the Smart Manipulator, which appears after you select the element, choose Directed Composition.
You can also select the Composition relationship from the diagram palette.
- Move the mouse pointer over the target element and click to finish the action.
Once the Composition relationships is created, in the Containment tree, you can see the Composite element and note the Operational Roles (Part Properties) displayed within the namespace of the Composite element and how the element type and multiplicity is shown.
To connect the elements with the Aggregation relationship
- Select an element, which will be the Aggregation End.
In the diagram palette, click the black arrow near the Association and choose Aggregation.
Click the element which is the Aggregation End and draw the relationship to the Reference End.
Changing the role name and specifying multiplicity
To change the role name
- Right-click the selected Role end of the relationship.
- From the shortcut menu, select Edit Name. The default name will be displayed.
You can edit the default name on the diagram, in the Containment tree, or in the role's Specification window.
To specify multiplicity
- Right-click the selected Role end of the Composite relationship.
- At the bottom of the shortcut menu, choose one of the default multiplicity values.
You can always change the multiplicity value on the diagram or in the specification window of the role element.
Displaying created structure
If you already have created a structure in the Containment tree, you can display it on the diagram. There are three ways to display the structure:
- Relationship (direct) Notation. If you choose using this notation, the structure will be displayed on a diagram pane with the elements connected with relationships.
- Attribute Compartment Notation. If you choose using this notations, the structure will be displayed as the attributes in the Attributes compartment.
- Structure (Nested elements) Notation. If you choose using this notations, the structure will be displayed in the Structure compartment.
To display a created structure on a diagram (Relationship Notation)
- Drag the selected element with the part properties on to the diagram.
- Right-click that element, and from its shortcut menu, select Display > Display Related Elements.
In the Display Related Elements dialog, select Association.
If Operational Performers were related using the Operational Association relationship, select the Operational Association also.
- Click OK.
To display a created structure on a diagram (Attribute Compartment Notation)
- Drag the selected element with the part properties on to the diagram.
- Select the element ant click the Compartments smart manipulator.
In the Compartments menu, select Attributes.
When connecting the elements with Composition/Aggregation relationships, the roles are Association Ends. In such case, the roles will not be displayed in the Attributes compartment, only in the Structure compartment.
To display a created structure on a diagram (Structure (Nested elements) Notation)
- Drag the selected element with the part properties on to the diagram.
- Do one of the following:
- Select the element, click the Compartments smart manipulator, and choose Structure.
- Right-click that element, and from its shortcut menu, select Display > Display Parts/Ports.
- In the Display Parts/Ports dialog, select the parts you want to be displayed.
- Click OK.