Class CaqeSolver
- java.lang.Object
-
- net.sf.tweety.logics.qbf.reasoner.QbfSolver
-
- net.sf.tweety.logics.qbf.reasoner.CaqeSolver
-
- All Implemented Interfaces:
BeliefSetConsistencyTester<PlFormula>
,ConsistencyTester<BeliefSet<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(java.lang.String binaryLocation)
Constructs a new instance pointing to a specific CaqeSolverCaqeSolver(java.lang.String binaryLocation, Shell bash)
Constructs a new instance pointing to a specific CaqeSolver.
-
Method Summary
Modifier and Type Method Description boolean
isSatisfiable(java.util.Collection<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(java.lang.String binaryLocation, 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(java.lang.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(java.util.Collection<PlFormula> kb)
Description copied from class:QbfSolver
Checks whether the given set of formulas is satisfiable.- Specified by:
isSatisfiable
in classQbfSolver
- Parameters:
kb
- a set of formulas.- Returns:
- "true" if the set is consistent.
-
-