Contents > B: List of Design Metrics > B.8 Component Metrics

B.8 Component Metrics

Metric: NumOpsCategory: Size
The number of operations of the component.
  • See also metric NumOps for classes.

Metric: NumCompCategory: Size
The number of subcomponents of the component.

Counts components directly owned by this component; sub-sub-components etc. are not included in this count.


Metric: NumPackCategory: Size
The number of packages of the component.

This only counts packages directly owned by the component; any sub-packages etc. of these packages are not included in this count.


Metric: NumClsCategory: Size
The number of classes of the component.

This only counts classes directly owned by the component; nested classes, classes in packages, subcomponents, etc. are not included in this count.

  • See also metric NumCls for packages.


Metric: NumInterfCategory: Size
The number of interfaces of the component.

This only counts interfaces directly owned by the component; interfaces in packages, sub-components, etc. are not included in this count.


Metric: NumManifestCategory: not specified
The number of artifacts of which this component is a manifestation.


Metric: ConnectorsCategory: Complexity
The number of connectors owned by the component.


Metric: ProvidedIFCategory: Inheritance
The number of interfaces the component provides.

A component provides an interface if there is a plain or interface realization to the interface, or if a port of the component provides the interface.

  • See also metric IFImpl for classes.


Metric: RequiredIFCategory: not specified
The number of interfaces the component requires.

The component requires an interface if there is a dependency, usage dependency, or an association to the interface, or if a port of the component requires the interface.


Metric: Dep_OutCategory: Coupling (import)
The number of outgoing UML dependencies (component is the client).

See also Dep_Out for classes.


Metric: Dep_InCategory: Coupling (export)
The number of incoming UML dependencies (component is the supplier).

See also Dep_In for classes.


Metric: Assoc_OutCategory: Coupling (import)
The number of associated elements via outgoing associations.

Takes associations, aggregations, and compositions with navigability away from the component into account, i.e., elements the component knows.


Metric: Assoc_InCategory: Coupling (import)
The number of associated elements via incoming associations.

Takes associations, aggregations, and compositions with navigability to the component into account, i.e., elements that know the component.


Metric: DiagsCategory: Diagram
The number of times the component appears on a diagram.