Requirement Diagram
Overview
Requirements diagrams can be used to describe system requirements, including non-functional requirements, and the relationships between them.
This page explains the operations for using class diagrams in the following order.
- Place the requirements diagram
- Define requirements
- Define relationships
Place the requirement diagram
To place a requirements diagram, follow these steps:
- Select the package in the model navigator and click [Add Model] > [Requirement Diagram] in the context menu.
- The requirement diagram is placed in the child element of the selected package.
Define the request
To define a request, follow these steps:
- Drag and drop [Requirement] from the toolbox onto the displayed requirement diagram.
- A new requirement is added as a sibling element of the displayed requirement diagram.
The following elements displayed in the toolbox can be placed in the requirements diagram.
Icon | Name |
---|---|
Requirement | |
Test case | |
Element | |
Note | |
Label | |
Shape |
Add request ID
To add a request ID, follow these steps:
- Select your request.
- Enter the request ID in the Basic information > Request ID field in the Property Inspector.
- The request ID is displayed above the request shape.
You can edit the request ID from the request diagram by following these steps:
- Double-click the request ID on the request shape to enter editing state.
- After changing the request ID and confirming the edit, it will be reflected on the request diagram.
If you want to display existing model elements (e.g. classes) on the requirements diagram, you can display them by dragging and dropping the elements on the model navigator onto the requirements diagram. These elements can be traced with the requests you add.
Define relationships
To define an association, follow these steps:
- Move the pointer over the request you want to associate.
- Drag the [▲] icons that appear on all sides of the request and drop them onto the other request you want to associate.
- A list of relationships that can be added will be displayed. Select the relationship you want to add. The selected relationship will be added and the default stereotype will be set.
The following relationships are available in requirement diagrams:
Icon | Name |
---|---|
Derived request | |
Copy | |
Satisfied | |
Refinement | |
Verification | |
Trace |
Restrictions
- The request ID is displayed above the request name, unlike the SysML standard notation.
- Stereotypes of requirements cannot be represented on diagrams. Please check and edit using the sub editor or inspector.
- If you want to change the type of relationship between requests (derived request, copy, refinement, etc.) once added, you need to create them again.