Prev - Next - Down | SDMetrics - the UML design measurement tool |
<metric name="NumElements" domain="class"> <description>The number of elements in the class.</description> <projection relation="context" /> </metric>The metric NumElements is defined for elements of type "class". It counts, for a given class, all elements which have a reference attribute "context" that points to that class. Attribute "context" specifies the owner of a model element. So this metric counts all model elements of which the class is the owner, that is, the number of elements in the class. Those elements can be of any type, e.g., operations, attributes, or other classes (inner classes).
Prev | Up | Next |
Section 8.1.1 "Projection" | Contents | Section 8.1.1.2 "Attribute "relset"" |