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
-
Method Summary
Modifier and TypeMethodDescriptionabstract RankingFunction
getModel
(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, wait
Methods inherited from interface org.tweetyproject.commons.QualitativeReasoner
isInstalled
-
Constructor Details
-
AbstractConditionalLogicReasoner
public AbstractConditionalLogicReasoner()Default
-
-
Method Details
-
query
Description copied from interface:QualitativeReasoner
Queries 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:
query
in interfaceQualitativeReasoner<ClBeliefSet,
PlFormula> - Specified by:
query
in 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:ModelProvider
Returns a characterizing model of the given belief base- Specified by:
getModels
in interfaceModelProvider<Conditional,
ClBeliefSet, RankingFunction> - Parameters:
bbase
- some belief base- Returns:
- the (selected) models of the belief base
-
getModel
Description copied from interface:ModelProvider
Returns 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:
getModel
in interfaceModelProvider<Conditional,
ClBeliefSet, RankingFunction> - Parameters:
bbase
- some belief base- Returns:
- a selected model of the belief base.
-