Class QbfSolver
- java.lang.Object
-
- net.sf.tweety.logics.qbf.reasoner.QbfSolver
-
- 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,?>>
- Direct Known Subclasses:
CadetSolver,CaqeSolver,GhostQSolver,QuteSolver
public abstract class QbfSolver extends Object implements net.sf.tweety.logics.commons.analysis.BeliefSetConsistencyTester<net.sf.tweety.logics.pl.syntax.PlFormula>
Abstract QBF sat solver to be implemented by concrete solvers.- Author:
- Anna Gessler
-
-
Field Summary
Fields Modifier and Type Field Description protected net.sf.tweety.commons.util.ShellbashShell for running solvers.
-
Constructor Summary
Constructors Constructor Description QbfSolver()
-
Method Summary
Modifier and Type Method Description booleanisConsistent(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)booleanisConsistent(net.sf.tweety.commons.BeliefSet<net.sf.tweety.logics.pl.syntax.PlFormula,?> beliefSet)booleanisConsistent(net.sf.tweety.logics.pl.syntax.PlFormula formula)abstract booleanisSatisfiable(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)Checks whether the given set of formulas is satisfiable.
-
-
-
Method Detail
-
isSatisfiable
public abstract boolean isSatisfiable(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)
Checks whether the given set of formulas is satisfiable.- Parameters:
formulas- a set of formulas.- Returns:
- "true" if the set is consistent.
-
isConsistent
public boolean isConsistent(net.sf.tweety.commons.BeliefSet<net.sf.tweety.logics.pl.syntax.PlFormula,?> beliefSet)
- Specified by:
isConsistentin interfacenet.sf.tweety.logics.commons.analysis.BeliefSetConsistencyTester<net.sf.tweety.logics.pl.syntax.PlFormula>- Specified by:
isConsistentin interfacenet.sf.tweety.logics.commons.analysis.ConsistencyTester<net.sf.tweety.commons.BeliefSet<net.sf.tweety.logics.pl.syntax.PlFormula,?>>
-
isConsistent
public boolean isConsistent(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)
- Specified by:
isConsistentin interfacenet.sf.tweety.logics.commons.analysis.BeliefSetConsistencyTester<net.sf.tweety.logics.pl.syntax.PlFormula>
-
isConsistent
public boolean isConsistent(net.sf.tweety.logics.pl.syntax.PlFormula formula)
- Specified by:
isConsistentin interfacenet.sf.tweety.logics.commons.analysis.BeliefSetConsistencyTester<net.sf.tweety.logics.pl.syntax.PlFormula>
-
-