UML Designer User's Guide

Adding a protocol figure

To establish a conformance relationship between the Catalog class and the <Catalog> protocol, follow these steps:

  1. In the Class Diagrammer, select Protocol figure icon Protocol on the tool bar.
  2. Add the Protocol figure to an empty area of the drawing surface.
  3. Select Attach from the pop-up menu of the Protocol figure.
  4. When prompted for the protocol to link to, select <Catalog>. Then select OK.
  5. Select Conformance figure icon Conformance on the tool bar.
  6. Click mouse button 1 on the Catalog class design figure to indicate that it is the source of the relationship.
  7. Click mouse button 1 on the <Catalog> protocol figure to indicate that it is the destination of the relationship.

When you complete the connection, you should see methods appear in the Catalog class design figure to show that it conforms to the <Catalog> protocol.
Class figure illustration (3)

Now select Display Options>Method Name Only from the pop-up menu of the Catalog class figure. This turns off the Method Name Only toggle so you can see the complete method signatures.
Class figure illustration (4)

The method signatures include specifications of the types of the parameters and the return values of the methods. A plus sign (+) before a method signature indicates that the method is specified (it is taken from the protocol the class conforms to). Parentheses around the method name indicate that the method is unimplemented, meaning that no real method implementation exists in the underlying Smalltalk class.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]