Class ArgumentRanking

    • Constructor Detail

      • ArgumentRanking

        public ArgumentRanking()
    • Method Detail

      • compare

        public int compare​(Argument arg0,
                           Argument arg1)
        Specified by:
        compare in interface java.util.Comparator<Argument>
      • isStrictlyMoreAcceptableThan

        public boolean isStrictlyMoreAcceptableThan​(Argument a,
                                                    Argument b)
        Returns "true" iff a is strictly more acceptable than b, i.e. a < b (least arguments are maximally acceptable arguments)
        Parameters:
        a - some argument
        b - some argument
        Returns:
        "true" iff a is strictly more acceptable than b
      • isStrictlyLessAcceptableThan

        public boolean isStrictlyLessAcceptableThan​(Argument a,
                                                    Argument b)
        Returns "true" iff a is strictly less acceptable than b, i.e. a > b (least arguments are maximally acceptable arguments)
        Parameters:
        a - some argument
        b - some argument
        Returns:
        "true" iff a is strictly less acceptable than b
      • isStrictlyMoreOrEquallyAcceptableThan

        public boolean isStrictlyMoreOrEquallyAcceptableThan​(Argument a,
                                                             Argument b)
        Returns "true" iff a is strictly more acceptable than b or a is equally acceptable as b, i.e. a <= b (or a ~ b) (least arguments are maximally acceptable arguments)
        Parameters:
        a - some argument
        b - some argument
        Returns:
        "true" iff a is strictly more acceptable than b or a is equally acceptable as b, "false" otherwise or if a and b are incomparable
      • isEquallyAcceptableThan

        public boolean isEquallyAcceptableThan​(Argument a,
                                               Argument b)
        Returns "true" iff a is equally acceptable as b, i.e. a = b (or a ~ b) (least arguments are maximally acceptable arguments)
        Parameters:
        a - some argument
        b - some argument
        Returns:
        "true" iff a is equally acceptable as b, "false" otherwise or if a and b are incomparable
      • getMaximallyAcceptedArguments

        public java.util.Collection<Argument> getMaximallyAcceptedArguments​(java.util.Collection<Argument> args)
        Returns the set of all arguments a from the given set that are maximally accepted, i.e. where there is no other argument that is strictly more acceptable.
        Parameters:
        args - a set of arguments
        Returns:
        the set of all arguments a that are maximally accepted
      • getMinimallyAcceptedArguments

        public java.util.Collection<Argument> getMinimallyAcceptedArguments​(java.util.Collection<Argument> args)
        Returns the set of all arguments a from the given set that are minimally accepted, i.e. where there is no other argument that is strictly less acceptable.
        Parameters:
        args - a set of arguments
        Returns:
        the set of all arguments a that are minimalle accepted
      • isEquivalent

        public boolean isEquivalent​(ArgumentRanking other,
                                    java.util.Collection<Argument> args)
        Checks whether this ranking is equivalent to the other one wrt. the given set of arguments.
        Parameters:
        other - some ranking
        args - some arguments
        Returns:
        "true" if both rankings are equivalent.
      • isStrictlyLessOrEquallyAcceptableThan

        public abstract boolean isStrictlyLessOrEquallyAcceptableThan​(Argument a,
                                                                      Argument b)
        Returns "true" iff a is strictly less acceptable than b or a is equally acceptable as b or a and b are not comparable, i.e. a >= b (or a ~ b) (least arguments are maximally acceptable arguments)
        Parameters:
        a - some argument
        b - some argument
        Returns:
        "true" iff a is strictly less acceptable than b or a is equally acceptable as b
      • isIncomparable

        public abstract boolean isIncomparable​(Argument a,
                                               Argument b)
        Returns "true" iff a and b are incomparable (i.e. this ranking is a partial ranking).
        Parameters:
        a - Argument
        b - Argument
        Returns:
        "true" iff a and b are incomparable
      • containsIncomparableArguments

        public abstract boolean containsIncomparableArguments()
        Returns:
        true if this ranking contains incomparable arguments, false otherwise