diff options
Diffstat (limited to 'subprojects/store-reasoning/src/main/java/tools/refinery/store/reasoning/interpretation/PartialInterpretation.java')
-rw-r--r-- | subprojects/store-reasoning/src/main/java/tools/refinery/store/reasoning/interpretation/PartialInterpretation.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/subprojects/store-reasoning/src/main/java/tools/refinery/store/reasoning/interpretation/PartialInterpretation.java b/subprojects/store-reasoning/src/main/java/tools/refinery/store/reasoning/interpretation/PartialInterpretation.java new file mode 100644 index 00000000..86ffe751 --- /dev/null +++ b/subprojects/store-reasoning/src/main/java/tools/refinery/store/reasoning/interpretation/PartialInterpretation.java | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
6 | package tools.refinery.store.reasoning.interpretation; | ||
7 | |||
8 | import tools.refinery.store.map.Cursor; | ||
9 | import tools.refinery.store.model.ModelStoreBuilder; | ||
10 | import tools.refinery.store.reasoning.ReasoningAdapter; | ||
11 | import tools.refinery.store.reasoning.literal.Concreteness; | ||
12 | import tools.refinery.store.reasoning.representation.PartialSymbol; | ||
13 | import tools.refinery.store.tuple.Tuple; | ||
14 | |||
15 | import java.util.Set; | ||
16 | |||
17 | public non-sealed interface PartialInterpretation<A, C> extends AnyPartialInterpretation { | ||
18 | @Override | ||
19 | PartialSymbol<A, C> getPartialSymbol(); | ||
20 | |||
21 | A get(Tuple key); | ||
22 | |||
23 | Cursor<Tuple, A> getAll(); | ||
24 | |||
25 | @FunctionalInterface | ||
26 | interface Factory<A, C> { | ||
27 | PartialInterpretation<A, C> create(ReasoningAdapter adapter, Concreteness concreteness, | ||
28 | PartialSymbol<A, C> partialSymbol); | ||
29 | |||
30 | default void configure(ModelStoreBuilder storeBuilder, Set<Concreteness> requiredInterpretations) { | ||
31 | // Nothing to configure by default. | ||
32 | } | ||
33 | } | ||
34 | } | ||