Page tree

MagicDraw 19.0 LTR SP2 Documentation


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.

Although the target of a Metric Suite can be any type of element or even a particular element of your model, we recommend selecting the required Package or
the Package type.

A target needs to be specified as the property of a Metric Suite


To specify the target of a Metric Suite


  1. Double-click the shape of the newly created Metric Suite to open its Specification window.
  2. Click the cell of the Target property value and then click . The Select Elements dialog opens.
  3. In the tree or list on the left side of the dialog, select the element that you wan to use as a target.

    If you want to select the type of elements (e.g., Package), which is stored in a standard/system profile used in your project, make sure you clear the Apply Filter check box. Besides, you can select more than one element. For more information about the manipulations in the element selection dialog, see Elements multiple selection.

  4. Add the element to the Selected elements list by clicking Add or Add Recursively (if you want to add elements recursively).

  5. Click OK.

  6. In the Specification window, click Close.


The target is specified.
 

A Metric Suite with the Package type target.

If you need to calculate metrics for the whole model, select the Model Package as the target of your Metric Suite.

  • No labels