Home

MeTAGeM Manual

image

Contents

1. SOLZORDB amin E3 We sql ch Sh Weaving model c ek St ordb of F 1 sje EClass ReferentialConstraint el H LA platform jresourcejMeT fiset Prueba Models SQL20RDE Si lt gt EPackage ORDB40RA i Eee EClass Restriction Si Model Root sqizordb Z EAnnotation ot I a feb EClass Schema S lt lt relatians gt gt One To One schemazmodel il EClass Model lt gt EAttribute name ZA lt lt source gt gt In Element Schema H EAnnotation gmf diagram I H EReference behaviouralComp lt lt target gt gt Out Element Model H de EReference datatype Kl sje EReference datatypes S lt onetoOne gt gt One To One EReference table i I H EReference ZA lt lt source gt gt In Element name EAttribuke Name Loi EClass StringFeeture lt gt lt target gt gt Out Element Name eference operation i E EAtkribute S lt lt nonetoOne gt gt One To One ER ference package A ZA lt lt SoUrce o EE SE I l ll ela AMOTT L ses tb Tri I i Property ME 9 target H E I gt l Description t lt lt onetoOne gt gt Description I I I Geh Lee meer EEE ee ene lt gt lt lt source gt gt Element Transformation Element Ref ref Name i Guard Condition t 3 lt target gt gt 0 Gei V i Invoked IS i Name TZ Mame Link i i T E Misc LS I SUG LENE E TransformationElementRef i TransformationElementRef l Erne i l Description
2. MeTAGeM A Meta Tool for the Automatic Generation of Model Transformation User Guide Version 1 0 October 2010 r AN I 2 Q T grupo de inve research grou EA User Guide Content e LEE 4 RG 9 T 3 1 Moe L esau das antcncace cteusec 2 ts cesgtescecteresy cagtocdicicvstescusercuestsreeeas neat 4 P Installation and System Requirements sss esse essere 5 3 Gem MNA Mid EE 7 4 FM AT sxs B ee l sunina naiona naaien oaia a oe nE ai eita aaa aaa orada iaiia Eoad EARNE EN Ea 12 5 SK ses A N N TT 16 6 Hd eea N vv4vhv4v4v4v4v4v E 19 7 Ne a E E E E E E E 23 e MeTAGeM Page 2 SI Cybele EA User Guide List of Figures Fig 1 R by Interpreter configuration E 6 Fig 2 Selecting a weaving Model area 7 Fig 3 Creating a MeTAGeM weaving model sss sese 8 Fig 4 MET AGEM weaving IMOGE LL avi es ves n ve 9 Fig 5 Creating a new relationship in a MeTAGeM model sss 9 Fig 6 Selecting a source element for a relationship sss essere 10 Fig 7 Relationships included in another relationship MeTAGeM modell css 10 Fig 8 MeTAGEM Model CHATI PE cs nare ut vent d eee sd aaa Enana Aan 10 Fig 9 Generating Hybrid Model from MeTAGeM Model sss 12 Fig 10 Comment in a rule Hybrid Modell sss 12 Fig 11 Creating an operation Hybrid Modell 13 Fig 12 Relation reference isRefered roles sss 14 Pig LOS Vandatine S Ua site MOUE boarn anay nra en n d t a r EAE aiantiantnait
3. MeTAGeM Metamodels ORDB40RA ecore Name WModelRef ModelTransf You Weave a InModelTransf Metamodel EEE EE EE EE EE EEE EEE ME EE EEE EEE EEE wm EE EE EE EE mm mmm EEE ss Fig 3 Creating a MeTAGeM weaving model After finishing this process you will obtain the new model where you can define relationship between elements of the meta models selected In order to do this MeTAGeM Tool provides a weaving editor that simplifies this task As you can see in the Figure 4 the left panel shows the source meta model in this example SQL2003 meta model the right panel shows the target meta model in this example EC l MeTAGeM Page 8 mg ME SN Okyib le User Guide ORDBAORA meta model and the center panel shows the relationships between elements of these meta models EB SQL20RDB amw 52 D E 1 Bl sgl e S Ej Weaving model c e S tal ordb c cb s El Se EPackage S0OL2003 E LA platform fresource MeTaGeM Prueba Models 5 E EPackage ORDEHORA Ar Hele r S El EClass ARRAY Model Root sqlZordb Si s E nnotation gm lt gt EString To String Map Entry foo EClass Model lt gt EAttribute num elements 4 EGeneric Type I I I I I I I I I I I I I Si s EClass Attribute tH EAnnotakion gm diagram E l lt gt EAttribute default it EReference datatype I H de EReference structured H EReference table I I i Z EGeneric Type gt EAttribute M
4. Model Now you have a Hybrid Model which represents the transformation in a lower abstraction level Due to its lower level Hybrid meta model allows you to add the following new features to the transformation e Add Comments in the rules 3 platform resource MeTAGeM_Prueba Models MyTest 4 Module R Rule a er Operation Selection Parent List Tree Table Tree with Columns m Properties 5 7 Problems Error Log EI Cons Property Value Comment EK omentario de una regla Extends Is Abstract ive False Fig 10 Comment in a rule Hybrid Model EER MeTAGeM Page 12 O k b le User Guide e Create Operations platform fresource MeTAGeM PruebafModels MyTest mm hybrid p Ro rue ia In Meta Model Out Meta Model P CI Properties 53 H Problems Property Value Body t Context Name operation vi platform fresource MeTAGeM Pruebaf Models MyTest mm hybrid LAJ Module operation New Sibling gt CI Properties 53 2 Problems Q Property value Datatype Boolean Element Fig 11 Creating an operation Hybrid Model e Relation reference isRefered This relation is defined between RightPattern and Element metaclasses and it performs two functions 3 When the Element is a SourceElementRule this relation allows you to associate a Binding with one source element of the rule This role is recommended when a rule has many sources 4 When the Element is a TargetElemen
5. you a DSLs Domain Specific Languages collection that make it possible to model the high level model transformations as well as the transformations between models of different levels and its subsequent code generation The transformation modelling is divided in four abstraction levels e Platform independent level where the user must define the relations between elements of the meta models implicated in the transformation e Platform specific level which is defined following a hybrid approach e Platform definition level where the user can choose a specific transformation language In this version of MeTAGeM Tool the user can choose between the ATL or RubyTL transformation languages e Code level implements the transformation into the chosen transformation language CH MeTAGeM Page 4 EA User Guide 2 Installation and System Requirements To download and install MeTAGeM in your computer please follow the steps below 1 Install Java Virtual Machine 1 6 Available in http www java com es download index jsp 2 Download and Install Eclipse and MeTAGeM In this case there are two possibilities 1 Recommended Download Eclipse AMMA MeTAGeM This distribution contains all plug ins required to work correctly with MeTAGeM It is available in http www kyvbele etsii urjc es members vbollati thesis Software EclipseAMMA MeTAGeM zi 2 Download Eclipse Classic http www eclipse org downloads and then install the following
6. 73 Click Next button Weaver Wizard 1 3 Click Next button Load weaving metamodel in Ecore Container MeTAGeM Models Weavin g metamode Is there an existing weaving model 9 New model with extension ecore or amw 9 Load KM3 extensions File name UML2ORDB amw e existing model Metamodel extensions to use Location Source T existing model is not in the container it will be created in lalla K T metamodels mw base extension km3 Plug in E metamodels derived features km3 Plug in Choose a panel for viewing your weaving model metamodels mw base extension2 k Plug in metamodels mmw_annotation km3 Plug in E Load selected file s Remove file s Location Source WModel ModelRoot Weaver Wizard 3 3 Click Finish button 9 Enter model and metamodel information Extensions of weaving metamodel define name and number of weaving model s references Weaver Wizard 373 Click Finish button Property Value IN DefaultWovenPanelExtension Enter model and metamodel information InModelTransf Extensions of weaving metamodel define name and number of weaving model s references MeTAGeM Metamodels UML ecore OUT DefaultWovenPanelExtension OutModelTransf Panel DefaultWovenPanelExtension
7. ATL model jError No se encuentra el origen de la referencia you must launch the Hybrid gt ATL process Run As gt Hybrid gt ATL as Figure 16 shows Ks Models OG SOLZORDB amw SQLZORDB amw prop SQLZORDB mm_hybrid New gt H kc Test Open F3 Open With gt Show In Alt Shift w gt gt Copy Ctrl C E5 Copy Qualified Name 5 Paste Ctrl V 3 Delete Delete Build Path gt Refactor Alt Shift T gt gy Import pa Export SP Refresh FS Assign Working Sets Initialize mm hybrid diagram diagram File Debug As gt R 2 HYBRID gt RubyTL Team gt Compare with gt Run Configurations Fig 16 Launching Hybrid gt ATL Transformation If it is the first time you launch the process on a Hybrid model you must configure the transformation by choosing the source and target models paths Edit Configuration Edit configuration and launch Name Yew configuration 1 Model Extents Common Hybrid model to transform Hybrid Model C Eclipse KAMMA Eclipse Final AMMALeclipselruntime EdipseApplication MeTAGeM PruebalModels SOLZORDB mm hybrid ATL Model transformation result ATL Model C Eclipse KAMMA Eclipse Final AMMA eclipse runtime EclipseApplication MeTAGeM_PruebalModels SQLZORDB atl ecore Fig 17 Configuring Hybrid gt ATL Transformation The following launches MeTAGeM will use the same configuration that you have defined in the first launch S
8. S l l H i Model t oo i Model Ref IE x lt outputModel gt gt Out Model Transf ordb Model Ref lt lt inputModel gt gt In Model Transf sql Name reft name i i Mame ref Name i Ref is NModeliilame i Ref t NSchema name i i SE sr l EEE EEEE EE EE E Fig 8 MeTAGeM model example P ex MeTAGeM Page 10 NS kyb le EA User Guide In the above figure we have defined an OneToOne relationship schema2model that contains a source element Schema and a target element Model This target element also contains three relationships that represent different properties of the relationship between Schema and Model In this way for example we have specified that Name property of Schema element will be transformed to Name property of Model element a o MeTAGeM Page 11 User Guide 4 Generating an Hybrid Model After creating the MeTAGeM Model AMW 1 you can generate the Hybrid Model To do this you must launch the MeTAGeM gt Hybrid process Run As gt MeTAGeM gt Hybrid as Figure 9 shows Ky Models 9 ETTE a SQLZORDB amw New gt Ly Test Open F3 Open With L Show In Alt Shift ytyt E de Copy Ctrl C Copy Qualified Name N Paste Ctrl V Z Delete Delete Build Path Refactor Alt Shift T gt gg Import g Export amp Refresh FS Assign Working Sets 7 Debug As U Tana gt Run Configurations Fig 9 Generating Hybrid Model from MeTAGeM
9. Tree Table Tree with Columns C Properties 51 th Problems Error Log El Console Property Value Property Value Concrete Value i Concrete Value Name pattern 13 RPMRNNC Deeg RES Babel gt Source SrcMR2 NameMMIN a of Target TrgMR3 NameMMO Rule from from srol MMTypeIN Srci srci MMTypeIN Sre1 src MMTypeIN Src2 to to trgi MMTypeOUT Trgi trgi MMTypeOUT Trg1 Elemi lt atarget Elemi lt srcl ElemiTrg Elem2 lt Src Elem2Trg atarget MXTypeOUT Trgz Elem lt srcl Elem2Trg Fig 12 Relation reference isRefered roles After defining the Hybrid model you must validate it to check there is no error In order to do it you must use the contextual menu of the model s root and choose validate as you can see in Figure 13 FE J platform fresource MeTAGeM Prueba Models SQLZ2ORDB mm hybrid Module saiZordb New Child gt Copy b ES Validate Fig 13 Validating Hybrid Model d 7 MeTAGeM Page 14 S LN User Guide In case there is an error the validation process shows an error message as shown in Figure 14 Through this message you can know what elements or attributes of your model contain validation errors and you can take action to resolve them amp Validation Problems CH Problems encountered during validation Reason Diagnosis of Module sqizordb x RightPattern must have one of following elements SourceEle
10. ame i I E on I i El EClass BaseTable H de EReference operation 4 EGeneric Type lt gt EReference package i Si EClass BehaviouralComponent Es EClass ANSICharacterType it lt gt EReference schema lt gt EAttribute Descriptor I H se EAtribute name 4 EGeneric Type I I it EAttribute body i s EEnum ANSICharacterTypes I I EReference parameters withMode 4 EEnum Literal CHARACTER i I Els EClass BinaryStringType Z EEnum Literal CHARACTERVARYING i lt gt EAttribute descriptor 4 EEnum Literal CHARVARYING i lt gt E ttribute length def 4 EEnum Literal NCHARVARYING i zm l e zl k rm m rm rm e zm rm ss ss ss Sh em zm zm vi em vm d e zm e e em em zm ss S zm zm zm e zm rm em SS Fig 4 MeTAGeM weaving model Now you can define the relationships clicking on the secondary mouse button on the model root and then select a new child SOLZORDB amiv 53 Ta i Re sql E S H weaving model de s BE ordb d gt EPackage SQL2003 E LA platform lresource MeTacGeM Prueba Modelsis Si S EPackage ORDB40RA A fel EClass ARRAY C A eee d FaAnnntatinn amt i lt gt EAttribute num elements f lt lt relations gt gt OneToOne gt EGeneric Type lt relations gt gt OneTozero Wizards p Er pl f lt lt relations gt gt ZeroToOne R
11. diagram EI A EClass Schema f lt lt relations gt gt One To One EReference datatype re buerne lt lt source gt gt InElement ence table l i H EReference behaviouralComponents lt lt target gt gt QutElement ute Name EE E OL A KR aber mere ale kaka wi E ME PET Ka Fig 6 Selecting a source element for a relationship Also as you can see in Figure 7 an OutElement can have internal relationships This feature makes MeTAGeM capable of representing relationships between properties of the relation elements In this context you can only define the following relationships OneToOne ManyToOne and ZeroToOne pe m m m m m m m m m m m m eee i ee ee m m m ee Ki Weaving model ch T ordb ch b H OG platform resource MeTAGeM Prueba Models SOL20RDE EPackage ORDB40RA An outline Model Root sqizordh 4 EAnnotation of available LJ lt lt relations gt gt One To One schema model Si se EClass Model S lt lt source gt gt In Element Schema E Z E nnotation of diagram ag f lt lt onetoOne gt gt OneToOne I l I l I l I l I l I I I I I I Fa I I I l I I l I l I l I I l I Ge S lt lt manytoOne gt gt ManyToone New sibling j l s i K m A lt lt zerotoOne gt gt ZeroToOne Weaving element ber se ee EEE EE ee RIES E er k Fig 7 Relationships included in another relationship MeTAGeM model Now you are able to define a MeTAGeM model like this
12. e in the Edit Configuration window as Figure 22 shows Edit Configuration Edit configuration and launch Pa Select a valid Hybrid File a Name New configuration 1 Hybrid Model C Eclipse KAMMA MeTAGeM_Prueba Models SQL2ORDB mm_hybrid RubyTL Model transformation result RubyTL Model C Eclipse KAMMAIMeTAGeM PruebalModels 5QLZORDB rubyt mr JC Fig 22 Validation error in the Edit Configuration window Hybrid gt RubyTL k MeTAGeM Page 20 vi AN Gem PSN Ikybele EA User Guide However if you have already configured the process and you launch the transformation Run As gt Hybrid gt RubyTL see Figure 20 and the Hybrid model cannot be transformed to RubyTL MeTAGeM Tool shows you a validation error as you can see in the Figure 23 which indicates what the problems of Hybrid model have been found during the validation amp Validation problems C Problems encountered during validation Reason Diagnosis of S0L20RDB mm hybrid Fig 23 Validation error example in Hybrid gt RubyTL Transformation After validating the Hybrid model and if the process runs correctly you will obtain a new model rubytl which describes the transformation in RubyTL terms From this model you can generate the RubyTL transformation code In order to do it you must click on Extract RubyTL model to RubyTL file MeTAGeM that appears in the contextual menu of RubyTL model as Figure 24 shows SCH MeTAG
13. eM Page 21 V 4 an SN I kybele User Guide ky Models a SQLZORDE Ruby mm hybrid SQLZORDB Ruby rubyti L SQLZORDB amw New gt 7 SQLZORDB amw prop Open amp src Open With gt test E classpath a Copy C project E J Delete Rename geg Import gA Export 27 Refresh Extract RubyTL model to RubyTL file MeTAGeM gt Models A SQLZORDB Ruby mm hybgid SQLZORDB Ruby rb R SOLZORDB_Ruby rubytl 5QLZORDB amw gt SQLZORDB amw prop Fig 24 Generating RubyTL code from RubyTL model Now you have a RubyTL transformation file to be executed however as we have noticed in ATL case in most cases this generated code is not completely executable so you must modify the code for converting it into a completely executable code We also notice that you must create a rake file jError No se encuentra el origen de la referencia to execute a RubyTL transformation d a MeTAGeM Page 22 ei See EA User Guide 7 References 1 AMW Atlas Model Weaver http www eclipse org gmt amw 2 ATL Atlas Transformation Language http www eclipse org atl 3 ATL User Manual version 0 7 Febrero 2006 4 RubyTL Model Driven Development in Ruby http rubytl rubyforge org 5 Transformation task from a Rake file http gts infum es screencasts introductory html H MeTAGeM Page 23
14. mentRule Reference Rule Operation or Concrete value Z P A platform resource MeTAGeM_Prueba Models SQLZORDB mm_hybrid LA Module sqizordb R Rule schema2model Schema sql_model gt Model ordb_model 3 R Rule generatesNCHAR gt BuiltInCharacterType ordb_model KR Target BuiltinCharacter Type ordb model Element Included Q Right Pattern R17 rightPattern amp Left Pattern R17_leftPattern Descriptor ordb model R Rule PK2PK PrimaryKey sql_model gt PrimaryKey ordb_model R Rule STZST StructuredType sql_model gt StructuredType ordb model IN MetaModel sqi model OUT MetaModel ordb model w Properties 22 2 Problems Javadoc Property Value Concrete Value Name pattern 2R17_rightPattern Operation Reference Rule Fig 14 Error validation example in Hybrid Model Otherwise if the model is correct the validation process shows the following message Progress Information Validation Information i Validation completed successfully Fig 15 Correct validation example When the Hybrid model is correct you can already transform it to a specific transformation language model concretely MeTAGeM Tool makes you possible to transform Hybrid Model to ATL or to RubyTL as you can see in the following sections d MeTAGeM Page 15 Ay SN CA kybe le User Guide 5 Hybrid gt ATL To transform a Hybrid model to
15. ormation code from this ATL model To obtain this ATL code you must click on Extract ATL 0 2 model to ATL 0 2 file that appears in the contextual menu of the ATL Model Important Extract ATL 0 2 model to ATL 0 2 file option only appears in AM3 Perspective as you can see in the Figure 19 Ss MeTAGeM Page 17 2 kybele User Guide L Models Je SQLZORDB atl ecore SQLZORDB amw New SQLZORDB amw pro Open SQLZORDB mm hybr Open With E amp src Epsilon K L test Gees classpath ge Teneo gt project Ecore Utils K Properties Extract XML model to XML File Extract ATL 0 2 model to ATL 0 2 file amp Models SQLZORDB atl atl S SQLZORDB atl ecore OG 5QL2ORDB amw E SQLZORDB amw prop fe SQLZORDB mm hybrid Fig 19 Generating ATL code from ATL Model Now you have the ATL transformation but we must notice that this generated code is not always executable so it is possible that you may need to modify it to achieve a completely executable code The percentage of the executable code that MeTAGeM Tool generates depends on the complexity of the problem at MeTAGeM Page 18 Okyb le EA User Guide 6 Hybrid gt RubyTL From Hybrid Model you can generate an ATL Model and also you can generate a model for another transformation language RubyTL jError No se encuentra el origen de la referencia To generate a Ruby Model you must launch the Hybrid gt RubyTL process Run As gt Hybrid gt Rub
16. plicated in the transformation To start with transformation modelling in this level you must define a model conforms to the extended weaving meta model of MeTAGeM To create such model you must click on File gt New gt Other gt Model Weaver PWeaving Model as Figure 2 shows Select a wizard gt Wizards type filter text H Eclipse Modeling Framework H 1 Ecore Tools H LG Epsilon H 1 Example EMF Model Creation Wizards H Graphical Modeling Framework HL Java E Lo Java Emitter Templates Model Weaver Weaving Model gt MOFScript Plug in Development lx SYN IL Tasks HL UML 2 1 Diagrams Fig 2 Selecting a weaving model After selecting Weaving Model the wizard provides you all the steps to create a new weaving model in the Figure 3 you can see all this steps First you must select the plug in that you will use to define the model so in this case you must select MeTAGeM plug in Metamodels mmw_metagem_v2 km3 The following step corresponds to indicate Ss MeTAGeM Page 7 2 kybele User Guide where you want to save the new model Container its name FileName and the kind of panel that in this case must be TransformationWeavingPanelExtension The last step is selecting the meta models that you want to transform the source meta model and the target meta model as well as the name of these meta models in the transformation scope I Weaver Wizard 2
17. plug ins MeTAGeM 1 0 AGE 0 3 4 AM3 0 4 AMW 1 0 ATL 2 0 EMF 2 4 Epsilon 0 8 6 RubyTL 0 3 4 TCS 0 8 3 Install Ruby Interpreter 1 8 6 version To run RubyTL Ruby Runtime must be installed and it is recommended the 1 8 6 version If you have downloaded Eclipse AMMA MeTAGeM you can find the installer ruby186 25 exe in the RubyTL folder In other case you can download it from http rubyforge org frs download php 18566 ruby186 25 exe CH MeTAGeM Page 5 User Guide Once the interpreter is installed AGE should be configured with the path where the Ruby interpreter has been installed Click on Windows gt Preferences gt Ruby gt Installed Interpreters preferences As shown Figure 1 in this dialog you can add the installed interpreter usually the path c ruby bin ruby exe or usr bin ruby is used Preferences Installed Interpreters 7 b H Plug in Development Ruby H ppearance Editor A Location Evalution Expressions Formatter B Installed Interpreters Rilrdoc Add Interpreter Task Tags Ga DruhuTl Fig 1 Ruby Interpreter configuration Ss MeTAGeM Page 6 V N O kibik 7 kybele EA User Guide 3 Creating a MeTAGeM Model For modelling platform independent transformations MeTAGeM Tool provides an editor of models that makes it possible to represent the relationships between elements of the meta models that are im
18. roeraeitenenveaaliacasnadeiomseaasel 14 Fig 14 Error validation example in Hybrid Model sss 15 Fig 15 4 GOrrect van ati OmNe en 61 ar e v t v n SE u t deh r Ash ER S b Ee h HU dh 15 Fig 16 Launching Hybrid gt ATL Transformation sss sss 16 Fig 17 Configuring Hybrid gt ATL Transformation sesevseseversesrvvrsenesveneservenerersenesenseneversenererseneseeseneseenerersenesersenessnne 16 Fig 18 Validation error in the Edit Configuration window Hybrid ATL 17 Fig 19 Generating ATL code from ATL Model 18 Fig 20 Launching Hybrid gt RubyTL Transformations 19 Fig 21 Configuring Hybrid gt RubyTL Transformation s seeseseversesevvesesereeneservenererseneversenerersenereesesereenesersenerersenensnne 20 Fig 22 Validation error in the Edit Configuration window Hybrid gt RubyT LL ccs 20 Fig 23 Validation error example in Hybrid gt RubyTL Transformation anannancacecorenencezesee nen ze zee nente zere se rent n 2l Fig 24 Generating RubyTL code from RubyTL model sss 22 s MeTAGeM Page 3 SI DO kyb le EA User Guide 1 Introduction MeTAGeM is a Meta Tool for the Automatic Generation of Model Transformation that makes possible to put into practice the MDE Model Driven Engineering principles for developing model transformations defining model transformations as models without considering details of the code implementation In order to do that MeTAGeM gives
19. s MeTAGeM Page 16 Okyib le EA User Guide Before running the transformation the process validates automatically the source model according to the ATL version implemented in MeTAGeM Tool so it is possible that you have created a valid Hybrid model but that model cannot be transformed to an ATL Model If it is the first time that you launch the process on a Hybrid model and your hybrid model is not correct according the transformation you will receive an error message in the Edit Configuration window as you can see in the Figure 18 Edit Configuration Edit configuration and launch Select a vaid Hybrid fle gt GI Name Mee configuration 1 Hybrid model to bransform Hybrid Model C Eclipse KAMMAJEcipse Final AMMA ecipse runtime EchpseApp c ation MeTAGeM PruebalModels SQLZORDB mm hybrid ATL Model transformation result ATL Model C lEcipse KAMMA Eclipse Final AMMA eciipse runtime EcipseAppkcationjMe TAGEM PruebalModels SQLZORDB atl ecore Fig 18 Validation error in the Edit Configuration window Hybrid gt ATL In the other hand if you launch the process from a configuration defined previously and your Hybrid Model is not correct to transform it to ATL you will receive an error message in the same way that you receive when the Hybrid model is not valid See Figure 14 If the transformation is executed correctly a new ATL model is created in the path chosen previously and then you can generate the transf
20. tRule this relation indicates that the source of the Binding is another Binding defined in the same rule In the Figure 12 you can see an example about Relation reference isRefered behaviours and its corresponding ATL code P ZA MeTAGeM Page 13 VUN S aN DW Ikybele User Guide H A platform resource MeTAGeM Prueba Models MyTest mm hybrid Module E R Rule MANN SrcMR3 NotDefined SrcMR4 MotDefined gt TroMR 4 Ni gt Source DCL NameMMIN gt Source SreMR2 NameMMIN d Target TrgMR 1 NameMMOLIT E ad Target TrgMR2 NameMMOLIT E Ly Element Included U JRight Pattern RPMRNNb Left Pattern LPMRNNB ElincTrgNNb NotDefined ad Target TrgMR3 NameMMOLIT ta IN MetaModel NameMMIN OUT MetaModel NameMMOLIT ZE Operation OP1 SrcMR1 Boolean Selection Parent List Tree Table Tree with Columns EI Properties 53 Z Problems Error Log E Console A platform fresource MeTAGeM PruebafModelsfMyTest mm hybrid A Module R Rule MRNN SrcMR3 NotDefined SrcMR 4 NotDefined gt TrgMR4 N P Source SrcMR 1 NameMMIN Source SrcMR2 NameMMIN Gf Target TrgMR 1 NameMMOUT Target TrgMR2 NameMMOUT S i Target TrgMR3 NameMMOUT lt Element Included ES L Right Pattern RPNRNNCc EllncSrcMRNNa NotDefined Left Pattern LPMRNC EllncTrgNNc NotDefined i IN MetaModel NameMMIN OUT MetaModel NameMMOLUT S Operation OP1 SrcMR1 Selection Parent List
21. un Ae K E i eg FE f lt lt relations gt gt OneToMany Debug s K H EReference structured l i ge f lt lt relations gt gt ManyToOne Team d Ki se EClass BaseTable lt lt relations gt gt ManyToMany Compare With EGeneric Type T Replace With i Fig 5 Creating a new relationship in a MeTAGeM model MeTAGeM gives you the possibility to create the following kind of relationships e OneToOne Defines a relationship between one source element and one target element e OneToZero Defines a relationship with only one source element e ZeroToOne Defines a relationship with only one target element e OneToMany Defines a relationship between one source element and several target elements e ManyToOne Defines a relationship between several source elements and only one target element e ManyToMany Defines a relationship between several source elements and several target elements MeTAGeM Page 9 A Se E N Be GN kybele hd User Guide After defining a relationship you must select its source and its target elements in order to do it you must drag an element from left or right panel and drop it over the relationship as Figure 6 Shows D SQLZORDB amw I I S i ta sql ch ek S Weaving model of t ordb A EClass ReferentialConstraint el Gl r platform fresource MeTAGeM PruebalModels S El EClass Model ne EClass Restriction Si s Model Root sqizordh H EAnnotation gmf
22. yTL as Figure 20 shows Models OG SQLZORDB amyv SQLZORDB amw prop SOLZORDB mm hybrid sro New L gt test Open 7 classpath Open with gt project 5 Copy Z Delete Move Rename gg Import g Export 2 Refresh Initialize mm hybrid diagram diagram file Run As E T 1 HYBRID gt ATL Debug As gt 2 HYBRID gt RubyTL Team b Compare vvith gt Run Configurations Fig 20 Launching Hybrid gt RubyTL Transformation As in the Hybrid gt ATL case if it is the first time you launch Hybrid gt RubyTL process on a Hybrid model you must configure the transformation by choosing the source and target models paths see Figure 21 Ss MeTAGeM Page 19 a SV I kybele User Guide amp Edit Configuration Edit configuration and launch Name New configuration 1 Model Extents FI Common Hybrid model to transform Hybrid Model lipseApplication MeTAGeM PruebalModels SQLZORDB Ruby mm hybrid RubyTL Model transformation result RubyTL Model e EdlipseApplicationiMETAGEM PruebajModelstSOLZORDB Ruby rubyti Fig 21 Configuring Hybrid gt RubyTL Transformation In this case before running the Hybrid gt RubyTL process the MeTAGeM Tool also validates the source model Hybrid model according to the RubyTL version implemented If you are configuring the process and your Hybrid model is not valid you will receive an error messag

Download Pdf Manuals

image

Related Search

Related Contents

バスエース600/600R  ZEUS D50 HE Datasheet  Manual Disponível - Metalúrgica Siemsen  平成26年2月号[ PDF: 2.8MB]  PGSD834™ - Haibrain BV  SMART WATCH_E380C  

Copyright © All rights reserved.
Failed to retrieve file