摘要
高效、准确地定位软件特征所对应的代码实现,对软件维护十分重要。针对面向对象软件系统,提出一种综合的特征定位方法。该方法利用软件搜索技术为特征与相关类建立初始追踪关系;然后以这些类作为种子构造面向对象程序的关注图;进一步采用面向对象切片技术,以关注图中的属性和语句作为切片准则,计算对特征实现具有直接影响的语句代码。该方法有较高的自动化程度,能够提高软件维护中程序理解的效率。
Locating codes for software features efficiently and accurately is very important for soft- ware maintenance. The paper proposed an integrated approach to feature location in object-oriented (IA- FLO) system, which uses software reconnaissance to build trace relations from features to classes, and regards thes,~ classes as seeds to construct concern graph for object-oriented program. Furthermore, un- der 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.
出处
《计算机工程与科学》
CSCD
北大核心
2013年第6期101-106,共6页
Computer Engineering & Science
基金
国家自然科学基金资助项目(60970035
91018013)
关键词
软件维护
特征定位
软件搜索
关注图
程序切片
software maintenance
feature location
software reconnaissance
concern graph
program slicing