摘要
文章聚焦于RationalRose逆向工程生成类图的策略。首先,通过编写每个类的框架代码,利用RationalRose7.0逆向工程生成类图,并在类图中查看类与类之间的各种关系是否能被正确识别。其次,研究了将类图映射成代码的规律。实践结果表明,类图映射成代码取决于2个因素,即类的可见性和类与类之间的关系。研究发现,RationalRose7.0能够准确识别泛化和实现关系以及可见性,但在关联关系和依赖关系的识别上存在不足。针对这一问题,文章提出了相应的改进算法。
The article focuses on the strategy of generating class diagrams through Rational Rose reverse engineering.Firstly,by writing the framework code for each class,using Rational Rose 7.0 reverse engineering to generate a class diagram,and checking whether the various relationships between classes can be correctly identified in the class diagram.Secondly,the law of mapping class diagrams into code was studied.The practical results indicate that mapping a class diagram to code depends on two factors,namely the visibility of classes and the relationships between classes.Research has found that Rational Rose 7.0 can accurately identify generalization and implementation relationships as well as visibility,but there are shortcomings in identifying association and dependency relationships.In response to this issue,the article proposes corresponding improved algorithms.
作者
李娟
明德廷
王兴宇
谭亮
LI Juan;MING Deting;WANG Xingyu;TAN Liang(College of Computer and Information Engineering,Jiangxi Agricultural University,Nanchang 330045,China)
出处
《计算机应用文摘》
2024年第3期107-111,共5页
Chinese Journal of Computer Application
关键词
类
关联
泛化
依赖
实现
class
association
generalization
dependency
implementation