作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2011, Vol. 37 ›› Issue (11): 80-82. doi: 10.3969/j.issn.1000-3428.2011.11.027

• 软件技术与数据库 • 上一篇    下一篇

基于粗粒度切片度量的重构定位方法

黄雅菁,高建华   

  1. (上海师范大学信息与机电工程学院,上海 200234)
  • 收稿日期:2010-12-09 出版日期:2011-06-05 发布日期:2011-06-05
  • 作者简介:黄雅菁(1983-),女,硕士,主研方向:软件可靠性理论与设计,软件度量;高建华,教授、博士
  • 基金资助:
    上海市教育委员会科研创新基金资助项目(0922135); 上海市科学技术委员会基金资助项目(09220503000);上海师范大学研究生创新能力培养基金资助项目

Refactoring Location Method Based on Coarse-grained Slice Metrics

HUANG Ya-jing, GAO Jian-hua   

  1. (College of Information, Mechanical and Electrical Engineering, Shanghai Normal University, Shanghai 200234, China)
  • Received:2010-12-09 Online:2011-06-05 Published:2011-06-05

摘要: 重构是提高代码质量的一项关键技术,传统的定位重构代码依赖开发者的观察和主观意识,效率较低。为此,将切片思想引入到重构定位中,提出一种基于切片度量的重构定位方法。该方法利用粗粒度切片度量软件系统中类和类之间的耦合度,并根据度量结果识别类间的“坏味道”,从而定位需要重构的类。实例研究表明,与其他方法相比,该方法能获得更优的性能。

关键词: 粗粒度切片, 耦合度, 重构定位, 赋权类依赖图

Abstract: Refactoring is a key technique to acquire software quality. The traditional method of locating refactoring mostly relies on observations and subjective perceptions, which is inefficient. A method of locating refactoring based on slice metrics is proposed. It uses coarse-grained slice to measure the coupling of class and locate the classes which need refactoring. A case demonstrates that the method is efficient, and outperforms the conventional method.

Key words: coarse-grained slice, degree of coupling, refactoring location, Weighted Class Dependent Graph(WCDG)

中图分类号: