| /******************************************************************************* |
| * Copyright (c) 2014-2016 Akos Horvath, Abel Hegedus, Tamas Borbas, Marton Bur, Zoltan Ujhelyi, Robert Doczi, Daniel Segesdi, Peter Lunk, IncQuery Labs Ltd. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-v20.html. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| *******************************************************************************/ |
| package org.eclipse.viatra.examples.cps.xform.m2m.launcher |
| |
| import org.eclipse.viatra.examples.cps.traceability.CPSToDeployment |
| import org.eclipse.viatra.examples.cps.xform.m2m.batch.optimized.CPS2DeploymentBatchTransformationOptimized |
| |
| class BatchOptimized extends CPSTransformationWrapper { |
| |
| CPS2DeploymentBatchTransformationOptimized xform |
| |
| override initializeTransformation(CPSToDeployment cps2dep) { |
| xform = new CPS2DeploymentBatchTransformationOptimized(cps2dep) |
| } |
| |
| override executeTransformation() { |
| xform.execute |
| } |
| |
| override cleanupTransformation() { |
| if(xform !== null){ |
| xform.dispose |
| } |
| xform = null |
| } |
| |
| override isIncremental() { |
| false |
| } |
| |
| } |