diff options
Diffstat (limited to 'model-data/src/main/java/org/eclipse/viatra/solver/data/query/RelationalQuery.java')
-rw-r--r-- | model-data/src/main/java/org/eclipse/viatra/solver/data/query/RelationalQuery.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/model-data/src/main/java/org/eclipse/viatra/solver/data/query/RelationalQuery.java b/model-data/src/main/java/org/eclipse/viatra/solver/data/query/RelationalQuery.java index bbff5563..39fc2482 100644 --- a/model-data/src/main/java/org/eclipse/viatra/solver/data/query/RelationalQuery.java +++ b/model-data/src/main/java/org/eclipse/viatra/solver/data/query/RelationalQuery.java | |||
@@ -10,9 +10,7 @@ import java.util.Set; | |||
10 | 10 | ||
11 | import org.eclipse.viatra.query.runtime.api.GenericPatternMatcher; | 11 | import org.eclipse.viatra.query.runtime.api.GenericPatternMatcher; |
12 | import org.eclipse.viatra.query.runtime.api.GenericQuerySpecification; | 12 | import org.eclipse.viatra.query.runtime.api.GenericQuerySpecification; |
13 | import org.eclipse.viatra.query.runtime.api.IQuerySpecification; | ||
14 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; | 13 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; |
15 | import org.eclipse.viatra.query.runtime.api.ViatraQueryMatcher; | ||
16 | import org.eclipse.viatra.query.runtime.api.scope.QueryScope; | 14 | import org.eclipse.viatra.query.runtime.api.scope.QueryScope; |
17 | import org.eclipse.viatra.query.runtime.matchers.backend.QueryEvaluationHint; | 15 | import org.eclipse.viatra.query.runtime.matchers.backend.QueryEvaluationHint; |
18 | import org.eclipse.viatra.query.runtime.matchers.psystem.PBody; | 16 | import org.eclipse.viatra.query.runtime.matchers.psystem.PBody; |
@@ -27,7 +25,6 @@ import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.Positi | |||
27 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint; | 25 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint; |
28 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.BasePQuery; | 26 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.BasePQuery; |
29 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter; | 27 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter; |
30 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameterDirection; | ||
31 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PQuery; | 28 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PQuery; |
32 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PVisibility; | 29 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PVisibility; |
33 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples; | 30 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples; |
@@ -80,7 +77,7 @@ public class RelationalQuery extends BasePQuery { | |||
80 | for(int i = 0; i<name.length; i++) { | 77 | for(int i = 0; i<name.length; i++) { |
81 | variables[i] = body.getOrCreateVariableByName(name[i]); | 78 | variables[i] = body.getOrCreateVariableByName(name[i]); |
82 | } | 79 | } |
83 | new TypeConstraint(body, Tuples.flatTupleOf(variables), view.getKey()); | 80 | new TypeConstraint(body, Tuples.flatTupleOf(variables), view); |
84 | return this; | 81 | return this; |
85 | } | 82 | } |
86 | 83 | ||