diff options
Diffstat (limited to 'model-data/src/main/java/org/eclipse/viatra/solver/data/query/internal/RelationalQueryMetaContext.java')
-rw-r--r-- | model-data/src/main/java/org/eclipse/viatra/solver/data/query/internal/RelationalQueryMetaContext.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/model-data/src/main/java/org/eclipse/viatra/solver/data/query/internal/RelationalQueryMetaContext.java b/model-data/src/main/java/org/eclipse/viatra/solver/data/query/internal/RelationalQueryMetaContext.java index 457ed6fd..de500fc9 100644 --- a/model-data/src/main/java/org/eclipse/viatra/solver/data/query/internal/RelationalQueryMetaContext.java +++ b/model-data/src/main/java/org/eclipse/viatra/solver/data/query/internal/RelationalQueryMetaContext.java | |||
@@ -10,6 +10,7 @@ import java.util.Set; | |||
10 | import org.eclipse.viatra.query.runtime.matchers.context.AbstractQueryMetaContext; | 10 | import org.eclipse.viatra.query.runtime.matchers.context.AbstractQueryMetaContext; |
11 | import org.eclipse.viatra.query.runtime.matchers.context.IInputKey; | 11 | import org.eclipse.viatra.query.runtime.matchers.context.IInputKey; |
12 | import org.eclipse.viatra.query.runtime.matchers.context.InputKeyImplication; | 12 | import org.eclipse.viatra.query.runtime.matchers.context.InputKeyImplication; |
13 | import org.eclipse.viatra.solver.data.query.view.RelationView; | ||
13 | 14 | ||
14 | /** | 15 | /** |
15 | * The meta context information for String scopes. | 16 | * The meta context information for String scopes. |
@@ -25,7 +26,7 @@ public final class RelationalQueryMetaContext extends AbstractQueryMetaContext { | |||
25 | @Override | 26 | @Override |
26 | public boolean isStateless(IInputKey key) { | 27 | public boolean isStateless(IInputKey key) { |
27 | ensureValidKey(key); | 28 | ensureValidKey(key); |
28 | return key instanceof RelationViewKey<?>; | 29 | return key instanceof RelationView<?>; |
29 | } | 30 | } |
30 | 31 | ||
31 | @Override | 32 | @Override |
@@ -37,7 +38,7 @@ public final class RelationalQueryMetaContext extends AbstractQueryMetaContext { | |||
37 | @Override | 38 | @Override |
38 | public Map<Set<Integer>, Set<Integer>> getFunctionalDependencies(IInputKey key) { | 39 | public Map<Set<Integer>, Set<Integer>> getFunctionalDependencies(IInputKey key) { |
39 | ensureValidKey(key); | 40 | ensureValidKey(key); |
40 | if (key instanceof RelationViewKey) { | 41 | if (key instanceof RelationView) { |
41 | return new HashMap<Set<Integer>, Set<Integer>>(); | 42 | return new HashMap<Set<Integer>, Set<Integer>>(); |
42 | } else { | 43 | } else { |
43 | return Collections.emptyMap(); | 44 | return Collections.emptyMap(); |
@@ -45,7 +46,7 @@ public final class RelationalQueryMetaContext extends AbstractQueryMetaContext { | |||
45 | } | 46 | } |
46 | 47 | ||
47 | public void ensureValidKey(IInputKey key) { | 48 | public void ensureValidKey(IInputKey key) { |
48 | if (! (key instanceof RelationViewKey<?>)) | 49 | if (! (key instanceof RelationView<?>)) |
49 | illegalInputKey(key); | 50 | illegalInputKey(key); |
50 | } | 51 | } |
51 | 52 | ||