• Comments is used by the Reusable Stereotype - it uses a Rich Text data type to record any comments.
• Status is required by the Progress Stereotype - it uses an Enumeration data type to record the status of an item. It can be set to In Progress or Complete. The default value is In Progress.
• Useful is required by the Reusable Stereotype - It uses an Enumeration data type to record whether a Class may be useful for reuse. It can be set to No, Maybe or Yes. The default value is No.
·5 Publish the Tag Definitions
We publish each Tag Definition, so that they can be applied to model items. For each Tag Definition, we click the Publish button on the Usage tab of its Property Pages.
• We link the Progress Stereotype to the Status Tag Definition.
• We link the Reusable Stereotype to the Useful and Comment Tag Definitions.
The Profile is now complete, and can be applied to a model.
7 Apply the profile to the Filling Station model
In this example we are not using a configuration management tool. We export the Progress and Reuse profile package to a directory by right-clicking the Package, pointing to Package Import/Export, and then clicking Export.
We open the Filling Station Model and import the exported Progress and Reuse profile Package to the Profiles package by right-clicking the Profiles package, pointing to Package Import/Export, and then clicking Import.
After adding the Progress and Reuse Package, its Stereotypes and Tag Definitions are available for use in the Filling Station model. We unprotect the Progress and Reuse profile package by clearing the Protected check box on the Access Permissions tab of the Progress and Reuse profile package's Property Pages.
8 Apply the Progress Stereotype to all items
We apply the Progress stereotype to all valid items in the Model by selecting the 'Apply to All Objects of Associated Model Item Types' check box on the Options tab of the Progress Stereotype's Property Pages.
9 Set the Status tagged value (Progress Stereotype) of the Kiosk Controller Class to Complete
The Kiosk Controller Class is complete, so we want to set its Status to Complete.
We open the Property Pages for the Kiosk Controller Class and notice that a Progress tab is now included for the linked Progress Stereotype. We set the Status property to Complete.
10 Apply the Reusable Stereotype to the Kiosk Controller Class
The Kiosk Controller Class maybe suitable for reuse, so we link it to the Reusable Stereotype by right-clicking the Kiosk Controller Class, pointing to Applied Stereotypes, and then clicking Reusable.
11 Set the Useful tagged value (Reusable Stereotype) of the Kiosk Controller Class to Maybe
We open the Kiosk Controller's Property Pages and notice that a Reusable tab is now included for the linked Reusable Stereotype. We set the Useful property to Maybe.
We have now used a Profile, Stereotypes and Tag Definitions to extend the properties of the Kiosk Controller Class.