blob: 1dda7ac11af3914d115d905d26440cd67313fd66 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.store.reasoning;
import org.jetbrains.annotations.Nullable;
import tools.refinery.store.adapter.ModelAdapter;
import tools.refinery.store.reasoning.internal.ReasoningBuilderImpl;
import tools.refinery.store.reasoning.interpretation.AnyPartialInterpretation;
import tools.refinery.store.reasoning.interpretation.PartialInterpretation;
import tools.refinery.store.reasoning.literal.Concreteness;
import tools.refinery.store.reasoning.refinement.AnyPartialInterpretationRefiner;
import tools.refinery.store.reasoning.refinement.PartialInterpretationRefiner;
import tools.refinery.store.reasoning.representation.AnyPartialSymbol;
import tools.refinery.store.reasoning.representation.PartialRelation;
import tools.refinery.store.reasoning.representation.PartialSymbol;
import tools.refinery.store.tuple.Tuple1;
public interface ReasoningAdapter extends ModelAdapter {
PartialRelation EXISTS_SYMBOL = PartialSymbol.of("exists", 1);
PartialRelation EQUALS_SYMBOL = PartialSymbol.of("equals", 2);
@Override
ReasoningStoreAdapter getStoreAdapter();
default AnyPartialInterpretation getPartialInterpretation(Concreteness concreteness,
AnyPartialSymbol partialSymbol) {
return getPartialInterpretation(concreteness, (PartialSymbol<?, ?>) partialSymbol);
}
<A, C> PartialInterpretation<A, C> getPartialInterpretation(Concreteness concreteness,
PartialSymbol<A, C> partialSymbol);
default AnyPartialInterpretationRefiner getRefiner(AnyPartialSymbol partialSymbol) {
return getRefiner((PartialSymbol<?, ?>) partialSymbol);
}
<A, C> PartialInterpretationRefiner<A, C> getRefiner(PartialSymbol<A, C> partialSymbol);
@Nullable
Tuple1 split(int parentMultiObject);
@Nullable
Tuple1 focus(int parentObject);
boolean cleanup(int nodeToDelete);
static ReasoningBuilder builder() {
return new ReasoningBuilderImpl();
}
}
|