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
-
Constructor Summary
-
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 with the provided formula and returns a boolean result.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()Deafult
-
-
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:QualitativeReasoner
Queries the given belief base with the provided formula and returns a boolean result. The result indicates whether the formula is entailed or satisfied by the belief base according to the qualitative reasoning method implemented by the reasoner.- Specified by:
query
in interfaceQualitativeReasoner<FolBeliefSet,
FolFormula> - Specified by:
query
in interfaceReasoner<Boolean,
FolBeliefSet, FolFormula> - Parameters:
beliefbase
- The belief base to be queried.formula
- The formula for which the query is made.- Returns:
- `TRUE` if the formula is entailed or satisfied by the belief base, `FALSE` otherwise.
-