应用科学学报 ›› 2004, Vol. 22 ›› Issue (3): 392-397.

• 论文 • 上一篇    下一篇

基于依赖性分析的UML类图粗粒度切片方法

吴方君, 易彤   

  1. 东南大学计算机科学与工程系 江苏南京 210096
  • 收稿日期:2003-08-20 修回日期:2004-01-01 出版日期:2004-09-30 发布日期:2004-09-30
  • 作者简介:吴方君(1977-),女,山东泰安人,博士生.

The UML Class Diagram Coarse-Grained Slicing Based on Dependency Analysis

WU Fang-jun, YI Tong   

  1. Department of computer Science & Engineering, Southeast University, Nanjing 210096, China
  • Received:2003-08-20 Revised:2004-01-01 Online:2004-09-30 Published:2004-09-30

摘要: 引入程序切片的思想对UML的重要组成部分——类图进行切片分析.通过定义类间的各种依赖关系构造UML类依赖图,在此基础上提出了一种UML类图的静态粗粒度切片方法,最后运用实例讨论了该切片方法的实用性.利用文中提供的方法具有较高的效率.

关键词: 类图, 程序切片, 统一建模语言, 依赖性分析

Abstract: The unified modeling language (UML) is an intuitionally standard modeling language, which captures related decision and understanding for the modeled system. It can be used in different processes of developing systems, and has gained extensive support from industrial circles. However, because it has assimilated too many object-oriented methods and technologies, it is complex and contains too much useless information. Moreover, it is difficult to understand and analyze the UML. Now how to understand, analyze, test and maintain the systems modeled by UML has become the key to using the UML. For this reason, we introduce the concept of program slicing into one of the most important static behavior-specifying mechanism of the UML-the UML class diagram. Firstly, the paper defines some kinds of dependency among classes. It then constructs the UML class dependency graphs to represent all kinds of dependency by translating the UML class diagraph to dependency graph. Basing on these models, the paper proposes methods to the UML class diagram coarse-grained slicing. Finally, this method is described in detail through an example. Results show that the UML class diagram coarse-grained slicing can provide the same benefit as the slicing of programs, namely reduced length, thus leading to ease of comprehension and future maintenance. In a word, the method we have devised is highly efficient.

Key words: unified modeling language, class diagram, program slicing, dependency analysis

中图分类号: