摘要
根据MDA中模型自动转换到代码的特点,提出了一种UML类图中关联关系到代码的转换方法。讨论了UML中关联关系及其两种实现模式,对每种模式分别定义了一套从UML模型(平台独立模型)到Java模型(平台相关模型)的变换规则,给出了两种实现模式按规则转换的实例。
According to the specialty of automatic transformation from model to code in MDA, this paper proposes a method to transform association in UML class diagrams to code based on MDA. It discusses the association in UML and its two implementation patterns. For every pattern, it defines a suit of rules, which are used in transformation from UML model(PIM) to Java model(PSM), respectively. It presents two transformation examples of implementation pattern by using rules.
出处
《计算机工程》
CAS
CSCD
北大核心
2007年第3期67-69,78,共4页
Computer Engineering