Class CausalInterpretation
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<CausalKnowledgeBase, PlFormula>
org.tweetyproject.commons.InterpretationSet<Proposition, CausalKnowledgeBase, PlFormula>
org.tweetyproject.causal.semantics.CausalInterpretation
- All Implemented Interfaces:
Iterable<Proposition>,Collection<Proposition>,Interpretation<CausalKnowledgeBase, PlFormula>
public class CausalInterpretation
extends InterpretationSet<Proposition, CausalKnowledgeBase, PlFormula>
Representation of a propositional interpretation of a causal knowledge base
- Author:
- Lars Bengel
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new empty causal interpretationCausalInterpretation(Collection<Proposition> formulas) Initializes a new causal interpretation -
Method Summary
Modifier and TypeMethodDescriptionbooleansatisfies(CausalKnowledgeBase beliefBase) Checks whether this interpretation satisfies the given knowledge base.booleanChecks whether this interpretation satisfies the given formula.Methods inherited from class org.tweetyproject.commons.InterpretationSet
add, add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfiesMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
CausalInterpretation
public CausalInterpretation()Initializes a new empty causal interpretation -
CausalInterpretation
Initializes a new causal interpretation- Parameters:
formulas- the set of proposition that are true in the interpretation
-
-
Method Details
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given formula.- Parameters:
formula- a formula .- Returns:
- "true" if this interpretation satisfies the given formula.
- Throws:
IllegalArgumentException- if the formula does not correspond to the expected language.
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given knowledge base.- Parameters:
beliefBase- a knowledge base.- Returns:
- "true" if this interpretation satisfies the given knowledge base.
- Throws:
IllegalArgumentException- IllegalArgumentException if the knowledgebase does not correspond to the expected language.
-