Class RpclBeliefSet
java.lang.Object
org.tweetyproject.commons.BeliefSet<RelationalProbabilisticConditional,FolSignature>
 
org.tweetyproject.logics.rpcl.syntax.RpclBeliefSet
- All Implemented Interfaces:
- Iterable<RelationalProbabilisticConditional>,- Collection<RelationalProbabilisticConditional>,- BeliefBase
This class models a belief set on relational probabilistic conditional logic, i.e. a set of
 relational probabilistic conditionals.
- Author:
- Matthias Thimm
- 
Field SummaryFields inherited from class org.tweetyproject.commons.BeliefSetEQUALS_USES_SIGNATURE
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new (empty) conditional belief set.RpclBeliefSet(Collection<? extends RelationalProbabilisticConditional> conditionals) Creates a new conditional belief set with the given collection of conditionals.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanareEquivalent(Constant a, Constant b) Checks whether the two given constants are equivalent wrt.Exchanges every occurence of "a" by "b" and vice versa.Determines the equivalence classes of this belief set, i.e.getEquivalenceClasses(FolSignature signature) Determines the equivalence classes of this belief set wrt.Returns the signature of the language of this knowledge base.Methods inherited from class org.tweetyproject.commons.BeliefSetadd, add, addAll, clear, contains, containsAll, equals, getSignature, hashCode, isEmpty, iterator, remove, removeAll, retainAll, setSignature, size, toArray, toArray, toString, toStringMethods inherited from interface java.util.CollectionparallelStream, removeIf, spliterator, stream, toArray
- 
Constructor Details- 
RpclBeliefSetpublic RpclBeliefSet()Creates a new (empty) conditional belief set.
- 
RpclBeliefSetCreates a new conditional belief set with the given collection of conditionals.- Parameters:
- conditionals- a collection of conditionals.
 
 
- 
- 
Method Details- 
getEquivalenceClassesDetermines the equivalence classes of this belief set wrt. the given signature (which must be a super signature of this set's signature), i.e. all sets S of constants such that if one replaces one element of S with another one from S and vice versa the belief set remains the same.- Parameters:
- signature- a fol signature (which must be a super signature of this set's signature)
- Returns:
- a set of sets of constants.
 
- 
getEquivalenceClasses
- 
areEquivalentChecks whether the two given constants are equivalent wrt. this knowledge base. Two constants are equivalent if replacing each occurence of one constant with the other does not alter the belief set.- Parameters:
- a- a constant
- b- a constant
- Returns:
- "true" if both constants are equivalent
 
- 
exchangeExchanges every occurence of "a" by "b" and vice versa.- Parameters:
- a- a term.
- b- a term.
- Returns:
- a belief set with "a" and "b" exchanged.
 
- 
getMinimalSignatureDescription copied from interface:BeliefBaseReturns the signature of the language of this knowledge base.- Returns:
- the signature of the language of this knowledge base.
 
 
-