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 boolean
equivalent
(FolBeliefSet kb, FolFormula a, FolFormula b) This method determines whether two formulas are equivalent wrt.static FolReasoner
Returns the default theorem proverabstract Boolean
query
(FolBeliefSet beliefbase, FolFormula formula) Queries the given belief base for the given formula.static void
setDefaultReasoner
(FolReasoner reasoner) Set default reasoner with givenMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Reasoner
Queries the given belief base for the given formula.- Specified by:
query
in interfaceQualitativeReasoner<FolBeliefSet,
FolFormula> - Specified by:
query
in interfaceReasoner<Boolean,
FolBeliefSet, FolFormula> - Parameters:
beliefbase
- a belief baseformula
- a formula- Returns:
- the answer to the query
-