资源描述:
《基于mda的设计模式建模与模型转换》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、ISSN1000-9825,CODENRUXUEWE-mail:jos@iscas.ac.cnJournalofSoftware,Vol.19,No.9,September2008,pp.2203−2217http://www.jos.org.cnDOI:10.3724/SP.J.1001.2008.02203Tel/Fax:+86-10-62562563©2008byJournalofSoftware.Allrightsreserved.∗基于MDA的设计模式建模与模型转换+张天,张岩,于笑丰,王林章,李
2、宣东(南京大学计算机科学与技术系,江苏南京210093)(南京大学计算机软件新技术国家重点实验室,江苏南京210093)MDABasedDesignPatternsModelingandModelTransformation+ZHANGTian,ZHANGYan,YUXiao-Feng,WANGLin-Zhang,LIXuan-Dong(DepartmentofComputerScienceandTechnology,NanjingUniversity,Nanjing210093,China)(StateK
3、eyLaboratoryforNovelSoftwareTechnology,NanjingUniversity,Nanjing210093,China)+Correspondingauthor:E-mail:ztluck@seg.nju.edu.cnZhangT,ZhangY,YuXF,WangLZ,LiXD.MDAbaseddesignpatternsmodelingandmodeltransformation.JournalofSoftware,2008,19(9):2203−2217.http://
4、www.jos.org.cn/1000-9825/19/2203.htmAbstract:AmotivationofMDA(modeldrivenarchitecture)istousemodelsasprogramssoastoincreasetheabstractlevelofsoftwaredevelopment.DesignpatternsprovidereusableconstructsthatcanbeintroducedintoMDAtoincreasethemodelinggranulari
5、tyaswellasthereusabilityofmodeltransformationrules.ThiscanbeachievedbyapplyingdesignpatternsastheintegrateddevelopmentunitsinMDA,whichraisestwoproblemsofmodelingandmodeltransforming.First,patternsshouldbeusedasintegratedmodelingunits.Second,patternmodelssh
6、ouldbetransformedbyapplyingpatterntransformationrulesbuiltonthepatternunits.Tosolvethesetwoproblems,asolutionistodefinepatternunitmetamodelforeachpatternandtoprovidetheEJBmodeltransformationrulesbasingoneachpatternunitmetamodelrespectively.Inthisway,patter
7、nscanbeusedasintegratedmodelingunitsbyinstantiatingthepatternmetamodelunits,andthenthepatternmodelscanbetransformedintotheEJBmodelsbyapplyingthetransformationrules.ThispaperalsodemonstrateshowtoextendMOF(metaobjectfacility)meta-metamodelstodefinethepattern
8、specificationsandhowtodefinethetransformationrulestomapthepatternmodelsaswellasrelatedbusinessmodelsontotheEJBplatform.Keywords:MDA(modeldrivenarchitecture);designpattern;modeling;modeltransformation摘要:MDA(mo