Chapter 3 Building Structural Diagrams


Creating an implementation operation

When you create a realization link between a class and an interface, the class must have an implementation of all the operations of the interface.

When the Auto-Implement Realized Interfaces option is selected in the model options (Tools→Model Options), the operation is automatically created in the class that implements the interface.

When the Auto-Implement Realized Interfaces option is not selected in the model options, you can create an implementation operation manually, using the following steps:

Steps To create an implementation operation:

  1. Double-click a class that is linked to an interface by a realization link, and then click the Operations tab.
  2. Click the To be Implemented button to open the To Be Implemented Operations window. This window contains a list of all operations of the interface that can be implemented from the class. You can use the Properties button to display the property sheet of an operation.
  3. Select an operation from the list, then click Implement and Close. A copy of the operation is created in the class and is added to the list of operations. It is grayed, indicating that its name cannot be modified, and its stereotype is set to <<Implement>>.
  4. Click OK.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.