diff options
Diffstat (limited to 'subprojects/logic/src/main/java/tools/refinery/logic/literal/Literal.java')
-rw-r--r-- | subprojects/logic/src/main/java/tools/refinery/logic/literal/Literal.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/subprojects/logic/src/main/java/tools/refinery/logic/literal/Literal.java b/subprojects/logic/src/main/java/tools/refinery/logic/literal/Literal.java new file mode 100644 index 00000000..08a0241c --- /dev/null +++ b/subprojects/logic/src/main/java/tools/refinery/logic/literal/Literal.java | |||
@@ -0,0 +1,32 @@ | |||
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.logic.literal; | ||
7 | |||
8 | import tools.refinery.logic.equality.LiteralEqualityHelper; | ||
9 | import tools.refinery.logic.equality.LiteralHashCodeHelper; | ||
10 | import tools.refinery.logic.substitution.Substitution; | ||
11 | import tools.refinery.logic.term.Variable; | ||
12 | |||
13 | import java.util.Set; | ||
14 | |||
15 | public interface Literal { | ||
16 | Set<Variable> getOutputVariables(); | ||
17 | |||
18 | Set<Variable> getInputVariables(Set<? extends Variable> positiveVariablesInClause); | ||
19 | |||
20 | Set<Variable> getPrivateVariables(Set<? extends Variable> positiveVariablesInClause); | ||
21 | |||
22 | Literal substitute(Substitution substitution); | ||
23 | |||
24 | default Literal reduce() { | ||
25 | return this; | ||
26 | } | ||
27 | |||
28 | @SuppressWarnings("BooleanMethodIsAlwaysInverted") | ||
29 | boolean equalsWithSubstitution(LiteralEqualityHelper helper, Literal other); | ||
30 | |||
31 | int hashCodeWithSubstitution(LiteralHashCodeHelper helper); | ||
32 | } | ||