Package net.sf.tweety.arg.adf.sat
Class IncrementalSatSolver
- java.lang.Object
-
- net.sf.tweety.logics.pl.sat.SatSolver
-
- net.sf.tweety.arg.adf.sat.IncrementalSatSolver
-
- All Implemented Interfaces:
BeliefSetConsistencyTester<PlFormula>,ConsistencyTester<BeliefSet<PlFormula,?>>,ConsistencyWitnessProvider<PlBeliefSet,PlFormula>
- Direct Known Subclasses:
NativeLingelingSolver,NativeMinisatSolver,NativePicosatSolver,SimpleIncrementalSatSolver
public abstract class IncrementalSatSolver extends SatSolver
-
-
Constructor Summary
Constructors Constructor Description IncrementalSatSolver()
-
Method Summary
Modifier and Type Method Description abstract SatSolverStatecreateState()Interpretation<PlBeliefSet,PlFormula>getWitness(java.util.Collection<PlFormula> formulas)If the collection of formulas is consistent this method returns some model of it or, if it is inconsistent, null.booleanisSatisfiable(java.util.Collection<PlFormula> formulas)Checks whether the given set of formulas is satisfiable.-
Methods inherited from class net.sf.tweety.logics.pl.sat.SatSolver
convertToDimacs, convertToDimacs, getDefaultSolver, getWitness, getWitness, hasDefaultSolver, isConsistent, isConsistent, isConsistent, setDefaultSolver, setTempFolder
-
-
-
-
Method Detail
-
createState
public abstract SatSolverState createState()
-
getWitness
public Interpretation<PlBeliefSet,PlFormula> getWitness(java.util.Collection<PlFormula> formulas)
Description copied from class:SatSolverIf the collection of formulas is consistent this method returns some model of it or, if it is inconsistent, null.- Specified by:
getWitnessin interfaceConsistencyWitnessProvider<PlBeliefSet,PlFormula>- Specified by:
getWitnessin classSatSolver- Parameters:
formulas- a set of formulas- Returns:
- some model of the formulas or null.
-
isSatisfiable
public boolean isSatisfiable(java.util.Collection<PlFormula> formulas)
Description copied from class:SatSolverChecks whether the given set of formulas is satisfiable.- Specified by:
isSatisfiablein classSatSolver- Parameters:
formulas- a set of formulas.- Returns:
- "true" if the set is consistent.
-
-