摘要
符合UML2.0标准的序列图在UML1.x序列图的基础上添加了控制流信息。为此,本文提出一种基于动静态信息相结合的UML2.0序列图逆向生成方法。该方法首先利用目标程序运行时的动态信息产生基本的方法调用序列,然后依据静态的程序依赖图对其进行补充和调整,在其上添加方法间的逻辑关系,使产生的序列图带有控制流信息。这种方法生成的序列图符合UML2.0标准,可以很好地辅助用户理解目标程序。
Compared with UML1. x, UML2. 0 introduces the flow of controls to sequence diagrams. A method to reverse engineer UML sequence diagrams using dynamic information combined with static information is presented in this paper. In the proposed method, basic sequence of method calls is first generated from dynamic information obtained dur- ing the runtime of the target program, and then added with the flow of controls (i. e. the relationship of method calls) based on the static dependency graph. The sequence diagram reverse engineered by this method is self-contained and compatible with the UML2.0 standard, and can efficiently help users to understand the target program.
出处
《计算机科学》
CSCD
北大核心
2008年第8期269-272,共4页
Computer Science
基金
国家教育部博士点基金(项目编号:20030701009):面向对象逆向工程工具研究
国家自然科学基金(项目编号:60473063)
研究生创新基金(编号05009)
关键词
逆向工程
程序理解
序列图
UML2.0
Reverse engineering, Program understanding, Sequence diagrams, UML2. 0