Abstract:
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.
Key words:
MDA,
UML,
Association,
Implementation pattern,
Transformation
摘要: 根据MDA中模型自动转换到代码的特点,提出了一种UML类图中关联关系到代码的转换方法。讨论了UML中关联关系及其两种实现模式,对每种模式分别定义了一套从UML模型(平台独立模型)到Java模型(平台相关模型)的变换规则,给出了两种实现模式按规则转换的实例。
关键词:
模型驱动构架,
UML,
关联,
实现模式,
变换
XIA Lei; OUYANG Song. Method of Association Transformation Based on MDA[J]. Computer Engineering, 2007, 33(03): 67-69.
夏 雷;欧阳松. 基于MDA的关联关系转换方法[J]. 计算机工程, 2007, 33(03): 67-69.