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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractMlReasonerReturns the default reasoner for modal logicabstract Booleanquery(MlBeliefSet beliefbase, FolFormula formula) Queries the given belief base with the provided formula and returns a boolean result.static voidsetDefaultReasoner(AbstractMlReasoner reasoner) Set default modal 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 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:QualitativeReasonerQueries 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:
queryin interfaceQualitativeReasoner<MlBeliefSet, FolFormula>- Specified by:
queryin 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.
-