Package net.sf.tweety.arg.adf.sat
Class SimpleIncrementalSatSolver
- java.lang.Object
-
- net.sf.tweety.logics.pl.sat.SatSolver
-
- net.sf.tweety.arg.adf.sat.IncrementalSatSolver
-
- net.sf.tweety.arg.adf.sat.SimpleIncrementalSatSolver
-
- All Implemented Interfaces:
net.sf.tweety.logics.commons.analysis.BeliefSetConsistencyTester<net.sf.tweety.logics.pl.syntax.PlFormula>,net.sf.tweety.logics.commons.analysis.ConsistencyTester<net.sf.tweety.commons.BeliefSet<net.sf.tweety.logics.pl.syntax.PlFormula,?>>,net.sf.tweety.logics.commons.analysis.ConsistencyWitnessProvider<net.sf.tweety.logics.pl.syntax.PlBeliefSet,net.sf.tweety.logics.pl.syntax.PlFormula>
public class SimpleIncrementalSatSolver extends IncrementalSatSolver
A simple wrapper which can be used where instances ofIncrementalSatSolverare needed.Note that this implementation only provides a compatibility layer and no real incremental sat solving behavior. Hence, it is highly recommended to use a real incremental sat solver implementation if possible, otherwise one has to expect poor performance.
- Author:
- Mathias Hofer
-
-
Constructor Summary
Constructors Constructor Description SimpleIncrementalSatSolver(net.sf.tweety.logics.pl.sat.SatSolver delegate)
-
Method Summary
Modifier and Type Method Description SatSolverStatecreateState()net.sf.tweety.commons.Interpretation<net.sf.tweety.logics.pl.syntax.PlBeliefSet,net.sf.tweety.logics.pl.syntax.PlFormula>getWitness(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)booleanisSatisfiable(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)
-
-
-
Method Detail
-
createState
public SatSolverState createState()
- Specified by:
createStatein classIncrementalSatSolver
-
getWitness
public net.sf.tweety.commons.Interpretation<net.sf.tweety.logics.pl.syntax.PlBeliefSet,net.sf.tweety.logics.pl.syntax.PlFormula> getWitness(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)
- Specified by:
getWitnessin interfacenet.sf.tweety.logics.commons.analysis.ConsistencyWitnessProvider<net.sf.tweety.logics.pl.syntax.PlBeliefSet,net.sf.tweety.logics.pl.syntax.PlFormula>- Specified by:
getWitnessin classnet.sf.tweety.logics.pl.sat.SatSolver
-
isSatisfiable
public boolean isSatisfiable(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)
- Specified by:
isSatisfiablein classnet.sf.tweety.logics.pl.sat.SatSolver
-
-