Lesson 2.9: Create the Cash Check Participants diagram
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
- In the Project Explorer view, expand RUP Analysis Model, expand Account Operations, expand Cash Check, and double-click the Cash Check Participants diagram.
- In the Project Explorer view, expand Account Operations Analysis Elements, click the Account class, and drag it into the diagram.
- 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
Procedure
- In the Palette, double-click Class and name the class CashCheckControl.
- Position the CashCheckControl participant in the center of the diagram.
- In the diagram editor, click the CashCheckControl class and, in the Properties view, on the Stereotypes page, click Add Stereotypes.
- In the Apply Stereotypes window, select the Control check box and click OK.
Create the CashCheckSummaryForm participant
Procedure
- In the Palette, double-click Class and name the class CashCheckSummaryForm.
- In the diagram editor, click the CashCheckSummaryForm class and, in the Properties view, on the Stereotypes page, click Add Stereotypes.
- In the Apply Stereotypes window, select the Boundary check box and click OK.
Create the CashCheckForm participant
Procedure
- In the Palette, double-click Class and name the class CashCheckForm.
- In the diagram editor, click the CashCheckForm class and, in the Properties view, on the Stereotypes page, click Add Stereotypes.
- In the Apply Stereotypes window, select the Boundary check box and click OK.
Create the CityBank participant
Procedure
- In the Palette, double-click Class and name the class CityBank.
- In the diagram editor, click the CityBank class and, in the Properties view, on the Stereotypes page, click Add Stereotypes.
- In the Apply Stereotypes window, select the Boundary check box and click OK.
Results
Create the CashCheckControl participant relationships
Procedure
- In the Palette, under Dependency, click Usage.
- In the diagram editor, click the CashCheckControl class and drag the cursor to the Account class.
- In the Palette, click Usage.
- In the diagram editor, click the CashCheckControl class and drag the cursor to the CityBank class.
- In the Palette, click Usage.
- In the diagram editor, click the CashCheckForm class and drag the cursor to the CashCheckControl class.
- In the Palette, under Usage, click Instantiate.
- In the diagram editor, click the CashCheckControl class and drag the cursor to the CashCheckSummaryForm class.
- In the Palette, click Instantiate.
- 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:
