Exercise 3.2: Identifying implementation design subpackages and creating the PiggyBank package diagram

In this exercise, you create the PiggyBank package diagram that describes the relationships between the packages in the PiggyBank online banking system. The PiggyBank package diagram is an overview diagram that helps you to design your application around a proposed architecture. You also identify and create the implementation design packages that make up the model.

In Module 2, you created the analysis model around the Account Operations functional area. In the design model, you map the Account Operations functional area to a set of implementation design subpackages that represent the design layers of the PiggyBank online banking system application. The implementation design packages, which you create in the PiggyBank Implementation Designs package, contain the design classes and domain diagrams for each design component.

The class diagrams that you create in this module represent the final Java™ classes in the PiggyBank implementation. You build on the analysis model classes to create the implementation design packages and design elements that represent the implementation of the completed application. After you create the classes, you can apply a transformation to the model to create the Java classes of the PiggyBank application.

In this exercise, you create the implementation design subpackages which you use to create the PiggyBank package diagram.

Identifying and creating the implementation design subpackages

The PiggyBank design model contains four implementation design subpackages: itso.ad.business, itso.ad.presentation, itso.ad.citybank, and itso.ad.common. In this tutorial, you create only the itso.ad.business, and itso.ad.citybank subpackages. You can import the itso.ad.common subpackage at the end of the tutorial.

To create the itso.ad.business implementation design subpackage:
  1. In the Model Explorer view, expand Design Model, expand «ModelLibrary» Design Model Building Blocks, right-click the ${functional.area.impldesign} package; then click Copy.
  2. Right-click PiggyBank Implementation Designs; then click Paste.
  3. Right-click ${functional.area.impldesign}; then click Find/Replace
  4. In the Find what field, type ${functional.area.impldesign} and click Replace.
  5. In the Replace with field, type itso.ad.business and click OK.

To create the itso.ad.citybank implementation design subpackage:
  1. In the Model Explorer view, right-click PiggyBank Implementation Designs; then click Paste.
  2. Right-click ${functional.area.impldesign}; then click Find/Replace
  3. In the Find what field, type ${functional.area.impldesign} and click Replace.
  4. In the Replace with field, type itso.ad.citybank and click OK.
To create the itso.ad.common implementation design subpackage:
  1. In the Model Explorer view, right-click PiggyBank Implementation Designs; then click Paste.
  2. Right-click ${functional.area.impldesign}; then click Find/Replace
  3. In the Find what field, type ${functional.area.impldesign} and click Replace.
  4. In the Replace with field, type itso.ad.common and click OK.
You have identified the three implementation design subpackages in the PiggyBank design model. You can document the packages in the PiggyBank package diagram.

Creating the package diagram

The package diagram documents the implementation design subpackages that represent design layers in the PiggyBank design model.

To create the PiggyBank Implementation design package diagram:
  1. In the Model Explorer view, expand PiggyBank Implementation Designs, and double-click the PiggyBank Implementation Design Packages diagram.
  2. In the diagram editor, right-click the diagram instructions; then click Delete from Diagram.
  3. In the Model Explorer view, click itso.ad.business and drag it into the diagram.
  4. In the Model Explorer view, click itso.ad.citybank and drag it into the diagram.
  5. In the Model Explorer view, click itso.ad.common and drag it into the diagram.

You have identified and created the implementation design packages of the PiggyBank design model. You use this structure to create the PiggyBank design classes and and design diagrams. You can add UML notes to the PiggyBank Implementation Design Packages diagram to describe the purpose of each package. Your model structure should look similar to the following figure:

The Model Explorer that contains the PiggyBank Enterprise IT Design Model.
Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.