Linking a Classifier to an Object

The object diagram represents instances of class or interface, the sequence diagram represents the dynamic behavior of a class or interface, and the communication diagram represents those instances in a communication mode. For all these reasons, you can link a class or an interface to an object in an OOM.

From the object property sheet, you can:


  • Link the object to an existing class or interface

  • Create a class

  1. Select a class or interface from the Classifier list in the object property sheet.

    or

    Click the Create Class tool beside the Classifier list to create a class and display its property sheet.

    Define the properties of the new class and click OK.

    The class or interface name is displayed in the Classifier list.

  2. Click OK.

    The object name is displayed in the sequence diagram, followed by a colon, and the name of the class or interface selected.

    You can similarly view the object name in the class or interface property sheet: click the Dependencies tab and select the Objects sub-tab. The object name is automatically added in this sub-tab.

Note:

You can drag a class or interface node from the Browser and drop it into the sequence, communication or object diagrams. You can also copy a class or interface and paste it, or paste it as shortcut, into these diagrams. This automatically creates an object, instance of the class or of the interface.


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com