Class Category Relational Cohesion (CCRC)
Overview
The
Class Category Relational Cohesion metric measures the rate of cohesion
between a package's classes.
The
grouping of classes in a package must be justified by the
links that exist between its classes. The relevance of a package can be questioned,
if its classes have relatively few links between themselves.
Computation
![]()
|
The ... variable |
represents the… |
|
NumberOfLinks |
number of links (associations,
generalizations, use links) between a package's classes with multiple
counting if a class uses another class in several different ways. |
|
NumberOfClasses |
number of classes of the package, by
recursively processing sub-packages and classes. For the UML modeling
project, this variable represents, therefore, the total number of classes for
the UML modeling project. |
Nominal range
Between
150% and 350%.
Analysis
Architecture
is that much more consistent if the number of internal links in each package is
relatively large. However, these links
must remain within certain limits (less than 350%) for reasons of complexity.