Invoking a Model Transformation From Java Code

The model transformation system's main class is TGGEngine. It provides three transformation operations:

If you want to use the transformation system from your own code, create a new TGGEngine using the MoteFactory class. Then, you would usually use the third operation. You only have to provide the source and target resources, specify the transformation direction and the rule set to use, and state, whether a transformation or a synchronization should be performed.