aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/store-reasoning/src/main/java/tools/refinery/store/reasoning/refinement/PartialInterpretationRefiner.java
blob: c8b182b8f141f2b3188cc35033876a836e05cf3e (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
/*
 * SPDX-FileCopyrightText: 2023-2024 The Refinery Authors <https://refinery.tools/>
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package tools.refinery.store.reasoning.refinement;

import tools.refinery.logic.AbstractValue;
import tools.refinery.store.reasoning.ReasoningAdapter;
import tools.refinery.store.reasoning.representation.PartialSymbol;
import tools.refinery.store.tuple.Tuple;

public non-sealed interface PartialInterpretationRefiner<A extends AbstractValue<A, C>, C>
		extends AnyPartialInterpretationRefiner {
	@Override
	PartialSymbol<A, C> getPartialSymbol();

	boolean merge(Tuple key, A value);

	@FunctionalInterface
	interface Factory<A extends AbstractValue<A, C>, C> {
		PartialInterpretationRefiner<A, C> create(ReasoningAdapter adapter, PartialSymbol<A, C> partialSymbol);
	}
}