LIU Hui-hui, LI Bi-xin, LIAO Li, et al. Replaceability Measurement and Impact Factor Analysis for Java Classes and Packages[J]. Acta Electronica Sinica, 2017, 45(9): 2149-2155.
LIU Hui-hui, LI Bi-xin, LIAO Li, et al. Replaceability Measurement and Impact Factor Analysis for Java Classes and Packages[J]. Acta Electronica Sinica, 2017, 45(9): 2149-2155. DOI: 10.3969/j.issn.0372-2112.2017.09.014.
Based on qualitative description of code replaceability in ISO25010 standard
it is difficult to quantitatively measure code replaceability.In order to make this process automatic
we define a replaceability measurement formulation by adequately considering the coupling relationship and intrinsic complexity in classes/packages.Then
an experiment is performed on 100 popular open source projects
and results show that (1) there are significant differences among different classes in terms of replaceability and these differences largely depend on the degree of communication between different classes and (2) there is no significant linear relationship between package replaceability and the total number of classes located in it and (3) the replaceability value of package designed by feature is more than the value of package designed by layer.From perspective of code replaceability
our empirical study also provides some suggestion for developers when they design a class or package.