检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.144.41.22