Reversed Automatic Generation of Visualized Class Diagram of Object-Oriented Program
-
摘要: 研究了逆向构造程序类模型的基本规则, 并且提出了一种可以自动绘制的、基于继承关系的层次型类图结构(inheritance-layered class diagram).在这种层次型类图上,可以清晰地展示程序中的对象类及其相互之间的继承关系、组成关系和关联关系等,并可以直观方便地对程序中定义的对象类进行各种相关性或依赖性分析.文中还介绍了一个根据上述规则和方案实现的实用工具SafePro/Re-OM.Abstract: Reversed modeling is the critical technique in analyzing and understanding object-oriented software, which is also the basis of its testing and maintenance.A set of basic rules for reversedly constructing program's class models are studied, and an inheritance-layered class diagram is proposed, which can be drawn automatically. Kinds of relationship, such as inheritance, composition and association, can be shown in the layered class diagram. By the diagram, relativity and dependency among classes can be simply highlighted. In the end, the revised modeling tool, SafePro/Re-OM, based on the set of rules, is presented.
-
1. Flower M,Scott K.UML distilled\_applying the standard object modeling language.Massachusetts:Addison-Wesley, 1997 2. Eriksson H,Penker M.UML toolkit.New York:John Wiley & Sons Inc,1998 3. 沈海华.对象模型图的逆向分析与自动生成工具的研究与开发:[学位论文].北京:北京航空航天大学计算机科学与工程系,1998 4. 李 健,刘 超,金茂忠.面向对象建模技术及其支持工具. 见:杨芙清,何新贵主编.软件工程进展——技术、方法和实践. 北京:清华大学出版社,1996.217~220 5. 吴鹏程,金茂忠.面向对象软件测试模型与测试策略.见:杨芙清,何新贵主编.软件工程进展——技术、方法和实践. 北京:清华大学出版社,1996.342~344 6. 李 健,金茂忠.对象状态测试.北京航空航天大学学报,1997, 23(1):98~104 7. 吴鹏程,金茂忠.基于对象模型的C+ +程序静态分析器. 北京航空航天大学学报,1997,23(1):105~110
点击查看大图
计量
- 文章访问数: 3027
- HTML全文浏览量: 75
- PDF下载量: 1013
- 被引次数: 0