《The Art of Model Transformation with Operational QVT.ppt》由会员分享,可在线阅读,更多相关《The Art of Model Transformation with Operational QVT.ppt(38页珍藏版)》请在三一文库上搜索。
1、23 March, 2009,The Art of Model Transformation with Operational QVT - Sergey Boyko, Radomil Dvorak, Alexander Igdalov,- 1 -,The Art of Model Transformation with Operational QVT,Sergey Boyko Radomil Dvorak Alexander Igdalov Borland Software Corporation,23 March, 2009,The Art of Model Transformation w
2、ith Operational QVT - Sergey Boyko, Radomil Dvorak, Alexander Igdalov,- 2 -,QVTO Key Concepts,Operational QVT (QVTO) operates with EMF models uses OCL for model navigation Main goal - model modification and transformation required an explicit and complete algorithm model-to-model mapping,23 March, 2
3、009,The Art of Model Transformation with Operational QVT - Sergey Boyko, Radomil Dvorak, Alexander Igdalov,- 3 -,QVTO structure,QVTOperational package general structuring elements and top-level constructions ImperativeOCL package extension to OCL expressions and type system Standard Library,23 March
4、, 2009,The Art of Model Transformation with Operational QVT - Sergey Boyko, Radomil Dvorak, Alexander Igdalov,- 4 -,QVTOperational package,Transformation declaration Imperative operations (mappings, helpers, queries, constructors) Intermediate data Object creation and update mechanism Trace resoluti
5、on expressions,23 March, 2009,The Art of Model Transformation with Operational QVT - Sergey Boyko, Radomil Dvorak, Alexander Igdalov,- 5 -,Operational Transformation 1,modeltype ECORE uses http:/www.eclipse.org/emf/2002/Ecore; modeltype UML uses http:/www.eclipse.org/uml2/2.0.0/UML; transformation Ecore2Uml( in inModel : ECORE, out outModel : UML); main() inModel.rootObjects()EPackage-map ePackage2Model(); mapping EPackage:ePackage2Model() : Model name := self.name; ,A simple transformation example,