TY - GEN
T1 - Utilization of method graphs to measure cohesion in object oriented software
AU - Aral, Atakan
AU - Ovatman, Tolga
PY - 2013
Y1 - 2013
N2 - The primarily used technique in measuring cohesion in an object oriented software is analyzing the relations between methods and data members of the software classes. However, extraction of such relations is rather problematic since the usage of data members can vary heavily in program code. Object code analysis is a widely used technique to solve this problem which requires the compilation of the source code. In this paper, we analyze the relations between various method graphs (including call graphs) which can be easily obtained by static source code analysis to obtain software-wide cohesion measures. We perform our analysis to discover the relationship between a widely used cohesion metric, namely LCOM, and the relation among method graphs. This way, we provide cohesion measures that can be extracted rapidly and easily compared to conventional techniques. Proposed measures can be used to obtain information about overall degree of cohesion which in turn can let the designer infer about the quality concerns like modularity and reusability of an object oriented software. Our results show that using different kind of relations in such analysis provides significantly different results in evaluating software-wide average class cohesion. Using graphs involving cooperating methods provide the most correlated results with the LCOM metric.
AB - The primarily used technique in measuring cohesion in an object oriented software is analyzing the relations between methods and data members of the software classes. However, extraction of such relations is rather problematic since the usage of data members can vary heavily in program code. Object code analysis is a widely used technique to solve this problem which requires the compilation of the source code. In this paper, we analyze the relations between various method graphs (including call graphs) which can be easily obtained by static source code analysis to obtain software-wide cohesion measures. We perform our analysis to discover the relationship between a widely used cohesion metric, namely LCOM, and the relation among method graphs. This way, we provide cohesion measures that can be extracted rapidly and easily compared to conventional techniques. Proposed measures can be used to obtain information about overall degree of cohesion which in turn can let the designer infer about the quality concerns like modularity and reusability of an object oriented software. Our results show that using different kind of relations in such analysis provides significantly different results in evaluating software-wide average class cohesion. Using graphs involving cooperating methods provide the most correlated results with the LCOM metric.
KW - Object Oriented Metrics
KW - Software Cohesion
KW - Static Code Analysis
UR - http://www.scopus.com/inward/record.url?scp=84885625931&partnerID=8YFLogxK
U2 - 10.1109/COMPSACW.2013.115
DO - 10.1109/COMPSACW.2013.115
M3 - Conference contribution
AN - SCOPUS:84885625931
SN - 9780769549873
T3 - Proceedings - International Computer Software and Applications Conference
SP - 505
EP - 510
BT - Proceedings - 2013 IEEE 37th Annual Computer Software and Applications Conference Workshops, COMPSACW 2013
T2 - 2013 IEEE 37th Annual Computer Software and Applications Conference Workshops, COMPSACW 2013
Y2 - 22 July 2013 through 26 July 2013
ER -