Class SimplePlReasoner
java.lang.Object
org.tweetyproject.logics.pl.reasoner.AbstractPlReasoner
org.tweetyproject.logics.pl.reasoner.SimplePlReasoner
- All Implemented Interfaces:
KernelProvider<PlFormula>,QualitativeReasoner<PlBeliefSet,,PlFormula> Reasoner<Boolean,PlBeliefSet, PlFormula>
Naive classical inference (checks all interpretations for satisfiability).
- Author:
- Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the underlying solver or reasoning mechanism used by this reasoner is installed and available for use.query(PlBeliefSet beliefbase, PlFormula formula) Queries the given belief base with the provided formula and returns a boolean result.Methods inherited from class org.tweetyproject.logics.pl.reasoner.AbstractPlReasoner
getKernels, isEquivalent, query
-
Constructor Details
-
SimplePlReasoner
public SimplePlReasoner()Default Constructor
-
-
Method Details
-
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<PlBeliefSet,PlFormula> - Specified by:
queryin interfaceReasoner<Boolean,PlBeliefSet, PlFormula> - Specified by:
queryin classAbstractPlReasoner- 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.
-
isInstalled
public 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.
-