Class Prover9FolReasoner
- java.lang.Object
-
- net.sf.tweety.logics.fol.reasoner.FolReasoner
-
- net.sf.tweety.logics.fol.reasoner.Prover9FolReasoner
-
- All Implemented Interfaces:
net.sf.tweety.commons.QualitativeReasoner<FolBeliefSet,FolFormula>,net.sf.tweety.commons.Reasoner<Boolean,FolBeliefSet,FolFormula>
public class Prover9FolReasoner extends FolReasoner
Invokes Prover9 ( https://www.cs.unm.edu/~mccune/mace4/), an automated theorem prover for first-order logic, and returns its results.- Author:
- Nils Geilen, Matthias Thimm
-
-
Field Summary
-
Fields inherited from class net.sf.tweety.logics.fol.reasoner.FolReasoner
defaultReasoner
-
-
Constructor Summary
Constructors Constructor Description Prover9FolReasoner(String binaryLocation)Constructs a new instance pointing to a specific Prover9Prover9FolReasoner(String binaryLocation, net.sf.tweety.commons.util.Shell bash)Constructs a new instance pointing to a specific Prover9.
-
Method Summary
Modifier and Type Method Description booleanequivalent(FolBeliefSet kb, FolFormula a, FolFormula b)This method determines whether two formulas are equivalent wrt.StringgetBinaryLocation()Returns the path of the Prover9 binaries.Booleanquery(FolBeliefSet kb, FolFormula query)voidsetBinaryLocation(String binaryLocation)Changes the path of the Prover9 binaries.-
Methods inherited from class net.sf.tweety.logics.fol.reasoner.FolReasoner
getDefaultReasoner, setDefaultReasoner
-
-
-
-
Constructor Detail
-
Prover9FolReasoner
public Prover9FolReasoner(String binaryLocation, net.sf.tweety.commons.util.Shell bash)
Constructs a new instance pointing to a specific Prover9.- Parameters:
binaryLocation- of the prover9 executable on the hard drivebash- shell to run commands
-
Prover9FolReasoner
public Prover9FolReasoner(String binaryLocation)
Constructs a new instance pointing to a specific Prover9- Parameters:
binaryLocation- of the prover9 executable on the hard drive
-
-
Method Detail
-
query
public Boolean query(FolBeliefSet kb, FolFormula query)
- Specified by:
queryin interfacenet.sf.tweety.commons.QualitativeReasoner<FolBeliefSet,FolFormula>- Specified by:
queryin interfacenet.sf.tweety.commons.Reasoner<Boolean,FolBeliefSet,FolFormula>- Specified by:
queryin classFolReasoner
-
equivalent
public boolean equivalent(FolBeliefSet kb, FolFormula a, FolFormula b)
Description copied from class:FolReasonerThis method determines whether two formulas are equivalent wrt. to the given knowledge base.- Specified by:
equivalentin classFolReasoner- Parameters:
kb- the knowledge basea- the first formula.b- the second formula.- Returns:
- the answer to the query.
-
getBinaryLocation
public String getBinaryLocation()
Returns the path of the Prover9 binaries.- Returns:
- binary location of Prover9
-
setBinaryLocation
public void setBinaryLocation(String binaryLocation)
Changes the path of the Prover9 binaries.- Parameters:
binaryLocation- the new path of the binary
-
-