Class CaqeSolver
- java.lang.Object
-
- net.sf.tweety.logics.qbf.reasoner.QbfSolver
-
- net.sf.tweety.logics.qbf.reasoner.CaqeSolver
-
- 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,?>>
public class CaqeSolver extends QbfSolver
A wrapper for the Caqe (https://www.react.uni-saarland.de/tools/caqe/ solver.
Tested with the 2019 version: https://github.com/ltentrup/caqe/- Author:
- Anna Gessler
-
-
Constructor Summary
Constructors Constructor Description CaqeSolver(String binaryLocation)Constructs a new instance pointing to a specific CaqeSolverCaqeSolver(String binaryLocation, net.sf.tweety.commons.util.Shell bash)Constructs a new instance pointing to a specific CaqeSolver.
-
Method Summary
Modifier and Type Method Description booleanisSatisfiable(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> kb)Checks whether the given set of formulas is satisfiable.-
Methods inherited from class net.sf.tweety.logics.qbf.reasoner.QbfSolver
isConsistent, isConsistent, isConsistent
-
-
-
-
Constructor Detail
-
CaqeSolver
public CaqeSolver(String binaryLocation, net.sf.tweety.commons.util.Shell bash)
Constructs a new instance pointing to a specific CaqeSolver.- Parameters:
binaryLocation- of the CAQE executable on the hard drivebash- shell to run commands
-
CaqeSolver
public CaqeSolver(String binaryLocation)
Constructs a new instance pointing to a specific CaqeSolver- Parameters:
binaryLocation- of the CAQE executable on the hard drive
-
-
Method Detail
-
isSatisfiable
public boolean isSatisfiable(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> kb)
Description copied from class:QbfSolverChecks whether the given set of formulas is satisfiable.- Specified by:
isSatisfiablein classQbfSolver- Parameters:
kb- a set of formulas.- Returns:
- "true" if the set is consistent.
-
-