Chapter 4 Extending your Models with Profiles


Create object stereotypes

The robustness analysis classifies objects in three categories:

To implement the robustness analysis in PowerDesigner, you are going to create stereotypes for objects in the communication diagram. These stereotypes correspond to the three object categories defined above. You will also attach custom tools in order to create a palette specially designed for creating objects with the <<Entity>>, <<Control>>, or <<Boundary>> stereotype.

You create these stereotypes in the Profile category of the extended model definition attached to your model.

Steps To create object stereotypes:

  1. Select Model→Extended Model Definition and double-click the arrow beside Robustness Extension in the list to display the resource editor.
  2. Right-click the Profile category and select Add Metaclasses.

    The Metaclass Selection dialog box is displayed.
  3. Select UMLObject in the list of metaclasses displayed in the PdOOM tab and click OK.

    The UMLObject category is displayed under Profile.
  4. Right-click the UMLObject category and select New→Stereotype.

    A new stereotype is created under the UMLObject category.
  5. Type Boundary in the Name box.
  6. Select the Palette Custom Tool check box.
  7. Click the Browse tool and select file boundary.cur in folder \Examples\Tutorial.
  8. Repeat steps 4 to 7 to create the following stereotypes and tools:
    Stereotype Cursor file
    Entity entity.cur
    Control control.cur


    You should see the 3 stereotypes under the UMLObject metaclass category.
  9. Click OK.
  10. Click Yes to save the extended model definition.

    The tool palette with the stereotype tools is displayed in the diagram.
  11. Move the List of Extended Model Definitions to the bottom of the screen.
  12. Click one of the tools and click in the communication diagram.

    An object with the predefined stereotype is created:
  13. Right-click to release the tool.

 


Copyright (C) 2008. Sybase Inc. All rights reserved.