Class EFOLReasoner
java.lang.Object
org.tweetyproject.logics.fol.reasoner.FolReasoner
org.tweetyproject.logics.fol.reasoner.EFOLReasoner
- All Implemented Interfaces:
QualitativeReasoner<FolBeliefSet,,FolFormula> Reasoner<Boolean,FolBeliefSet, FolFormula>
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 org.tweetyproject.logics.fol.reasoner.FolReasoner
defaultReasoner -
Constructor Summary
ConstructorsConstructorDescriptionEFOLReasoner(String binaryLocation) Constructs a new instance pointing to a specific EProver.EFOLReasoner(String binaryLocation, Shell bash) Constructs a new instance pointing to a specific EProver. -
Method Summary
Modifier and TypeMethodDescriptionbooleanequivalent(FolBeliefSet kb, FolFormula a, FolFormula b) This method determines whether two formulas are equivalent wrt.Returns the additional arguments given to the call of the EProver binary (Default value is "--auto-schedule").booleanquery(FolBeliefSet kb, FolFormula query) Queries the given belief base for the given formula.voidSets 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 org.tweetyproject.logics.fol.reasoner.FolReasoner
getDefaultReasoner, setDefaultReasoner
-
Constructor Details
-
EFOLReasoner
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
Constructs a new instance pointing to a specific EProver.- Parameters:
binaryLocation- location of the Eprover executable on the hard drive
-
-
Method Details
-
setAdditionalArguments
Sets the additional arguments given to the call of the EProver binary (Default value is "--auto-schedule").- Parameters:
s- some string
-
getAdditionalArguments
Returns the additional arguments given to the call of the EProver binary (Default value is "--auto-schedule").- Returns:
- the additional arguments
-
query
Description copied from interface:ReasonerQueries the given belief base for the given formula.- Specified by:
queryin interfaceQualitativeReasoner<FolBeliefSet,FolFormula> - Specified by:
queryin interfaceReasoner<Boolean,FolBeliefSet, FolFormula> - Specified by:
queryin classFolReasoner- Parameters:
kb- a belief basequery- a formula- Returns:
- the answer to the query
-
equivalent
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
- Returns:
- the path of the EProver binary
-
setBinaryLocation
Changes the path of the EProver binary.- Parameters:
binaryLocation- the new path of the EProver binary
-
isInstalled
public boolean isInstalled()- Returns:
- if the solver is installed
-