Cohesion is structural, coherence is functional: different views, different measures

Vojislav B. Mišić · 2002

Traditionally, the cohesion of a software component is considered to be a characteristic of its internal structure, and most cohesion measures proposed so far measure cohesion through the similarity of its constituent parts. However, cohesion may also be interpreted as an externally observed functional property, without regard for the component's internal structure. One way of measuring functional cohesion would be to measure the similarity of usage patterns of a component's external clients. One such measure is defined in this paper using a generic system model and its associated mechanism for calculating object sizes as the foundation. The new measure is simple to understand, easy to automate, and flexible enough to be used at different levels of abstraction. Moreover, it satisfies the most important properties that a cohesion measure is expected to satisfy. Examples are provided to illustrate the concept and its possible uses in analyzing and re-packaging of the components of a software system.

Read the paper · More papers on PaperTik