Java类和包的易替换性度量与影响因素分析  被引量:2

Replaceability Measurement and Impact Factor Analysis for Java Classes and Packages

在线阅读下载全文

作  者:刘辉辉 李必信[1] 廖力[1] 王家慧 

机构地区:[1]东南大学计算机科学与工程学院,江苏南京211189

出  处:《电子学报》2017年第9期2149-2155,共7页Acta Electronica Sinica

基  金:国家自然科学基金(No.61572126;No.61402103);华为技术有限公司项目(No.YBN2016020009)

摘  要:按照ISO25010标准中代码易替换性定性描述,人们很难从被替换软件产品的代码出发,定量地刻画其易替换性.为了自动化地度量代码的易替换性,本文充分考虑Java类/包的耦合关系和本身的复杂度,定义了一个类/包的易替换性度量公式.然后,在100个开源项目上进行实验,结果表明:(1)不同构造型的类的易替换性差异较大,其差异性与类承担的交互职责的多少有关;(2)包的易替换性与包中类个数没有显著的线性相关性;(3)与按层次划分的包相比,按功能特性划分的包具有更高的易替换性.从代码易替换性角度来看,在设计类和包时,本文的经验研究为开发者提供了有益的建议.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 showthat( 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.

关 键 词:类的易替换性 包的易替换性 耦合 类的构造型 按功能特性划分包 按层次划分包 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象