计算机应用 ›› 2012, Vol. 32 ›› Issue (07): 2041-2043.DOI: 10.3724/SP.J.1087.2012.02041

• 典型应用 • 上一篇    下一篇

基于依赖关系的模块变更概率度量:一个实验分析

薛朝栋,杨已彪,周毓明   

  1. 南京大学 计算机科学与技术系,南京210046
  • 收稿日期:2012-01-18 修回日期:2012-03-05 发布日期:2012-07-05 出版日期:2012-07-01
  • 通讯作者: 周毓明
  • 作者简介:薛朝栋(1986-),男,江苏盱眙人,硕士研究生,主要研究方向:软件度量;杨已彪(1987-),男,湖北鄂州人,博士研究生,主要研究方向:软件度量;周毓明(1974-),男,安徽安庆人,教授,博士生导师,博士,主要研究方向:软件度量。

Dependence relationships-based change probability metric: an experimental analysis

XUE Chao-dong,YANG Yi-biao,ZHOU Yu-ming   

  1. Department of Computer Science and Technology, Nanjing University, Nanjing Jiangsu 210046, China
  • Received:2012-01-18 Revised:2012-03-05 Online:2012-07-05 Published:2012-07-01
  • Contact: ZHOU Yu-ming

摘要: 模块变更预测对于面向对象软件的开发和维护工作具有重要意义。针对软件的模块变更预测问题,首先在软件类之间依赖关系的基础上提出了一种轻量级的模块变更概率计算方法,然后利用Logistic回归模型对Eclipse 2.0系统进行了实验分析。实验结果表明:一方面,基于依赖关系的模块变更概率度量捕获了与传统面向对象度量不同的信息;另一方面,当与传统的面向对象度量一起使用时,它们能够在统计意义上显著地提高模块变更预测的准确性。

关键词: 变更概率, 模块, 预测, 依赖关系, 面向对象

Abstract: It is essential for software development and maintenance to predict which modules are change-prone in an Object-Oriented (OO) software system. In this paper, a light-weight approach was developed to compute the change probability metric by leveraging the dependence relationships between classes in a system. Then, based on Logistic regression model, an experimental analysis was conducted using Eclipse 2.0. The experimental results indicate that, on one hand, the proposed change probability metric captures different information from traditional OO metrics. On the other hand, when being used with traditional OO metrics together, the proposed change probability metric can significantly improve the accuracy for predicting the change-prone classes.

Key words: change probability, module, prediction, dependence relationship, Object-Oriented (OO)

中图分类号: