计算机工程
計算機工程
계산궤공정
COMPUTER ENGINEERING
2010年
3期
58-60,63
,共4页
模型驱动体系结构%模型转换%关系%对象约束语言
模型驅動體繫結構%模型轉換%關繫%對象約束語言
모형구동체계결구%모형전환%관계%대상약속어언
Model Driving Architecture(MDA)%model transformation%relation%Object Constraint Language(OCL)
针对模型驱动体系结构中的模型转换问题,提出一种从PIM关系类图到SQL关系PSM的二步转换法,通过依赖、泛化、关联3类关系的初步转换,使其脱离关系线,得到仪与属性类型相关的PIM类图,并对不同类型的属性制定相应的转换规则,利用一个具体示例展示了转换过程及其结果.实验结果表明,与简单的关联关系转换相比,该方法更全面,能够完整实现模型转换.
針對模型驅動體繫結構中的模型轉換問題,提齣一種從PIM關繫類圖到SQL關繫PSM的二步轉換法,通過依賴、汎化、關聯3類關繫的初步轉換,使其脫離關繫線,得到儀與屬性類型相關的PIM類圖,併對不同類型的屬性製定相應的轉換規則,利用一箇具體示例展示瞭轉換過程及其結果.實驗結果錶明,與簡單的關聯關繫轉換相比,該方法更全麵,能夠完整實現模型轉換.
침대모형구동체계결구중적모형전환문제,제출일충종PIM관계류도도SQL관계PSM적이보전환법,통과의뢰、범화、관련3류관계적초보전환,사기탈리관계선,득도의여속성류형상관적PIM류도,병대불동류형적속성제정상응적전환규칙,이용일개구체시례전시료전환과정급기결과.실험결과표명,여간단적관련관계전환상비,해방법경전면,능구완정실현모형전환.
Aiming at the model transformation problem in Model Driving Architecture(MDA),a two step transform method is proposed,which transforms PIM relation diagram to SQL PSM.It makes the depend,inherit,associate away from the relation line to PIM class diagram by the first transformation.The PIM class diagram is only about with the type of attribute.The transformation rules to different attributes are introduced.A practical example is given to show the transformation process and result.Experimental results show that,compared with the simple association transformation,this method is more comprehensive and more material,the model transformation is realized more perfectly.