当前位置:主页 > 科技论文 > 软件论文 >

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

发布时间:2018-04-05 18:51

  本文选题:类的易替换性 切入点:包的易替换性 出处:《电子学报》2017年09期


【摘要】:按照ISO25010标准中代码易替换性定性描述,人们很难从被替换软件产品的代码出发,定量地刻画其易替换性.为了自动化地度量代码的易替换性,本文充分考虑Java类/包的耦合关系和本身的复杂度,定义了一个类/包的易替换性度量公式.然后,在100个开源项目上进行实验,结果表明:(1)不同构造型的类的易替换性差异较大,其差异性与类承担的交互职责的多少有关;(2)包的易替换性与包中类个数没有显著的线性相关性;(3)与按层次划分的包相比,按功能特性划分的包具有更高的易替换性.从代码易替换性角度来看,在设计类和包时,本文的经验研究为开发者提供了有益的建议.
[Abstract]:According to the qualitative description of code substitutability in ISO25010 standard, it is difficult to quantitatively describe the substitutability from the code of replaced software products.In order to automatically measure the substitutability of code, this paper fully considers the coupling relation of Java class / package and its complexity, and defines a measure formula of class / package's substitutability.Then, on 100 open source projects, the results show that there are significant differences in the substitutability of different stereotype classes.The difference is related to the number of interaction duties undertaken by classes, which is related to the substitutability of packets and the fact that there is no significant linear correlation between the number of classes in the packets and the number of classes in the packets. Compared with the packets divided by hierarchy, the packets classified by their functional characteristics have higher substitutability.From the point of view of code substitutability, the empirical study of this paper provides useful suggestions for developers when designing classes and packages.
【作者单位】: 东南大学计算机科学与工程学院;
【基金】:国家自然科学基金(No.61572126,No.61402103) 华为技术有限公司项目(No.YBN2016020009)
【分类号】:TP312.2

【相似文献】

相关期刊论文 前2条

1 蔡家楣;;基于元设计模式的构造型说明语义[J];计算机科学;2004年08期

2 张贤骥;王伦文;;基于构造型神经网络的异常模式发现方法[J];计算机科学;2014年07期



本文编号:1716015

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/1716015.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户e7a31***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com