ibm Rational Rhapsody 7.5 — Associate an object node with a class

Activity diagram elements Object node features The Features window enables you to change the features of an object node, including its name and stereotype. Љ Name specifies the name of the object node. The default name is state_n , where n is an incremental integer starting with 0. The description of the action block can be entered into the text area on the Description tab. Љ L specifies the label for the element, if any. For information on creating labels, see Descriptive labels for elements . Љ Stereotype specifies the stereotype of the object node, if any. They are enclosed in guillemets, for example «s1» and enable you to tag classes for documentation purposes.

For information on creating stereotypes, see Stereotypes . – To select from a list of current stereotypes in the project, click the folder with binoculars button. – To sort the order of the stereotypes, click the up and down arrows button. Note: The COM stereotypes are constructive; that is, they affect code generation. Љ In State specifies the required states of the object node. Љ Represents lets you select a class/type to associate with the node from a list of project classes/types or enter the name of a new class. For more information, see Associate an object node with a class .

Associate an object node with a class In an activity diagram, you can associate an object node to a class/type to represent the class type using one of the following methods: Љ Right-click the object node in the diagram to display the Features window and select the class/type from the list in the Represents field. Љ Dragging a class/type from the browser into the activity diagram automatically associates the class/type with the object node. In the activity diagram, the associated node displays the name of its associated class/type in the name compartment. Rational Rhapsody 633