Class AbstractRpclSemantics
java.lang.Object
org.tweetyproject.logics.rpcl.semantics.AbstractRpclSemantics
- All Implemented Interfaces:
RpclSemantics
- Direct Known Subclasses:
AggregatingSemantics
,AveragingSemantics
This class bundles common answering behaviour for
relational conditional semantics.
- Author:
- Matthias Thimm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Statement
getSatisfactionStatement
(RelationalProbabilisticConditional r, FolSignature signature, Map<Interpretation<FolBeliefSet, FolFormula>, FloatVariable> worlds2vars) Returns the mathematical statement corresponding to the satisfaction of the given conditional wrt.abstract boolean
Checks whether the given probability distribution satisfies the given conditional wrt.abstract String
toString()
-
Constructor Details
-
AbstractRpclSemantics
public AbstractRpclSemantics()
-
-
Method Details
-
satisfies
public abstract boolean satisfies(RpclProbabilityDistribution<?> p, RelationalProbabilisticConditional r) Description copied from interface:RpclSemantics
Checks whether the given probability distribution satisfies the given conditional wrt. this semantics.- Specified by:
satisfies
in interfaceRpclSemantics
- Parameters:
p
- a probability distributionr
- a relational probability conditional.- Returns:
- "true" iff the given distribution satisfies the given conditional.
-
toString
- Specified by:
toString
in interfaceRpclSemantics
- Overrides:
toString
in classObject
-
getSatisfactionStatement
public abstract Statement getSatisfactionStatement(RelationalProbabilisticConditional r, FolSignature signature, Map<Interpretation<FolBeliefSet, FolFormula>, FloatVariable> worlds2vars) Description copied from interface:RpclSemantics
Returns the mathematical statement corresponding to the satisfaction of the given conditional wrt. this semantics and the given signature.- Specified by:
getSatisfactionStatement
in interfaceRpclSemantics
- Parameters:
r
- a relational probabilistic conditionalsignature
- a fol signatureworlds2vars
- 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.
-