Class AbstractMlReasoner
java.lang.Object
org.tweetyproject.logics.ml.reasoner.AbstractMlReasoner
- All Implemented Interfaces:
QualitativeReasoner<MlBeliefSet,
,FolFormula> Reasoner<Boolean,
MlBeliefSet, FolFormula>
- Direct Known Subclasses:
MleanCoPReasoner
,SimpleMlReasoner
,SPASSMlReasoner
public abstract class AbstractMlReasoner
extends Object
implements QualitativeReasoner<MlBeliefSet,FolFormula>
Abstract modal reasoner to be implemented by concrete reasoners.
- Author:
- Bastian Wolf, Nils Geilen, Anna Gessler, Matthias Thimm
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractMlReasoner
Returns the default reasoner for modal logicabstract Boolean
query
(MlBeliefSet beliefbase, FolFormula formula) Queries the given belief base with the provided formula and returns a boolean result.static void
setDefaultReasoner
(AbstractMlReasoner reasoner) Set default modal 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 prover
-
-
Constructor Details
-
AbstractMlReasoner
public AbstractMlReasoner()Default Constructor
-
-
Method Details
-
setDefaultReasoner
Set default modal reasoner with given- Parameters:
reasoner
- an ML Reasoner
-
getDefaultReasoner
Returns the default reasoner for modal logic- Returns:
- the default modal reasoner
-
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<MlBeliefSet,
FolFormula> - Specified by:
query
in interfaceReasoner<Boolean,
MlBeliefSet, 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.
-