The UML Class Diagram Coarse-Grained Slicing Based on Dependency Analysis
WU Fang-jun,YI Tong (Department of computer Science & Engineering, Southeast University, Nanjing 210096, China)
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.
【CateGory Index】： TP311