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.util.Collection<Argument> undecided)
      • Interpretation

        public Interpretation​(java.lang.Iterable<Argument> undecided)
      • Interpretation

        public Interpretation​(java.util.Map<Argument,​java.lang.Boolean> 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:
        a copy of the set of satisfied arguments
      • satisfied

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

        public java.util.Set<Argument> getUnsatisfied()
        Returns:
        a copy of the set of unsatisfied arguments
      • unsatisfied

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

        public java.util.Set<Argument> getUndecided()
        Returns:
        a copy of the set of 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)
        TODO define functionality
        Parameters:
        a - some argument
        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.