Class 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 Details

    • CausalInterpretation

      public CausalInterpretation()
      Initializes a new empty causal interpretation
    • CausalInterpretation

      public CausalInterpretation(Collection<Proposition> formulas)
      Initializes a new causal interpretation
      Parameters:
      formulas - the set of proposition that are true in the interpretation
  • Method Details

    • satisfies

      public boolean satisfies(PlFormula formula) throws IllegalArgumentException
      Description copied from interface: Interpretation
      Checks 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

      public boolean satisfies(CausalKnowledgeBase beliefBase) throws IllegalArgumentException
      Description copied from interface: Interpretation
      Checks 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.