diff options
Diffstat (limited to 'subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/traceability/ParameterProjectionTrace.java')
-rw-r--r-- | subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/traceability/ParameterProjectionTrace.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/traceability/ParameterProjectionTrace.java b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/traceability/ParameterProjectionTrace.java new file mode 100644 index 00000000..8da1e314 --- /dev/null +++ b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/traceability/ParameterProjectionTrace.java | |||
@@ -0,0 +1,42 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2014, Bergmann Gabor, 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.rete.traceability; | ||
10 | |||
11 | import java.util.Arrays; | ||
12 | import java.util.Collection; | ||
13 | |||
14 | import tools.refinery.viatra.runtime.matchers.psystem.PBody; | ||
15 | import tools.refinery.viatra.runtime.rete.recipes.ReteNodeRecipe; | ||
16 | |||
17 | /** | ||
18 | * The recipe projects the finished results of a {@link PBody} onto the list of parameters. | ||
19 | * @author Bergmann Gabor | ||
20 | * | ||
21 | */ | ||
22 | public class ParameterProjectionTrace extends RecipeTraceInfo implements PatternTraceInfo { | ||
23 | |||
24 | public ParameterProjectionTrace(PBody body, ReteNodeRecipe recipe, | ||
25 | RecipeTraceInfo... parentRecipeTraces) { | ||
26 | this(body, recipe, Arrays.asList(parentRecipeTraces)); | ||
27 | } | ||
28 | |||
29 | public ParameterProjectionTrace(PBody body, ReteNodeRecipe recipe, | ||
30 | Collection<? extends RecipeTraceInfo> parentRecipeTraces) { | ||
31 | super(recipe, parentRecipeTraces); | ||
32 | this.body = body; | ||
33 | } | ||
34 | |||
35 | PBody body; | ||
36 | |||
37 | @Override | ||
38 | public String getPatternName() { | ||
39 | return body.getPattern().getFullyQualifiedName(); | ||
40 | } | ||
41 | |||
42 | } | ||