Class FolReasoner
java.lang.Object
org.tweetyproject.logics.fol.reasoner.FolReasoner
- All Implemented Interfaces:
QualitativeReasoner<FolBeliefSet,,FolFormula> Reasoner<Boolean,FolBeliefSet, FolFormula>
- Direct Known Subclasses:
EFOLReasoner,Prover9FolReasoner,SimpleFolReasoner,SpassFolReasoner
public abstract class FolReasoner
extends Object
implements QualitativeReasoner<FolBeliefSet,FolFormula>
Abstract FOL Prover to be implemented by concrete solvers.
- Author:
- Bastian Wolf, Nils Geilen, Matthias Thimm
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanequivalent(FolBeliefSet kb, FolFormula a, FolFormula b) This method determines whether two formulas are equivalent wrt.static FolReasonerReturns the default theorem proverabstract Booleanquery(FolBeliefSet beliefbase, FolFormula formula) Queries the given belief base for the given formula.static voidsetDefaultReasoner(FolReasoner reasoner) Set default reasoner with givenMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tweetyproject.commons.QualitativeReasoner
isInstalled
-
Field Details
-
defaultReasoner
Empty default reasoner
-
-
Constructor Details
-
FolReasoner
public FolReasoner()
-
-
Method Details
-
setDefaultReasoner
Set default reasoner with given- Parameters:
reasoner- a FolReasoner
-
getDefaultReasoner
Returns the default theorem prover- Returns:
- the default theorem prover
-
equivalent
This method determines whether two formulas are equivalent wrt. to the given knowledge base.- Parameters:
kb- the knowledge basea- the first formula.b- the second formula.- Returns:
- the answer to the query.
-
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> - Parameters:
beliefbase- a belief baseformula- a formula- Returns:
- the answer to the query
-