< Previous | Next >

Lesson 2.9: Create the Cash Check Participants diagram

In this lesson, you create the Cash Check Participants diagram. The Cash Check Participants diagram models the static structure of the Cash Check use case.

About this task

The Cash Check Participants diagram shows the classes that participate in the Cash Check use case. You model the participants, along with their relationships, to describe the domain of the system. The sequence diagram describes the dynamic information that is necessary to understand the temporal flow of data. When you create the sequence diagram, you discover all the operations in each class in the use case.

Modeling is an iterative process. You can add, remove, or modify the participants at any time as you better understand the details of the system that you are modeling. In this lesson, you create the basic outline of the Cash Check Participants diagram.

You create the Cash Check Participants diagram in the Account Operations package.

To create the diagram and model the Account class:

Procedure

  1. In the Project Explorer view, expand RUP Analysis Model, expand Account Operations, expand Cash Check, and double-click the Cash Check Participants diagram.
  2. In the Project Explorer view, expand Account Operations Analysis Elements, click the Account class, and drag it into the diagram.
  3. In the Project Explorer view, expand Account Operations, click the MenuForm class, and drag it into the diagram.

Results

You started the Cash Check Participants diagram. The Cash Check Participants diagram shows the static structure of the Cash Check use case.

Create the CashCheckControl participant

The CashCheckControl participant is a control class that represents the business logic of the Cash Check functional area.

Procedure

  1. In the Palette, double-click Class and name the class CashCheckControl.
  2. Position the CashCheckControl participant in the center of the diagram.
  3. In the diagram editor, click the CashCheckControl class and, in the Properties view, on the Stereotypes page, click Add Stereotypes.
  4. In the Apply Stereotypes window, select the Control check box and click OK.

Create the CashCheckForm participant

The CashCheckForm participant is a boundary class that represents the money transfer form that is displayed when the user clicks Cash Check on the main menu of the online user interface.

Procedure

  1. In the Palette, double-click Class and name the class CashCheckForm.
  2. In the diagram editor, click the CashCheckForm class and, in the Properties view, on the Stereotypes page, click Add Stereotypes.
  3. In the Apply Stereotypes window, select the Boundary check box and click OK.

Create the CityBank participant

The CityBank participant is a boundary class that represents the CityBank banking system that verifies PiggyBank transactions.

Procedure

  1. In the Palette, double-click Class and name the class CityBank.
  2. In the diagram editor, click the CityBank class and, in the Properties view, on the Stereotypes page, click Add Stereotypes.
  3. In the Apply Stereotypes window, select the Boundary check box and click OK.

Results

You created all the participants in the Cash Check use case.

Create the CashCheckControl participant relationships

Because the CashCheckControl participant is a control class, it is central to, and depends on, most of the other classes in the use case. In this lesson you create the CashCheckControl class relationships.

Procedure

  1. In the Palette, under Dependency, click Usage.
  2. In the diagram editor, click the CashCheckControl class and drag the cursor to the Account class.
  3. In the Palette, click Usage.
  4. In the diagram editor, click the CashCheckControl class and drag the cursor to the CityBank class.
  5. In the Palette, click Usage.
  6. In the diagram editor, click the CashCheckForm class and drag the cursor to the CashCheckControl class.
  7. In the Palette, under Usage, click Instantiate.
  8. In the diagram editor, click the CashCheckControl class and drag the cursor to the CashCheckSummaryForm class.
  9. In the Palette, click Instantiate.
  10. In the diagram editor, click the MenuForm class and drag the cursor to the CashCheckForm class.

Results

You created the Cash Check Participants diagram, which shows the static structure of the Cash Check use case. Your diagram should look similar to the following figure:

The basisc outline of the Cash Check Participants diagram.
< Previous | Next >

Feedback