|
| 摘要: |
| 提出了一种大类图拆分方法。首先通过度量工具计算类图中类目(类及接口)间的耦合度。根据面向对象设计中高内聚低耦合的设计原则,将紧耦合的类目划入同一个类图,而耦合度低的类目间实现分离。为了确保生成的类图大小合适,拆分方法对每个类图的大小进行限定,将每个类图的大小限定在预先定义的合理区间内。通过在实际系统中的应用,拆分方法的合理性和有效性得到验证。该大类图拆分方法有利于逆向工程的进一步完善,有利于提高软件模型的可读性和可理解性。 |
| 关键词: 类图 UML 逆向工程 软件维护 |
| DOI: |
| 分类号: |
| 基金项目:Supported by the National Natural Science Foundation of China under Grant Nos.60773152, 61003065 (国家自然科学基金); the National High-Tech Research and Development Plan of China under Grant No.2007AA010301 (国家高技术研究发展计划(863)); the Open Research Fund Program of Key Laboratory of High Confidence Software Technologies, Ministry of Education, China, under Grant No.HCST200802 (高可信软件技术教育部重点实验室开放研究基金); the Open Research Fund Program of Beijing Laboratory of Intelligent Information Technology (智能信息技术北京市重点实验室开放研究基金); the Basic Research Found of Beijing Institute of Technology of China (北京理工大学基础研究基金) |
|
| Decomposition of Large Class Diagrams Generated by Reverse Engineering |
|
LIU Hui, SHAO Wei-Zhong, MA Zhi-Yi
|
| Abstract: |
| This paper proposes an approach to decompose large class diagrams. It first collects metrics of coupling among classifiers (classes and interfaces). According to the principle of high cohering and low coupling, it breaks low coupling classifiers while showing high coupling classifiers in the same diagrams. To guarantee that the generated new class diagrams are readable, it confines sizes of new diagrams to a predefined scope. The results of its evaluations on industrial projects suggest that the approach is practical and valuable. The approach proposed in this paper helps to improve the readability of software models. |
| Key words: class diagram unified modeling language (UML) reverse engineering software maintenance |