Class AbstractRpclSemantics
- java.lang.Object
- 
- net.sf.tweety.logics.rpcl.semantics.AbstractRpclSemantics
 
- 
- All Implemented Interfaces:
- RpclSemantics
 - Direct Known Subclasses:
- AggregatingSemantics,- AveragingSemantics
 
 public abstract class AbstractRpclSemantics extends java.lang.Object implements RpclSemantics This class bundles common answering behaviour for relational conditional semantics.- Author:
- Matthias Thimm
 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractRpclSemantics()
 - 
Method SummaryModifier and Type Method Description abstract StatementgetSatisfactionStatement(RelationalProbabilisticConditional r, FolSignature signature, java.util.Map<Interpretation<FolBeliefSet,FolFormula>,FloatVariable> worlds2vars)Returns the mathematical statement corresponding to the satisfaction of the given conditional wrt.protected TermprobabilityTerm(FolFormula f, java.util.Map<Interpretation<FolBeliefSet,FolFormula>,FloatVariable> worlds2vars)Constructs the term expressing the probability of the given formula "f" wrt.abstract booleansatisfies(RpclProbabilityDistribution<?> p, RelationalProbabilisticConditional r)Checks whether the given probability distribution satisfies the given conditional wrt.protected booleansatisfiesGroundConditional(RpclProbabilityDistribution<?> p, RelationalProbabilisticConditional groundConditional)Checks whether the given ground conditional is satisfied by the given distribution wrt.abstract java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
satisfiespublic abstract boolean satisfies(RpclProbabilityDistribution<?> p, RelationalProbabilisticConditional r) Description copied from interface:RpclSemanticsChecks whether the given probability distribution satisfies the given conditional wrt. this semantics.- Specified by:
- satisfiesin interface- RpclSemantics
- Parameters:
- p- a probability distribution
- r- a relational probability conditional.
- Returns:
- "true" iff the given distribution satisfies the given conditional.
 
 - 
toStringpublic abstract java.lang.String toString() - Specified by:
- toStringin interface- RpclSemantics
- Overrides:
- toStringin class- java.lang.Object
 
 - 
getSatisfactionStatementpublic abstract Statement getSatisfactionStatement(RelationalProbabilisticConditional r, FolSignature signature, java.util.Map<Interpretation<FolBeliefSet,FolFormula>,FloatVariable> worlds2vars) Description copied from interface:RpclSemanticsReturns the mathematical statement corresponding to the satisfaction of the given conditional wrt. this semantics and the given signature.- Specified by:
- getSatisfactionStatementin interface- RpclSemantics
- Parameters:
- r- a relational probabilistic conditional
- signature- a fol signature
- worlds2vars- a map mapping the interpretations of the fol to mathematical variables.
- Returns:
- the mathematical statement corresponding to the satisfaction of the given conditional wrt. this semantics and the given signature.
 
 - 
satisfiesGroundConditionalprotected boolean satisfiesGroundConditional(RpclProbabilityDistribution<?> p, RelationalProbabilisticConditional groundConditional) Checks whether the given ground conditional is satisfied by the given distribution wrt. this semantics. For every rational semantics this satisfaction relation should coincide with the propositional case.- Parameters:
- p- a probability distribution.
- groundConditional- a ground conditional
- Returns:
- "true" iff the given ground conditional is satisfied by the given distribution wrt. this semantics
 
 - 
probabilityTermprotected Term probabilityTerm(FolFormula f, java.util.Map<Interpretation<FolBeliefSet,FolFormula>,FloatVariable> worlds2vars) Constructs the term expressing the probability of the given formula "f" wrt. to the variables (describing probabilities) of the reference worlds.- Parameters:
- f- a fol formula
- worlds2vars- a map mapping reference worlds to variables.
- Returns:
- the term expressing the probability of the given formula "f".
 
 
- 
 
-