A metric suite must have a target. It specifies model elements, for which the metrics of a particular metric suite can be calculated. The target value can be any type of elements or even a particular element of your model. For example, if the target of a metric suite is the Package type, you can calculate metrics for any package in your model by creating a Metric table.
A target needs to be specified as the property of a metric suite
To specify the target of a metric suite
- Double-click the shape of the newly created metric suite to open its Specification window.
- Click the cell of the Target property value and then click
. The Select Elements dialog opens. In the tree or list on the left side of the dialog, select the element that you wan to use as a target.
Add the element to the Selected elements list by clicking
Add or
Add Recursively (if you want to add elements recursively).
Click OK.
In the Specification window, click Close.
The target is specified.
