Exercise 3: Selecting the pattern

In this exercise, you locate the pattern in the Pattern Explorer view that you will apply to elements in the UML model.

As a pattern applier, you can look at different types of pattern documentation to assist you in selecting and applying a pattern. You can locate the pattern documentation by using the Pattern Explorer view to examine each pattern. After you have selected a pattern, you can apply it. For this tutorial, you will apply the Interface pattern.

If you would like to view this exercise before you perform the steps, click:

Show me button Show Me

Before you begin, you must complete Exercise 2: Importing sample patterns.

Locating a pattern to apply

Learn how to find the types of documentation that is available in a pattern.
  1. In the Pattern Explorer view, expand the Sample Patterns group. Locate the Interface pattern.
  2. Click the Interface pattern. A description of the pattern displays in the Pattern Explorer view's Short Description pane.
  3. Click the Overview tab. A simple model of the relationship of the pattern elements reveals the potential use of the pattern.
  4. Expand the Interface pattern to view the pattern's parameters. The pattern owns two parameters named Interface and Implementation.
  5. Click each parameter and read the short description for each. The description explains the function that the parameter performs in the pattern.
  6. Right-click the Interface pattern and click Show Pattern Documentation. The online Help opens with additional information about this pattern.
You can use the pattern documentation to understand the purpose of the pattern. Documentation varies according to what a pattern author chooses to provide.

You are ready to apply the Interface pattern so go on to Exercise 4: Creating an instance of the pattern.

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.