首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于程序依赖图的Aspect挖掘技术
引用本文:闵洪波,徐宝文,钱巨.基于程序依赖图的Aspect挖掘技术[J].东南大学学报(自然科学版),2008,38(2):239-243.
作者姓名:闵洪波  徐宝文  钱巨
作者单位:1. 江苏省软件质量研究所,南京,210096
2. 东南大学计算机科学与工程学院,南京,210096
基金项目:国家自然科学基金,国家自然科学基金,江苏省自然科学基金,江苏省高技术研究发展计划项目
摘    要:为了有效地识别遗产代码中因横切关注点而导致的零散代码或交织代码,提出了一种基于程序依赖图的Aspect挖掘方法.根据横切关注点的本质特性,考察了横切关注点与核心关注点之间的依赖关系及其在依赖图上的表现形式,对于单个方法体,结合程序的语义信息,在程序依赖图中引入一个虚拟结点表征方法体的核心功能,所有影响核心功能的语句都与之建立依赖关系,然后对依赖图进行拓扑分析,先从虚拟结点开始分离出核心代码,再通过求解连通分量的方式挖掘方法体内横切代码.实例分析表明,该方法不仅能识别出方法体内的零散特性代码,而且还能有效地挖掘出交织特性的代码.

关 键 词:Aspect  挖掘  横切关注点  程序依赖图  软件维护
文章编号:1001-0505(2008)02-0239-05
修稿时间:2007年9月5日

Apsect mining based on program dependence graph
Min Hongbo,Xu Baowen,Qian Ju.Apsect mining based on program dependence graph[J].Journal of Southeast University(Natural Science Edition),2008,38(2):239-243.
Authors:Min Hongbo  Xu Baowen  Qian Ju
Abstract:In order to identify effectively scattering code and tangling code introduced by crosscutting concerns in legacy system,an approach based on program dependence graph(PDG) for aspect mining is proposed in this paper.According to the intrinsic attribute of crosscutting concern,the dependence relationship between crosscutting concerns and core concerns is firstly examined,followed by analyzing its structure presentation on PDG.For a single method,combining the semantic information of a program,a virtual node is firstly introduced into its PDG to represent its core functionality and all statements which impact the core functionality is virtually depended by it.Then,topology analysis on PDG is performed to figure out the core code starting from the virtual node and the crosscutting code determining by computing connected components in PDG.As a result,all potential crosscutting code can be separated from core functionality.A case study shows that our approach can discover effectively both scattering code and tangling code in legacy code.
Keywords:Aspect mining  crosscutting concern  program dependency graph  software maintenance
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号