Customizing Design Attributes
Elements in a Rational Statemate model are further defined using design attributes. Every element has attributes that are relevant to that type of element. For example, the design attributes for activities may include Type, Task Run Mode, Generate Function (yes/no). These attributes appear on the Design Attributes tab of the Properties dialog.
For most of the provided OSIs, a default set of design attributes are defined for the various Rational Statemate elements. You can also add new design attributes for an element, using the Attributes Editor, which is part of the OSDT. In addition to allowing you to define new attributes, this editor allows you to modify the various field values for the default design attributes.
The design attributes for an element, both the default attributes and any new ones, can be used as tokens when defining the different APIs with the OSDT, allowing you to include the values of element attributes in the generated code.
For each design attribute, the editor displays:
Note: The key name is the string that is used when the attribute is used as a token. Since both other attributes and the API might reference a key value of an attribute, you are asked to confirm any changes to the key name of an attribute. When such a change is made, the name change is propagated to any attributes for the same element that have a reference to the attribute.To edit attribute information:
1. Click Edit Attributes... on the main OSDT window.
2. The Design Attributes Definition dialog is displayed. This window is not used for editing attribute information, but simply for turning on/off the use of design attributes for specific model elements. If you clear the check box next to an element name, the design attributes will not appear when you display the Properties dialog for elements of this type.
3. In the Design Attributes Definition dialog, click Edit Attributes... . The Attribute Editor window will be displayed. All editing of information is done on the right side of this dialog. The left side serves as a browser, and contains controls that can be used to modify the order in which the attributes appear in the Properties dialog.To save any changes/additions you have made to the design attributes, select File > Save All from the menu, and after you have closed the Attribute Editor dialog, select File > Save from the OSDT menu. The changes will not be saved to the OSI if you have only saved them in the Attribute Editor dialog.