Exercise 2.4: Creating the Account Operations use case realization overview diagram

In this exercise, you create the Account Operations use case realization overview diagram. You realize the Display Balance, Transfer Money, and Cash Check use cases by creating a dynamic and static view of the information in each use case.

In this exercise, you create an overview diagram that describes the collaboration elements that realize each use case. The diagram serves as an overview with links to each use case realization.

The purpose of a use case realization is to define how the system implements a given use case; in this instance, the Display Balance, Transfer Money, and Cash Check use cases. A use case realization contains a domain diagram that describes the participants of the use case and their relationships, and a sequence diagram that describes the workflow of the use case.

The purpose of the participants diagram is to discover and model the basic structure of each participant. For each participant, this includes the RUP® stereotype, the attributes, and any relationships that exist between classes. The participants diagram is the most basic, static view of your classes that provides the blueprints for the design model. When you create the sequence diagram portion of the use case realization, you discover the operations that each entity uses to control and pass data in the application.

Creating the Account Operations use case realizations overview diagram

The Account Operations use case realizations overview diagram shows the collaboration instances that are the basis for each use case realization. The diagram shows the basic relationship between the use case and the collaboration instance that contains the use case realization. The diagram references the use case model.

To create the Display Balance use case realization in the Account Operations overview diagram:
  1. In the Model Explorer view, expand Account Operations, and double-click Account Operations Analysis-Level Use Case Realizations diagram.
  2. Double-click Use Case Model.emx, expand Use Case Model, expand Account Operations, click the Display Balance model element, and drag it into the Account Operations diagram.
  3. In the Model Explorer view, expand Analysis Model, expand Account Operations, click «use case realization» Display Balance, and drag it into the diagram.
  4. In the Palette, click Component diagram and click Realization.
  5. In the diagram editor, place the cursor over the Display Balance collaboration instance and drag it to the Display Balance use case.

To create the Transfer Money use case realization in the Account Operations overview diagram:
  1. In the Model Explorer view, expand Account Operations.
  2. Double-click Use Case Model.emx, expand Use Case Model, expand Account Operations, click theTransfer Money model element and drag it into the Account Operations diagram.
  3. In the Model Explorer view, expand Analysis Model, expand Account Operations, click «use case realization» Transfer Money, and drag it into the diagram.
  4. In the Palette, click Component diagram and click Realization.
  5. In the diagram editor, place the cursor over the Transfer Money collaboration instance and drag it to the Transfer Money use case.

To create the Cash Check use case realization in the Account Operations overview diagram:
  1. In the Model Explorer view, expand Account Operations.
  2. In the Model Explorer view, double-click Use Case Model.emx, expand Use Case Model, expand Account Operations, click the Cash Check model element, and drag it into the Account Operations diagram.
  3. In the Model Explorer view, expand Analysis Model, expand Account Operations, click «use case realization» Cash Check, and drag it into the diagram.
  4. In the Palette, click Component diagram and click Realization.
  5. In the diagram editor, place the cursor over the Cash Check collaboration instance and drag it to the Cash Check use case.

You have created the Account Operations use case realization overview diagram, which is a basic overview of the Display Balance, Transfer Money, and Cash Check use case realizations. The diagram references the use cases from the PiggyBank use case model that you created in Module 1. Your diagram should look similar to the following figure:

The PiggyBank use case realization diagram.
Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.