Class RestrictedKBipolarStateProcessor
java.lang.Object
org.tweetyproject.arg.adf.reasoner.sat.processor.RestrictedKBipolarStateProcessor
- All Implemented Interfaces:
StateProcessor
The
RestrictedKBipolarStateProcessor is a class that processes SAT encodings for
restricted bipolar and k-bipolar argumentation frameworks. It implements the StateProcessor
interface and generates SAT clauses based on the argumentation framework's bipolarity.
This class ensures that the appropriate SAT encoding is applied based on whether the framework is bipolar or not. It uses a restricted approach, taking into account a partial interpretation provided during instantiation.
- Author:
- Mathias Hofer
-
Constructor Summary
ConstructorsConstructorDescriptionRestrictedKBipolarStateProcessor(AbstractDialecticalFramework adf, PropositionalMapping mapping, Interpretation partial) Constructs aRestrictedKBipolarStateProcessorwith the given ADF, propositional mapping, and partial interpretation. -
Method Summary
-
Constructor Details
-
RestrictedKBipolarStateProcessor
public RestrictedKBipolarStateProcessor(AbstractDialecticalFramework adf, PropositionalMapping mapping, Interpretation partial) Constructs aRestrictedKBipolarStateProcessorwith the given ADF, propositional mapping, and partial interpretation. The processor will apply either the restricted bipolar or k-bipolar SAT encoding depending on the nature of the argumentation framework.- Parameters:
adf- the abstract dialectical framework to be processed, must not be nullmapping- the propositional mapping used for SAT encoding, must not be nullpartial- the partial interpretation used for restricting the SAT encoding, must not be null- Throws:
NullPointerException- if any of the parameters are null
-
-
Method Details
-
process
Processes the SAT encodings for the restricted bipolar or k-bipolar frameworks. If the framework is bipolar, the bipolar SAT encoding is used. Otherwise, both the bipolar and k-bipolar SAT encodings are applied.- Specified by:
processin interfaceStateProcessor- Parameters:
consumer- a consumer that accepts the generated SAT clauses
-