Class RefineUnequalSatEncoding
java.lang.Object
org.tweetyproject.arg.adf.reasoner.sat.encodings.RefineUnequalSatEncoding
- All Implemented Interfaces:
RelativeSatEncoding
This class implements a SAT encoding for refining unequal interpretations in an Abstract Dialectical Framework (ADF).
It generates clauses based on the current interpretation, ensuring that the refinement does not result in the same
interpretation as the input.
The encoding is used to enforce conditions on satisfied, unsatisfied, and undecided arguments within an ADF.
- Author:
- Mathias Hofer
-
Constructor Summary
ConstructorDescriptionConstructs a new RefineUnequalSatEncoding with the specified propositional mapping. -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(Consumer<Clause> consumer, Interpretation interpretation) Encodes the given interpretation into a set of SAT clauses that represent the refinement of the interpretation, ensuring that the resulting interpretation is not equal to the input interpretation.
-
Constructor Details
-
RefineUnequalSatEncoding
Constructs a new RefineUnequalSatEncoding with the specified propositional mapping.- Parameters:
mapping
- the mapping from arguments to propositional variables, must not be null
-
-
Method Details
-
encode
Encodes the given interpretation into a set of SAT clauses that represent the refinement of the interpretation, ensuring that the resulting interpretation is not equal to the input interpretation.- Specified by:
encode
in interfaceRelativeSatEncoding
- Parameters:
consumer
- the clause consumer that accepts the generated clausesinterpretation
- the interpretation to be refined and encoded
-