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 Summary
Fields inherited from class org.tweetyproject.logics.ml.reasoner.AbstractMlReasoner
defaultReasoner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanquery(MlBeliefSet mbs, FolFormula formula) Queries the given belief base for the given formula.Methods inherited from class org.tweetyproject.logics.ml.reasoner.AbstractMlReasoner
getDefaultReasoner, setDefaultReasoner
-
Constructor Details
-
SimpleMlReasoner
public SimpleMlReasoner()
-
-
Method Details
-
query
Description copied from interface:ReasonerQueries the given belief base for the given formula.- Specified by:
queryin interfaceQualitativeReasoner<MlBeliefSet,FolFormula> - Specified by:
queryin interfaceReasoner<Boolean,MlBeliefSet, FolFormula> - Specified by:
queryin classAbstractMlReasoner- Parameters:
mbs- a belief baseformula- a formula- Returns:
- the answer to the query
-
isInstalled
public boolean isInstalled()- Returns:
- if the solver is installed
-