Class SimpleMlReasoner
java.lang.Object
org.tweetyproject.logics.ml.reasoner.AbstractMlReasoner
org.tweetyproject.logics.ml.reasoner.SimpleMlReasoner
- All Implemented Interfaces:
- QualitativeReasoner<MlBeliefSet,,- FolFormula> - Reasoner<Boolean,- MlBeliefSet, - FolFormula> 
This class implements inference for modal logic using a brute-force approach.
 A query, i.e. a formula in modal logic, can be inferred by a knowledge base,
 iff every Kripke model of the knowledge base is also a Kripke model of the query.
- Author:
- Anna Gessler, Matthias Thimm
- 
Field SummaryFields inherited from class org.tweetyproject.logics.ml.reasoner.AbstractMlReasonerdefaultReasoner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanChecks whether the underlying solver or reasoning mechanism used by this reasoner is installed and available for use.query(MlBeliefSet mbs, FolFormula formula) Queries the given belief base with the provided formula and returns a boolean result.Methods inherited from class org.tweetyproject.logics.ml.reasoner.AbstractMlReasonergetDefaultReasoner, setDefaultReasoner
- 
Constructor Details- 
SimpleMlReasonerpublic SimpleMlReasoner()Default Constructor
 
- 
- 
Method Details- 
queryDescription 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 interface- QualitativeReasoner<MlBeliefSet,- FolFormula> 
- Specified by:
- queryin interface- Reasoner<Boolean,- MlBeliefSet, - FolFormula> 
- Specified by:
- queryin class- AbstractMlReasoner
- Parameters:
- mbs- 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.
 
- 
isInstalledpublic boolean isInstalled()Description copied from interface:QualitativeReasonerChecks whether the underlying solver or reasoning mechanism used by this reasoner is installed and available for use. This can be helpful when the reasoner depends on external tools or libraries for performing the reasoning tasks.- Returns:
- `true` if the solver is installed and available, `false` otherwise.
 
 
-