Class Interpretation

    • Field Detail

      • satisfied

        private java.util.Set<Argument> satisfied
      • unsatisfied

        private java.util.Set<Argument> unsatisfied
      • undecided

        private java.util.Set<Argument> undecided
    • Constructor Detail

      • Interpretation

        public Interpretation​(java.lang.Iterable<Argument> undecided)
        Creates a new empty interpretation, hence where all arguments are undecided.
        Parameters:
        undecided -
      • Interpretation

        public Interpretation​(java.util.Map<Argument,​java.lang.Boolean> assignments)
        Creates an interpretation based on the given mapping.

        An argument becomes:

        • satisfied iff it is mapped to true
        • unsatisfied iff it is mapped to false
        • undecided iff it is mapped to null
        Parameters:
        assignments -
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • satisfies

        public boolean satisfies​(Argument formula)
                          throws java.lang.IllegalArgumentException
        Description copied from interface: Interpretation
        Checks whether this interpretation satisfies the given formula.
        Specified by:
        satisfies in interface Interpretation<AbstractDialecticalFramework,​Argument>
        Parameters:
        formula - a formula .
        Returns:
        "true" if this interpretation satisfies the given formula.
        Throws:
        java.lang.IllegalArgumentException - if the formula does not correspond to the expected language.
      • satisfies

        public boolean satisfies​(AbstractDialecticalFramework beliefBase)
                          throws java.lang.IllegalArgumentException
        Description copied from interface: Interpretation
        Checks whether this interpretation satisfies the given knowledge base.
        Specified by:
        satisfies in interface Interpretation<AbstractDialecticalFramework,​Argument>
        Parameters:
        beliefBase - a knowledge base.
        Returns:
        "true" if this interpretation satisfies the given knowledge base.
        Throws:
        java.lang.IllegalArgumentException - IllegalArgumentException if the knowledgebase does not correspond to the expected language.
      • arguments

        public java.util.stream.Stream<Argument> arguments()
        Returns:
        an unmodifiable set of all the arguments labeled by this interpretation
      • getSatisfied

        public java.util.Set<Argument> getSatisfied()
        Returns:
        an unmodifiable view of the satisfied arguments
      • satisfied

        public java.util.stream.Stream<Argument> satisfied()
      • getUnsatisfied

        public java.util.Set<Argument> getUnsatisfied()
        Returns:
        an unmodifiable view of the unsatisfied arguments
      • unsatisfied

        public java.util.stream.Stream<Argument> unsatisfied()
      • getUndecided

        public java.util.Set<Argument> getUndecided()
        Returns:
        an unmodifiable view of the undecided arguments
      • undecided

        public java.util.stream.Stream<Argument> undecided()
      • size

        public int size()
      • isSatisfied

        public boolean isSatisfied​(Argument a)
      • isUnsatisfied

        public boolean isUnsatisfied​(Argument a)
      • isUndecided

        public boolean isUndecided​(Argument a)
      • contains

        public boolean contains​(Argument a)
      • get

        public java.lang.Boolean get​(Argument a)
        Parameters:
        a - the argument for which we want to know its value
        Returns:
        true, false or null if this argument is labeled as satisfied, unsatisfied or undecided.
        Throws:
        java.lang.IllegalArgumentException - if the interpretation does not contain the given argument.
      • iterator

        public java.util.Iterator<Argument> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Argument>