Tool Mentor: Using Rational Rose® to Capture the
Results of Use-Case Analysis
Purpose
To represent the results of the Activity:
Use-Case Analysis in in Rational Rose®98.
Overview
The following steps are performed to record the results of Use-Case Analysis:
- Creating the Analysis Model
(optional)
- Creating a Use-Case Realization
- Creating Diagrams for the Use-Case
Realization
- Creating Analysis Classes
- Documenting Class Responsibilities
- Creating
Class Diagrams to document Analysis Classes
The Artifact: Analysis Model is
optional; the results of the Activity:
Use-Case Analysis are typically represented using the Artifact: Design Model. If a separate
Analysis Model is to be maintained, it can be represented in Rational Rose® using a
package within the Logical View Named "Analysis Model".To create a package
called "Analysis Model" in the Logical View:
- Right-click to select the Logical View 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 "Analysis Model".
In addition, separate Use-Case realizations will need to be created within this
Model. See Tool Mentor: Using Rational Rose to Create
Use-Case Realizations, and follow its steps, but create the realizations within the
Analysis Model package created above.
See Tool Mentor: Creating a Use-Case Realization
Use-Case Realizations may be captured in Rational Rose® using either Collaboration
Diagrams or Sequence Diagrams.
Collaboration diagrams tend to be easier to draw on a white-board, while Sequence
diagrams portray object interactions and time-sequencing in a more intuitive way.
The choice of which one to use is largely a matter of taste and project preferences.
For information on creating sequence diagrams, see Tool Mentor-
Using Rational Rose to Manage Sequence Diagrams.
For information on creating collaboration diagrams, see Tool
Mentor- Using Rational Rose to Manage Collaboration Diagrams
The Activity: Use-Case Analysis results in one or more of the Artifact: Analysis Class. These
analysis classes are typically represented in the Design Model, but may be optionally
maintained in a separate Analysis Model (see Artifact:
Analysis Model):
- Right-click to select the desired "Model" package in the browser and make the
short-cut menu visible.
- Select Class from the New option on the short-cut menu. A
"NewClass" class icon is added to the browser.
- While the new class is still selected, type the name of the class.
To describe a class:
- Double-click on the class symbol, either in the browser or in the class diagram to
open its Class Specification dialog box.
- In the documentation field, enter its brief description.
- Click OK to accept the descriptions of the class and close the Class
Specification dialog box.
To describe the responsibilities of the analysis class:
- Double-click on the class in the browser or class diagram to open its specification.
- Select the Operations tab in the Specification dialog box.
- Right-click to open the short-cut menu. Select Insert. A new operation is created
in the operation list area. Enter the responsibility name, preceded by '//'. Using
these special characters will indicate that the operation is being used to describe the
responsibilities of the analysis class.
- Describe the created responsibility (operation) in the Documentation field in the
Operation Specification dialog box. The invoked aspect of the designated
responsibility should be described.
To move responsibilities (operations) and attributes between classes:
- Locate the class that currently defines the operation or attribute in the browser.
- Click on the plus sign to the left of the class name to display the full interface of
the class in the browser.
- Drag-and-drop the operation or attribute that is going to be moved to the destination
class.
To create a class diagram and insert a class in the diagram, do the following:
- Right-click to select the appropriate "Model" package in the browser and make
the short-cut menu visible.
- Select Class Diagram from the New option on the short-cut menu. A
"NewDiagram" class diagram is added to the browser.
- While the class diagram is still selected, type the name of the class diagram; name the
diagram after the class that it is meant to describe.
- Click to select the class in the browser.
- Drag-and-drop the class onto the class diagram.
Repeat the preceding steps for each class in the appropriate "Model" package.
|