Title :
Measuring coupling and cohesion of software modules: an information-theory approach
Author :
Allen, Edward B. ; Khoshgoftaar, Taghi M. ; Chen, Ye
Author_Institution :
Mississippi State Univ., MS, USA
Abstract :
Coupling of a subsystem characterizes its interdependence with other subsystems. A subsystem´s cohesion, on the other hand, characterizes its internal interdependencies. When used in conjunction with other attributes, measurements of a subsystem´s coupling and cohesion can contribute to software quality models. An abstraction of a software system can be represented by a graph, and a module (subsystem) by a subgraph. Software design graphs depict components and their relationships. E.B. Allen and T.M. Khoshgoftaar (1999) proposed information theory-based measures of coupling and cohesion of a modular system. This paper proposes related information theory-based measures of coupling and cohesion of a module. These measures have the properties of module-level coupling and cohesion defined by Briand, Morasca and Basili (1997, 1999) . We define cohesion of a module in terms of intra-module coupling, normalized to between zero and one. We illustrate the measures with example graphs and an empirical analysis of the call graph of a moderate-sized C program, the Nethack computer game. Preliminary analysis showed that the information-theory approach has finer discrimination than counting
Keywords :
computer games; graph theory; information theory; software metrics; software quality; subroutines; C program; Nethack computer game; call graph; counting; discrimination; excess entropy; information theory; internal interdependencies; intra-module coupling; software components; software design graphs; software metrics; software module cohesion; software module coupling; software quality models; subgraph; subsystem interdependence; Entropy; Information theory; Object oriented modeling; Size measurement; Software design; Software engineering; Software measurement; Software metrics; Software quality; Software systems;
Conference_Titel :
Software Metrics Symposium, 2001. METRICS 2001. Proceedings. Seventh International
Conference_Location :
London
Print_ISBN :
0-7695-1043-4
DOI :
10.1109/METRIC.2001.915521