Measuring Package Cohesion Based on Context
- 1 July 2008
- conference paper
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE International Workshop on Semantic Computing and Systems
- p. 127-132
- https://doi.org/10.1109/wscs.2008.23
Abstract
Packages play a critical role to understand, construct and maintain large-scale software systems. As an important design attribute, cohesion can be used to predict the quality of packages. Although a number of package cohesion metrics have been proposed in the last decade, they mainly converge on intra-package data dependences between components, which are inadequate to represent the semantics of packages in many cases. To address this problem, we propose a new cohesion metric for package called SCC on the assumption that two components are related tightly if they have similar contexts. Compared to existing works, SCC uses the common context of two components to infer whether they have close relation or not, which involves both inter- and intra- package data dependences. It is hence able to reveal semantic relations between components. We demonstrate the effectiveness of SCC by case studies.Keywords
This publication has 7 references indexed in Scilit:
- The interpretation and utility of three cohesion metrics for object-oriented designACM Transactions on Software Engineering and Methodology, 2006
- Measuring cohesion of packages in Ada95Published by Association for Computing Machinery (ACM) ,2003
- Measuring coupling and cohesion of software modules: an information-theory approachPublished by Institute of Electrical and Electronics Engineers (IEEE) ,2002
- Defining and validating measures for object-based high-level designIEEE Transactions on Software Engineering, 1999
- A unified framework for coupling measurement in object-oriented systemsIEEE Transactions on Software Engineering, 1999
- Property-based software engineering measurementIEEE Transactions on Software Engineering, 1996
- A measure for composite module cohesionPublished by Institute of Electrical and Electronics Engineers (IEEE) ,1992