SimpleGT is a minimal graph transformation language, based on double push-out (DPO) semantics. SimpleGT is built on top of the Eclipse Modeling Framework (EMF), EMFText, and SimpleOCL, and is intended as a proof-of-concept transformation language for the EMF Transformation Virtual Machine (EMFTVM), which allows integrated execution of heterogeneous model transformation languages, much like Microsoft's Common Language Runtime (CLR). EMFTVM is currently part of the Eclipse ATL project, and also provides a compiler for ATL.
Below you can find an example of SimpleGT code:
This code transforms a model “g” that conform to the “Graph” metamodel. It first deletes all incoming edges to all nodes named “n1”, and then deletes all nodes named “n1”. For detailed examples, check out the TTC 2011 Hello World Eclipse project from our Subversion:
svn co http://soft.vub.ac.be/svn-pub/TTC2011/
You'll need the following installed on your computer:
To download and install the SimpleGT Eclipse plugin, install it from the Eclipse update site:
See links for the source code.
EMFTVM includes a separate launch configuration dialog that looks very much like ATL's launch configuration dialog. It can be found via “Run → Run Configurations…”.
EMFTVM also includes its own Ant tasks. See this example build.xml file to find out how to use the Ant tasks.
- Dennis Wagelaar, Massimo Tisi, Jordi Cabot, Frédéric Jouault. Towards a general composition semantics for rule-based model transformation. Accepted for the ACM/IEEE 14th International Conference on Model Driven Engineering Languages and Systems (MoDELS 2011).