Tool Mentor: Using Rational Rose® to Create Use-Case
Realizations
Purpose
To represent use-case realizations in Rational Rose®98.
Related Rational Unified Process Activities: Architectural Analysis,
Overview
The following steps are performed to create the Artifact: Use-Case Realization:
- Creating the Use-Case
Realization Package in the appropriate Model
- Creating a Use-Case Realization
- Creating traceability between a Use Case
and its Use-Case Realization
Tool Steps
Use-Case Realizations may be created in either the Artifact: Analysis Model or the Artifact: Design Model, or both.
These artifacts are in turn represented as packages in the "Logical View" in
Rational Rose®. Please refer to Tool Mentor- Using Rose to
Capture the Results of Use-Case Analysis and Tool Mentor: Using
Rational Rose® to Manage the Design Model for information on creation of these
packages.
- Right-click to select the appropriate model (analysis or design) in the browser.
- Select Package from the New option on the short-cut menu. A
"NewPackage" browser icon is added to the browser.
- With the new package icon selected, type the name "Use-Case Realizations".
- Right-click to select the "Use-Case Realizations" package in the browser.
- Select Class Diagram from the New option on the
short-cut menu. A "NewDiagram" browser icon is added to the browser.
- With the new diagram icon selected, type the name "Traceabilities".
To create a Use-Case Realization:
- Right-click to select the "Use Case View" package in the browser and make the
short-cut menu visible.
- Select Use Case from the New option on the short-cut menu. A
"NewUseCase" class icon is added to the browser.
- Left-click to select the "NewUseCase" icon. Holding the left-button
down, drag-and-drop the "NewUseCase" into the "Use-Case Realization"
package.
- Double-click the "NewUseCase" icon to display the Use Case Specification for
"NewUseCase".
- Replace the name "NewUseCase" with the name of the Use Case.
- In the Stereotype field, enter "realization".
- Click the "OK" button.
- If a dialog appears indicating the Use Case now exists in two name spaces, click
"OK".
- In the Use-Case Realization package created above (see Creating the Use-Case
Realization Package in the appropriate Model), create a package to manage the
Use-Case Realization, giving it the same name as the use-case realization. See Tool Mentor- Using Rational Rose to Manage the Design Model for
information about creating and naming packages.
- In the browser, drag and drop the use-case realization into this newly created package.
The use-case realization now exists in the Design model, in a package of its own,
organized together with all other use-case realizations. Having a package per
use-case realization makes independent management and versioning of the artifact possible.
To create traceability between a Use Case and its Use-Case Realization:
- Expand the "Logical View" in the browser.
- Expand the appropriate model package (i.e. "Analysis" or "Design")
in the browser
- Expand the "Use-Case Realization" package in the browser
- Double-click on the "Traceabilities" diagram to open it.
- From the "Use Case View" left-click to select the Use Case. Holding the
left-button down, drag-and-drop the Use Case onto the canvas of the
"Traceabilities" diagram.
- From the "Use-Case Realizations" package, left-click the select the Use-Case
Realization you wish to associate with the Use Case selected in step 3.5. Holding
the left-button down, drag and drop the Use-Case Realization onto the canvas of the
"Traceabilities" diagram, locating it in close proximity to the Use Case from
step 3.5.
- From the diagram tool bar, select the "association" tool.
- Left-click on the Use-Case Realization. Holding the left-button down, move the
mouse pointer to the Use Case and release the left-button. An association will
be created.
- Double-click on the association to display the association specification.
- In the stereotype field, enter "realizes".
- Click "OK".
| |

|