Transitive-based object-oriented lack-of-cohesion metric
Author(s) -
Jehad Al Dallal
Publication year - 2011
Publication title -
procedia computer science
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.334
H-Index - 76
ISSN - 1877-0509
DOI - 10.1016/j.procs.2011.01.053
Subject(s) - transitive relation , cohesion (chemistry) , computer science , java , class (philosophy) , empirical research , quality (philosophy) , theoretical computer science , metric (unit) , group cohesiveness , object oriented programming , software quality , software metric , data mining , data science , software , programming language , artificial intelligence , software development , mathematics , social psychology , statistics , epistemology , operations management , psychology , philosophy , chemistry , organic chemistry , combinatorics , economics
Classes are the basic units in object-oriented programs. Therefore, the quality of a class has a great impact on the overall quality of the software. Class cohesion is one of the important quality factors and it refers to the degree of relatedness of the class attributes and methods. Several class cohesion metrics are proposed in the literature, and a few of them empirically address the effect of considering transitive relations between class attributes and methods caused by method invocations. In this paper, we address this issue for one of the most popular class cohesion metrics, referenced as Lack of Cohesion (LCOM). Our empirical study involves applying the metric with and without considering transitive relations on classes of two open source Java applications and statistically analyzing the results. The empirical study results show that the ability of LCOM in indicating class quality improves when considering both direct and transitive relations in the LCOM computation
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom