Class GhostQSolver
- java.lang.Object
-
- net.sf.tweety.logics.qbf.reasoner.QbfSolver
-
- net.sf.tweety.logics.qbf.reasoner.GhostQSolver
-
- All Implemented Interfaces:
BeliefSetConsistencyTester<PlFormula>
,ConsistencyTester<BeliefSet<PlFormula,?>>
public class GhostQSolver extends QbfSolver
A wrapper for the GhostQ (https://www.wklieber.com/ghostq/) solver.
Tested with the GhostQ 2017 version: https://www.wklieber.com/ghostq/2017.html/- Author:
- Anna Gessler
-
-
Constructor Summary
Constructors Constructor Description GhostQSolver(java.lang.String binaryLocation)
Constructs a new instance pointing to a specific GhostQSolverGhostQSolver(java.lang.String binaryLocation, Shell bash)
Constructs a new instance pointing to a specific GhostQSolver.
-
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
-
GhostQSolver
public GhostQSolver(java.lang.String binaryLocation, Shell bash)
Constructs a new instance pointing to a specific GhostQSolver.- Parameters:
binaryLocation
- of the GhostQ executable on the hard drivebash
- shell to run commands
-
GhostQSolver
public GhostQSolver(java.lang.String binaryLocation)
Constructs a new instance pointing to a specific GhostQSolver- Parameters:
binaryLocation
- of the GhostQ 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.
-
-