Class AbstractConditionalLogicReasoner
java.lang.Object
org.tweetyproject.logics.cl.reasoner.AbstractConditionalLogicReasoner
- All Implemented Interfaces:
ModelProvider<Conditional, ClBeliefSet, RankingFunction>,QualitativeReasoner<ClBeliefSet, PlFormula>,Reasoner<Boolean, ClBeliefSet, PlFormula>
- Direct Known Subclasses:
CReasoner,RuleBasedCReasoner,SimpleCReasoner,ZReasoner
public abstract class AbstractConditionalLogicReasoner
extends Object
implements QualitativeReasoner<ClBeliefSet, PlFormula>, ModelProvider<Conditional, ClBeliefSet, RankingFunction>
Abstract ancestor for all reasoner for conditional logic.
- Author:
- Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RankingFunctiongetModel(ClBeliefSet bbase) Returns a single (dedicated) model of the given belief base.getModels(ClBeliefSet bbase) Returns a characterizing model of the given belief basequery(ClBeliefSet beliefbase, PlFormula formula) Queries the given belief base with the provided formula and returns a boolean result.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tweetyproject.commons.QualitativeReasoner
isInstalled
-
Constructor Details
-
AbstractConditionalLogicReasoner
public AbstractConditionalLogicReasoner()Default
-
-
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<ClBeliefSet, PlFormula>- Specified by:
queryin interfaceReasoner<Boolean, ClBeliefSet, PlFormula>- 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.
-
getModels
Description copied from interface:ModelProviderReturns a characterizing model of the given belief base- Specified by:
getModelsin interfaceModelProvider<Conditional, ClBeliefSet, RankingFunction>- Parameters:
bbase- some belief base- Returns:
- the (selected) models of the belief base
-
getModel
Description copied from interface:ModelProviderReturns a single (dedicated) model of the given belief base. If the implemented method allows for more than one dedicated model, the selection may be non-deterministic.- Specified by:
getModelin interfaceModelProvider<Conditional, ClBeliefSet, RankingFunction>- Parameters:
bbase- some belief base- Returns:
- a selected model of the belief base.
-