Class AbstractPclReasoner
- java.lang.Object
-
- net.sf.tweety.logics.pcl.reasoner.AbstractPclReasoner
-
- All Implemented Interfaces:
ModelProvider<ProbabilisticConditional,PclBeliefSet,ProbabilityDistribution<PossibleWorld>>
,QuantitativeReasoner<PclBeliefSet,PlFormula>
,Reasoner<java.lang.Double,PclBeliefSet,PlFormula>
- Direct Known Subclasses:
DefaultMeReasoner
,GeneralizedMeReasoner
public abstract class AbstractPclReasoner extends java.lang.Object implements QuantitativeReasoner<PclBeliefSet,PlFormula>, ModelProvider<ProbabilisticConditional,PclBeliefSet,ProbabilityDistribution<PossibleWorld>>
Abstract class for all PCL reasoners.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description AbstractPclReasoner()
-
Method Summary
Modifier and Type Method Description abstract ProbabilityDistribution<PossibleWorld>
getModel(PclBeliefSet beliefbase)
Returns a single (dedicated) model of the given belief base.abstract java.util.Collection<ProbabilityDistribution<PossibleWorld>>
getModels(PclBeliefSet bbase)
Returns a characterizing model of the given belief baseabstract java.lang.Double
query(PclBeliefSet beliefbase, PlFormula formula)
Queries the given belief base for the given formula.
-
-
-
Method Detail
-
query
public abstract java.lang.Double query(PclBeliefSet beliefbase, PlFormula formula)
Description copied from interface:Reasoner
Queries the given belief base for the given formula.- Specified by:
query
in interfaceReasoner<java.lang.Double,PclBeliefSet,PlFormula>
- Parameters:
beliefbase
- a belief baseformula
- a formula- Returns:
- the answer to the query
-
getModels
public abstract java.util.Collection<ProbabilityDistribution<PossibleWorld>> getModels(PclBeliefSet bbase)
Description copied from interface:ModelProvider
Returns a characterizing model of the given belief base- Specified by:
getModels
in interfaceModelProvider<ProbabilisticConditional,PclBeliefSet,ProbabilityDistribution<PossibleWorld>>
- Parameters:
bbase
- some belief base- Returns:
- the (selected) models of the belief base
-
getModel
public abstract ProbabilityDistribution<PossibleWorld> getModel(PclBeliefSet beliefbase)
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<ProbabilisticConditional,PclBeliefSet,ProbabilityDistribution<PossibleWorld>>
- Parameters:
beliefbase
- some belief base- Returns:
- a selected model of the belief base.
-
-