MOFScript Refinement XAK
Ander Zubizarreta 2009-2-25
Revisiting the problem • Goal: – ScXml2Cpp.m2t – ScXml2Ada.m2t
How? • 20090220_Example1_mofscript.pptx
XAK • XAK (pronounced “sack”) is a tool for composing base and refinement documents in XML format • We can have a XML representation of a MOFScript base transformation • We can refine the base transformation with XAK
Steps 1. Convert MOFScript base transformation into a model (XMI file) 2. Write XAK refinement for the XMI file 3. Launch XAK composition 4. Convert the resulting model into a MOFScript transformation
MOFScript 2 Model
MOFScript 2 Model base_T.m2t.model.mofscript
XAK refinement ref-ada.xak.xml
Launching composition • xak -c base_T.m2t.model.mofscript refada.xak.xml -o ada.m2t.model.mofscript • As a result we get ada.m2t.model.mofscript composed MOFScript transformation model
Model 2 MOFScript •
We can execute the resulting model directly or we can convert it into a MOFScript transformation file
Composed transformation