Chapter 4 Extending your Models with Profiles


Calculated collection properties

The following properties can be set for extended collections:

Property Description
Name Specifies the name of the calculated collection.
Comment Describes the calculated collection.
Target Type Specifies the metaclass whose instances will appear in the collection. The list displays only metaclasses that can be directly instantiated in the current model or package, such as classes or tables, and not sub-objects such as class attributes or table columns.

Click the Select a Metaclass tool to the right of this field to choose a metaclass from another type of model.
Target Stereotype Specifies a stereotype to filter the target type. You can select an existing stereotype from the list or enter a new one.

The Calculated Collection Script tab contains the definition of the body of the calculated collection function.

The Global Script tab is used for sharing library functions and static attributes in the resource file. You can declare global variables on this tab, but you should be aware that they will not be reinitialized each time the collection is calculated, and keep their value until you modify the resource file, or the PowerDesigner session ends. This may cause errors, especially when variables reference objects that can be modified or deleted. Make sure you reinitialize the global variable if you do not want to keep the value from a previous run.

For more information on defining a script and using the Global Script tab, see Defining the script of a custom check and Using the global script.

 


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