Class EFOLReasoner
- java.lang.Object
-
- net.sf.tweety.logics.fol.reasoner.FolReasoner
-
- net.sf.tweety.logics.fol.reasoner.EFOLReasoner
-
- All Implemented Interfaces:
net.sf.tweety.commons.QualitativeReasoner<FolBeliefSet,FolFormula>,net.sf.tweety.commons.Reasoner<Boolean,FolBeliefSet,FolFormula>
public class EFOLReasoner extends FolReasoner
Invokes E (http://eprover.org), an automated theorem prover for first-order logic, and returns its results.- Author:
- Bastian Wolf, Nils Geilen, Matthias Thimm
-
-
Field Summary
-
Fields inherited from class net.sf.tweety.logics.fol.reasoner.FolReasoner
defaultReasoner
-
-
Constructor Summary
Constructors Constructor Description EFOLReasoner(String binaryLocation)Constructs a new instance pointing to a specific EProver.EFOLReasoner(String binaryLocation, net.sf.tweety.commons.util.Shell bash)Constructs a new instance pointing to a specific EProver.
-
Method Summary
Modifier and Type Method Description booleanequivalent(FolBeliefSet kb, FolFormula a, FolFormula b)This method determines whether two formulas are equivalent wrt.StringgetAdditionalArguments()Returns the additional arguments given to the call of the EProver binary (Default value is "--auto-schedule").StringgetBinaryLocation()Returns the path of the EProver binary.Booleanquery(FolBeliefSet kb, FolFormula query)voidsetAdditionalArguments(String s)Sets the additional arguments given to the call of the EProver binary (Default value is "--auto-schedule").voidsetBinaryLocation(String binaryLocation)Changes the path of the EProver binary.-
Methods inherited from class net.sf.tweety.logics.fol.reasoner.FolReasoner
getDefaultReasoner, setDefaultReasoner
-
-
-
-
Constructor Detail
-
EFOLReasoner
public EFOLReasoner(String binaryLocation, net.sf.tweety.commons.util.Shell bash)
Constructs a new instance pointing to a specific EProver.- Parameters:
binaryLocation- location of the EProver executable on the hard drivebash- shell to run commands
-
EFOLReasoner
public EFOLReasoner(String binaryLocation)
Constructs a new instance pointing to a specific EProver.- Parameters:
binaryLocation- location of the Eprover executable on the hard drive
-
-
Method Detail
-
setAdditionalArguments
public void setAdditionalArguments(String s)
Sets the additional arguments given to the call of the EProver binary (Default value is "--auto-schedule").- Parameters:
s- some string
-
getAdditionalArguments
public String getAdditionalArguments()
Returns the additional arguments given to the call of the EProver binary (Default value is "--auto-schedule").- Returns:
- the additional arguments
-
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 EProver binary.- Returns:
- the path of the EProver binary
-
setBinaryLocation
public void setBinaryLocation(String binaryLocation)
Changes the path of the EProver binary.- Parameters:
binaryLocation- the new path of the EProver binary
-
-