Class BatchTransformation
- java.lang.Object
-
- org.eclipse.viatra.transformation.runtime.emf.transformation.batch.BatchTransformation
-
public class BatchTransformation extends java.lang.ObjectA base class for batch transformations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchTransformation.BatchTransformationBuilder
-
Field Summary
Fields Modifier and Type Field Description protected Contextcontextprotected IExecutorexecutorprotected ViatraQueryEnginequeryEngineprotected RuleEngineruleEngineprotected java.util.Set<BatchTransformationRule<?,?>>rules
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRule(BatchTransformationRule rule)voidaddRules(BatchTransformationRuleGroup ruleGroup)voidaddRules(TransformationRuleGroup<BatchTransformationRule> ruleGroup)voiddispose()static BatchTransformation.BatchTransformationBuilderforEngine(ViatraQueryEngine engine)static BatchTransformation.BatchTransformationBuilderforScope(EMFScope scope)ContextgetContext()ViatraQueryEnginegetQueryEngine()RuleEnginegetRuleEngine()BatchTransformationRuleGroupgetTransformationRuleGroup()Returns a transformation rule group with all rules of the transformationBatchTransformationStatementsgetTransformationStatements()
-
-
-
Field Detail
-
ruleEngine
protected final RuleEngine ruleEngine
-
queryEngine
protected final ViatraQueryEngine queryEngine
-
executor
protected final IExecutor executor
-
context
protected final Context context
-
rules
protected java.util.Set<BatchTransformationRule<?,?>> rules
-
-
Method Detail
-
forScope
public static BatchTransformation.BatchTransformationBuilder forScope(EMFScope scope)
-
forEngine
public static BatchTransformation.BatchTransformationBuilder forEngine(ViatraQueryEngine engine)
-
getTransformationStatements
public BatchTransformationStatements getTransformationStatements()
-
addRule
public void addRule(BatchTransformationRule rule)
-
addRules
public void addRules(TransformationRuleGroup<BatchTransformationRule> ruleGroup)
-
addRules
public void addRules(BatchTransformationRuleGroup ruleGroup)
-
getTransformationRuleGroup
public BatchTransformationRuleGroup getTransformationRuleGroup()
Returns a transformation rule group with all rules of the transformation Note: Each call of this method results in a separate rule group that contains the current set of transformation rules in the transformation, it can get stale if the rule set added to this transformation has changed.- Since:
- 2.2
-
getRuleEngine
public RuleEngine getRuleEngine()
-
getQueryEngine
public ViatraQueryEngine getQueryEngine()
-
getContext
public Context getContext()
-
dispose
public void dispose()
-
-