Skip to main content

Block definition diagram

Overview

Block definition diagrams are available to describe the flow of control of system execution.
This page explains the operations for using block definition diagrams in the following order.

  • Place block definition diagram
  • Define the block
  • Define relationships

We also provide the following features to assist users in their modeling:
These will also be explained in turn.

  • Set display content

Block definition diagram

Place the block definition diagram

To place a block definition diagram, follow the steps below.

Place block definition diagram

Operating instructions
  1. Select the package in the model navigator and click [Add Model] > [Block Definition Diagram] from the context menu.
  2. The block definition diagram is placed in the child element of the selected package.

Define the block

Add block

To add blocks, follow these steps:

Define block

Operating instructions
  1. Drag and drop [Block] from the toolbox onto the displayed block definition diagram.
  2. A new block is added as a sibling element to the displayed block definition diagram.
Elements that can be added from the toolbox

In the block definition diagram, you can place the following elements displayed in the toolbox.

IconName
PackagePackage
BlockBlock
Constraint blockConstraint block
Value typeValue type
UnitUnit
Amount typeAmount type
NoteNote
LabelLabel
Add ShapeShape

Add stereotypes to blocks

To add a stereotype, follow these steps:

Add stereotype

Operating instructions
  1. Select a block.
  2. Click the Add button in the Basic information > Stereotype field in the Property Inspector to display the choices.
  3. Select a stereotype and press the [OK] button to set the stereotype on the block and display the stereotype on the block shape.
tip

Stereotype choices can be defined in the package model's Detail view.

tip

Once you have added a stereotype, you can edit it from the block definition diagram by following these steps:

  1. Double-click the stereotype displayed in the block to enter editing state.
  2. When you change the stereotype and confirm the edit, it will be reflected on the block definition diagram and the block stereotype will be changed.
tip

To display an existing block on the block definition diagram, drag and drop the block on the model navigator onto the block definition diagram.

Add operations

To add operations to a block, follow these steps:

Define operation

Operating instructions
  1. Click the [+] button in the operation area of ​​the displayed block shape.
  2. The operation is added to the partition and becomes editable.
  3. Enter and confirm the operation you want to add, and the operation will be added.

Define the relationship

To define an association, follow these steps:

Add relation

Operating instructions
  1. Move the pointer over the block you want to associate.
  2. Drag the [▲] icons that appear on all sides of the block and drop them onto the other block you want to associate.
  3. A list of relationships that can be added will be displayed. Select the relationship you want to add, and the selected relationship will be added.
Related information that can be added

The following relationships are available in block definition diagrams:

IconName
EmbeddedOwned
AggregationAggregation
RelationshipRelationship
RequiresDepends

Edit related multiplicity

Edit related multiplicity

Operating instructions
  1. Select an association.
  2. Double-click the grayed-out [*] to enter editing mode.
  3. Enter the multiplicity you want to set, the multiplicity will be set in the relationship, and the multiplicity will be displayed in the relationship in the block definition diagram.

Edit the related end name of the relationship

Edit association end name

Operating instructions
  1. Select an association.
  2. Double-click the grayed out [-] to enter editing mode.
  3. Enter the relationship end name you want to set, the relationship end name will be set in the relationship, and the relationship end name will be displayed in the relationship in the block definition diagram.

Add stereotypes to associations

To add a stereotype, follow these steps:

Add stereotype

Operating instructions
  1. Select an association.
  2. Double-click the grayed-out [<<stereotype>>] to enter editing mode.
  3. Enter the stereotype you want to set, and the stereotype will be displayed in the relationship in the block definition diagram, and the stereotype will be set in the relationship.

Set display content

You can display only the information of interest in the block definition diagram without changing the model.
To configure what the visibility of a relationship displays, follow these steps:

Simply display text

Operating instructions
  1. Display the block definition diagram whose display you want to switch.
  2. Toggle the check on the visibility checkbox in the Relationship group on the UML Diagram tab in the Inspector.
Elements whose display can be switched

You can switch the display of the following elements in the block definition diagram.

CategoryElement
CommonStereotype
RelationshipVisibility

Restrictions

  • Block input/output ports cannot be placed as shapes. Please write in compartments.