• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2013, Vol. 35 ›› Issue (6): 101-106.

• 论文 • 上一篇    下一篇

面向对象软件的综合特征定位方法

舒绍娴1,徐小平2,荣霓3,郭敏1   

  1. (1.国防科学技术大学计算机学院,湖南 长沙 410073;
    2.国防科学技术大学科研部,湖南 长沙 410073;3.75753部队,广东 广州 510600)
  • 收稿日期:2012-10-29 修回日期:2013-01-16 出版日期:2013-06-25 发布日期:2013-06-25
  • 基金资助:

    国家自然科学基金资助项目(60970035,91018013)

Integrated feature location in objectoriented program       

SHU Shaoxian1,XU Xiaoping2,RONG Ni3,GUO Min1   

  1. (1.School of Computer Science,National University of Defense Technology,Changsha 410073;
    2.Department of Research,National University of Defense Technology,Changsha 410073;
    3.Troop 75753,Guangzhou  510600,China)
  • Received:2012-10-29 Revised:2013-01-16 Online:2013-06-25 Published:2013-06-25

摘要:

高效、准确地定位软件特征所对应的代码实现,对软件维护十分重要。针对面向对象软件系统,提出一种综合的特征定位方法。该方法利用软件搜索技术为特征与相关类建立初始追踪关系;然后以这些类作为种子构造面向对象程序的关注图;进一步采用面向对象切片技术,以关注图中的属性和语句作为切片准则,计算对特征实现具有直接影响的语句代码。该方法有较高的自动化程度,能够提高软件维护中程序理解的效率。

关键词: 软件维护, 特征定位, 软件搜索, 关注图, 程序切片

Abstract:

Locating codes for software features efficiently and accurately is very important for software maintenance. The paper proposed an integrated approach to feature location in objectoriented (IAFLO) system, which uses software reconnaissance to build trace relations from features to classes, and regards these classes as seeds to construct concern graph for objectoriented program. Furthermore, under the slice criteria of attributes and statements in concern graph, the objectoriented slicing method was adopted to compute codes that directly affect features. The method has a high degree of automation, and can improve the efficiency of program understanding in software maintenance.

Key words: software maintenance;feature location;software reconnaissance;concern graph;program slicing