Class RpclMeReasoner
- java.lang.Object
- 
- net.sf.tweety.logics.rpcl.reasoner.RpclMeReasoner
 
- 
- All Implemented Interfaces:
- ModelProvider<RelationalProbabilisticConditional,RpclBeliefSet,RpclProbabilityDistribution<?>>,- QuantitativeReasoner<RpclBeliefSet,FolFormula>,- Reasoner<java.lang.Double,RpclBeliefSet,FolFormula>
 
 public class RpclMeReasoner extends java.lang.Object implements QuantitativeReasoner<RpclBeliefSet,FolFormula>, ModelProvider<RelationalProbabilisticConditional,RpclBeliefSet,RpclProbabilityDistribution<?>> General ME-reasoner for RPCL.- Author:
- Matthias Thimm
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intLIFTED_INFERENCEInteger constant for lifted inference.static intSTANDARD_INFERENCEInteger constant for standard inference.
 - 
Constructor SummaryConstructors Constructor Description RpclMeReasoner(RpclSemantics semantics)Creates a new reasoner.RpclMeReasoner(RpclSemantics semantics, int inferenceType)Creates a new reasoner.
 - 
Method SummaryModifier and Type Method Description intgetInferenceType()Returns the inference type of this reasoner, i.e.RpclProbabilityDistribution<?>getModel(RpclBeliefSet bbase)Returns a single (dedicated) model of the given belief base.RpclProbabilityDistribution<?>getModel(RpclBeliefSet kb, FolSignature signature)Determines the ME distribution of the given knowlege base wrt.java.util.Collection<RpclProbabilityDistribution<?>>getModels(RpclBeliefSet bbase)Returns a characterizing model of the given belief basejava.lang.Doublequery(RpclBeliefSet beliefbase, FolFormula formula)Queries the given belief base for the given formula.java.lang.Doublequery(RpclBeliefSet beliefbase, FolFormula query, FolSignature signature)Queries the knowledge base wrt.
 
- 
- 
- 
Field Detail- 
STANDARD_INFERENCEpublic static final int STANDARD_INFERENCE Integer constant for standard inference.- See Also:
- Constant Field Values
 
 - 
LIFTED_INFERENCEpublic static final int LIFTED_INFERENCE Integer constant for lifted inference.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
RpclMeReasonerpublic RpclMeReasoner(RpclSemantics semantics, int inferenceType) Creates a new reasoner.- Parameters:
- semantics- the semantics for this reasoner.
- inferenceType- one of RpclMeReasoner.STANDARD_INFERENCE or RpclMeReasoner.LIFTED_INFERENCE
 
 - 
RpclMeReasonerpublic RpclMeReasoner(RpclSemantics semantics) Creates a new reasoner.- Parameters:
- semantics- the semantics for this reasoner.
 
 
- 
 - 
Method Detail- 
getInferenceTypepublic int getInferenceType() Returns the inference type of this reasoner, i.e. one of RpclMeReasoner.STANDARD_INFERENCE or RpclMeReasoner.LIFTED_INFERENCE- Returns:
- the inference type of this reasoner.
 
 - 
querypublic java.lang.Double query(RpclBeliefSet beliefbase, FolFormula query, FolSignature signature) Queries the knowledge base wrt. the given signature.- Parameters:
- beliefbase- some knowledge base
- query- some query
- signature- some signature.
- Returns:
- the answer to the query
 
 - 
querypublic java.lang.Double query(RpclBeliefSet beliefbase, FolFormula formula) Description copied from interface:ReasonerQueries the given belief base for the given formula.- Specified by:
- queryin interface- Reasoner<java.lang.Double,RpclBeliefSet,FolFormula>
- Parameters:
- beliefbase- a belief base
- formula- a formula
- Returns:
- the answer to the query
 
 - 
getModelspublic java.util.Collection<RpclProbabilityDistribution<?>> getModels(RpclBeliefSet bbase) Description copied from interface:ModelProviderReturns a characterizing model of the given belief base- Specified by:
- getModelsin interface- ModelProvider<RelationalProbabilisticConditional,RpclBeliefSet,RpclProbabilityDistribution<?>>
- Parameters:
- bbase- some belief base
- Returns:
- the (selected) models of the belief base
 
 - 
getModelpublic RpclProbabilityDistribution<?> getModel(RpclBeliefSet bbase) 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 interface- ModelProvider<RelationalProbabilisticConditional,RpclBeliefSet,RpclProbabilityDistribution<?>>
- Parameters:
- bbase- some belief base
- Returns:
- a selected model of the belief base.
 
 - 
getModelpublic RpclProbabilityDistribution<?> getModel(RpclBeliefSet kb, FolSignature signature) Determines the ME distribution of the given knowlege base wrt. the given signature.- Parameters:
- kb- an RPCL knowledge base
- signature- some signature
- Returns:
- the ME distribution of the knowledge base
 
 
- 
 
-