Please use this identifier to cite or link to this item: http://bura.brunel.ac.uk/handle/2438/18082
Title: An Experimental Search-based Approach to Cohesion Metric Evaluation
Authors: O'Cinneide, M
Moghadam, IH
Harman, M
Counsell, S
Tratt, L
Keywords: refactoring;software metrics;empirical studies
Issue Date: 2016
Publisher: Springer Verlag (Germany)
Citation: Empirical Software Engineering: an international journal
Abstract: In spite of several decades of software metrics research and practice, there is little understanding of how software metrics relate to one another, nor is there any established methodology for comparing them. We propose a novel experimental technique, based on search-based refactoring, to ‘animate’ metrics and observe their behaviour in a practical setting. Our aim is to promote metrics to the level of active, opinionated objects that can be compared experimentally to uncover where they conflict, and to understand better the underlying cause of the conflict. Our experimental approaches include semi-random refactoring, refactoring for increased metric agreement/disagreement, refactoring to increase/decrease the gap between a pair of metrics, and targeted hypothesis testing. We apply our approach to five popular cohesion metrics using ten real-world Java systems, involving 330,000 lines of code and the application of over 78,000 refactorings. Our results demonstrate that cohesion metrics disagree with each other in a remarkable 55 % of cases, that Low-level Similarity-based Class Cohesion (LSCC) is the best representative of the set of metrics we investigate while Sensitive Class Cohesion (SCOM) is the least representative, and we discover several hitherto unknown differences between the examined metrics. We also use our approach to investigate the impact of including inheritance in a cohesion metric definition and find that doing so dramatically changes the metric.
Description: © The Author(s) 2016. This article is published with open access at Springerlink.com
URI: https://bura.brunel.ac.uk/handle/2438/18082
DOI: https://doi.org/10.1007/s10664-016-9427-7
ISSN: 1382-3256
Appears in Collections:Dept of Computer Science Research Papers

Files in This Item:
File Description SizeFormat 
FullText.pdf2.18 MBAdobe PDFView/Open


Items in BURA are protected by copyright, with all rights reserved, unless otherwise indicated.