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 Summary
Constructors Constructor Description AbstractRpclSemantics()
-
Method Summary
Modifier and Type Method Description abstract Statement
getSatisfactionStatement(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.abstract boolean
satisfies(RpclProbabilityDistribution<?> p, RelationalProbabilisticConditional r)
Checks whether the given probability distribution satisfies the given conditional wrt.abstract java.lang.String
toString()
-
-
-
Method Detail
-
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
public abstract java.lang.String toString()
- Specified by:
toString
in interfaceRpclSemantics
- Overrides:
toString
in classjava.lang.Object
-
getSatisfactionStatement
public abstract Statement getSatisfactionStatement(RelationalProbabilisticConditional r, FolSignature signature, java.util.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.
-
-