/** * Transforms the given model along the trajectory. * * @param modelRoot * The root of the model. * @throws ViatraQueryRuntimeException * If the VIATRA Query fails to initialize. */ public void doTransformation(Notifier modelRoot) { setModel(modelRoot); doTransformation(); }
/** * Initialize this SolutionTrajectory for transforming the given model along the trajectory. * <p> * The transformation will be reversible by creating an {@link EditingDomain} on the model. * * @param modelRoot * The root of the model. * @throws ViatraQueryRuntimeException * If the VIATRA Query fails to initialize. */ public void setModelWithEditingDomain(Notifier modelRoot) { setModel(modelRoot); editingDomain = EMFHelper.createEditingDomain(model); }