diff options
Diffstat (limited to 'subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/api/impl/BaseQueryGroup.java')
-rw-r--r-- | subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/api/impl/BaseQueryGroup.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/api/impl/BaseQueryGroup.java b/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/api/impl/BaseQueryGroup.java new file mode 100644 index 00000000..b92727e7 --- /dev/null +++ b/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/api/impl/BaseQueryGroup.java | |||
@@ -0,0 +1,33 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2012, Mark Czotter, Istvan Rath and Daniel Varro | ||
3 | * This program and the accompanying materials are made available under the | ||
4 | * terms of the Eclipse Public License v. 2.0 which is available at | ||
5 | * http://www.eclipse.org/legal/epl-v20.html. | ||
6 | * | ||
7 | * SPDX-License-Identifier: EPL-2.0 | ||
8 | *******************************************************************************/ | ||
9 | package tools.refinery.viatra.runtime.api.impl; | ||
10 | |||
11 | import tools.refinery.viatra.runtime.api.AdvancedViatraQueryEngine; | ||
12 | import tools.refinery.viatra.runtime.api.IQueryGroup; | ||
13 | import tools.refinery.viatra.runtime.api.ViatraQueryEngine; | ||
14 | |||
15 | /** | ||
16 | * Base implementation of {@link IQueryGroup}. | ||
17 | * | ||
18 | * @author Mark Czotter | ||
19 | * | ||
20 | */ | ||
21 | public abstract class BaseQueryGroup implements IQueryGroup { | ||
22 | |||
23 | @Override | ||
24 | public void prepare(ViatraQueryEngine engine) { | ||
25 | prepare(AdvancedViatraQueryEngine.from(engine)); | ||
26 | } | ||
27 | |||
28 | protected void prepare(AdvancedViatraQueryEngine engine) { | ||
29 | engine.prepareGroup(this, null /* default options */); | ||
30 | } | ||
31 | |||
32 | |||
33 | } | ||