diff options
Diffstat (limited to 'subprojects/store/src/main')
-rw-r--r-- | subprojects/store/src/main/java/tools/refinery/store/query/DNF.java | 3 | ||||
-rw-r--r-- | subprojects/store/src/main/java/tools/refinery/store/query/RelationLike.java (renamed from subprojects/store/src/main/java/tools/refinery/store/representation/SymbolLike.java) | 4 | ||||
-rw-r--r-- | subprojects/store/src/main/java/tools/refinery/store/query/atom/CallAtom.java | 4 | ||||
-rw-r--r-- | subprojects/store/src/main/java/tools/refinery/store/query/view/AnyRelationView.java | 4 | ||||
-rw-r--r-- | subprojects/store/src/main/java/tools/refinery/store/representation/AnySymbol.java | 6 |
5 files changed, 12 insertions, 9 deletions
diff --git a/subprojects/store/src/main/java/tools/refinery/store/query/DNF.java b/subprojects/store/src/main/java/tools/refinery/store/query/DNF.java index 3ce4eed9..95c5d787 100644 --- a/subprojects/store/src/main/java/tools/refinery/store/query/DNF.java +++ b/subprojects/store/src/main/java/tools/refinery/store/query/DNF.java | |||
@@ -1,11 +1,10 @@ | |||
1 | package tools.refinery.store.query; | 1 | package tools.refinery.store.query; |
2 | 2 | ||
3 | import tools.refinery.store.representation.SymbolLike; | ||
4 | import tools.refinery.store.query.atom.DNFAtom; | 3 | import tools.refinery.store.query.atom.DNFAtom; |
5 | 4 | ||
6 | import java.util.*; | 5 | import java.util.*; |
7 | 6 | ||
8 | public final class DNF implements SymbolLike { | 7 | public final class DNF implements RelationLike { |
9 | private final String name; | 8 | private final String name; |
10 | 9 | ||
11 | private final String uniqueName; | 10 | private final String uniqueName; |
diff --git a/subprojects/store/src/main/java/tools/refinery/store/representation/SymbolLike.java b/subprojects/store/src/main/java/tools/refinery/store/query/RelationLike.java index 30a892ae..8c784d8b 100644 --- a/subprojects/store/src/main/java/tools/refinery/store/representation/SymbolLike.java +++ b/subprojects/store/src/main/java/tools/refinery/store/query/RelationLike.java | |||
@@ -1,6 +1,6 @@ | |||
1 | package tools.refinery.store.representation; | 1 | package tools.refinery.store.query; |
2 | 2 | ||
3 | public interface SymbolLike { | 3 | public interface RelationLike { |
4 | String name(); | 4 | String name(); |
5 | 5 | ||
6 | int arity(); | 6 | int arity(); |
diff --git a/subprojects/store/src/main/java/tools/refinery/store/query/atom/CallAtom.java b/subprojects/store/src/main/java/tools/refinery/store/query/atom/CallAtom.java index 6de5cd08..47121870 100644 --- a/subprojects/store/src/main/java/tools/refinery/store/query/atom/CallAtom.java +++ b/subprojects/store/src/main/java/tools/refinery/store/query/atom/CallAtom.java | |||
@@ -1,13 +1,13 @@ | |||
1 | package tools.refinery.store.query.atom; | 1 | package tools.refinery.store.query.atom; |
2 | 2 | ||
3 | import tools.refinery.store.query.Variable; | 3 | import tools.refinery.store.query.Variable; |
4 | import tools.refinery.store.representation.SymbolLike; | 4 | import tools.refinery.store.query.RelationLike; |
5 | 5 | ||
6 | import java.util.List; | 6 | import java.util.List; |
7 | import java.util.Objects; | 7 | import java.util.Objects; |
8 | import java.util.Set; | 8 | import java.util.Set; |
9 | 9 | ||
10 | public abstract class CallAtom<T extends SymbolLike> implements DNFAtom { | 10 | public abstract class CallAtom<T extends RelationLike> implements DNFAtom { |
11 | private final CallPolarity polarity; | 11 | private final CallPolarity polarity; |
12 | private final T target; | 12 | private final T target; |
13 | private final List<Variable> substitution; | 13 | private final List<Variable> substitution; |
diff --git a/subprojects/store/src/main/java/tools/refinery/store/query/view/AnyRelationView.java b/subprojects/store/src/main/java/tools/refinery/store/query/view/AnyRelationView.java index eb64b589..328cde3a 100644 --- a/subprojects/store/src/main/java/tools/refinery/store/query/view/AnyRelationView.java +++ b/subprojects/store/src/main/java/tools/refinery/store/query/view/AnyRelationView.java | |||
@@ -3,11 +3,11 @@ package tools.refinery.store.query.view; | |||
3 | import tools.refinery.store.model.Model; | 3 | import tools.refinery.store.model.Model; |
4 | import tools.refinery.store.query.FunctionalDependency; | 4 | import tools.refinery.store.query.FunctionalDependency; |
5 | import tools.refinery.store.representation.AnySymbol; | 5 | import tools.refinery.store.representation.AnySymbol; |
6 | import tools.refinery.store.representation.SymbolLike; | 6 | import tools.refinery.store.query.RelationLike; |
7 | 7 | ||
8 | import java.util.Set; | 8 | import java.util.Set; |
9 | 9 | ||
10 | public sealed interface AnyRelationView extends SymbolLike permits RelationView { | 10 | public sealed interface AnyRelationView extends RelationLike permits RelationView { |
11 | AnySymbol getSymbol(); | 11 | AnySymbol getSymbol(); |
12 | 12 | ||
13 | default Set<FunctionalDependency<Integer>> getFunctionalDependencies() { | 13 | default Set<FunctionalDependency<Integer>> getFunctionalDependencies() { |
diff --git a/subprojects/store/src/main/java/tools/refinery/store/representation/AnySymbol.java b/subprojects/store/src/main/java/tools/refinery/store/representation/AnySymbol.java index 12a45bed..20b9eead 100644 --- a/subprojects/store/src/main/java/tools/refinery/store/representation/AnySymbol.java +++ b/subprojects/store/src/main/java/tools/refinery/store/representation/AnySymbol.java | |||
@@ -1,5 +1,9 @@ | |||
1 | package tools.refinery.store.representation; | 1 | package tools.refinery.store.representation; |
2 | 2 | ||
3 | public sealed interface AnySymbol extends SymbolLike permits Symbol { | 3 | public sealed interface AnySymbol permits Symbol { |
4 | String name(); | ||
5 | |||
6 | int arity(); | ||
7 | |||
4 | Class<?> valueType(); | 8 | Class<?> valueType(); |
5 | } | 9 | } |