![]() |
![]() |
![]() |
![]() |
Class Attribute--Detail Tab Class Attribute--Detail Tab
Figure 26 Class Attribute--Detail Tab
Containment
Physical containment plays a role in the construction and destruction of an aggregate's parts through semantics. The specification of physical containment is necessary for meaningful code generation from the model.
You can set one of the following types of physical containment.
To set or change the containment type in the Relationship Specification, click the applicable option in the Containment field. The application places an adornment at the supplier end of the relationship. You can also select a value from the shortcut menu.
Static
Select the Static check box to specify that the client class, not the client's instances, owns the supplier class. In the case of an attribute, a static attribute is an attribute whose value is common to a class of objects rather than a value peculiar to each instance.
You can set this field in the specification or through the shortcut menu.
Derived
The Derived check box indicates whether the element was computed (derived) or implemented directly.
To define a element as derived, select the Derived check box. The element name is adorned by a "/" in front of the name.
Operation SpecificationYou should complete one Operation Specification for each operation that is a member of a class and for all free subprograms.
If you change the property of a class operation by editing its specification, Rational Rose will update all class diagrams containing icons representing that class.
To access the Operation Specification, select an entry on the Operation tab of the Class Specification and double-click the entry or click Insert from the shortcut menu. You can also bring the specification up through the shortcut menu.
Specification Content
The Operation Specification consists of the following tabs: General, Detail, Preconditions, Semantics, Postconditions, and Files.
Rational Software Corporation
http://www.rational.com support@rational.com docs@us.ibm.com Copyright © 1993-2000, Rational Software Corporation. All rights reserved. |
![]() |
![]() |
![]() |
![]() |