Class KBipolarSatEncoding
java.lang.Object
org.tweetyproject.arg.adf.reasoner.sat.encodings.KBipolarSatEncoding
- All Implemented Interfaces:
SatEncoding
The
KBipolarSatEncoding
class provides an encoding of a bipolar argumentation framework into a
propositional formula for SAT solving. It implements the SatEncoding
interface and processes
the Abstract Dialectical Framework (ADF) along with a propositional mapping of arguments.
The encoding considers the undecided arguments and uses Tseitin transformation to generate the
propositional formula that is fed into a SAT solver.- Author:
- Mathias Hofer
-
Constructor Summary
ConstructorDescriptionConstructs aKBipolarSatEncoding
instance with the given ADF and propositional mapping. -
Method Summary
-
Constructor Details
-
KBipolarSatEncoding
Constructs aKBipolarSatEncoding
instance with the given ADF and propositional mapping.- Parameters:
adf
- the abstract dialectical framework, must not be nullmapping
- the propositional mapping used for the encoding, must not be null- Throws:
NullPointerException
- ifadf
ormapping
is null
-
-
Method Details
-
encode
Encodes the acceptance conditions of the arguments in the ADF into a SAT formula using a given consumer. The encoding involves generating clauses based on the undecided arguments and their dependencies, and applying Tseitin transformation to handle complex acceptance conditions.- Specified by:
encode
in interfaceSatEncoding
- Parameters:
consumer
- the consumer to accept the generated SAT clauses
-