
Measuring Internal Product Attributes ◾ 421
relation between two classes or interfaces. H also does not satisfy property 2
of the cohesion properties since H cannot be zero. However, it can approach
zero as more unrelated classes are added. Thus, we revise package relational
cohesion as follows:
RC′(P) = (R(P) + 1)/NP(P)
where NP(P) is the number of possible relations between classes and inter-
faces in the package
Martin’s package relational cohesion measure captures the notion of
cohesion in a manner very similar to that of class cohesion. However,
this model may not reect the desired structuring for a package.
Interdependency may not be ...