Class NumericalArgumentRanking

  • All Implemented Interfaces:
    java.util.Comparator<Argument>, java.util.Map<Argument,​java.lang.Double>, Interpretation<DungTheory,​Argument>

    public class NumericalArgumentRanking
    extends ArgumentRanking
    implements java.util.Map<Argument,​java.lang.Double>
    This class provides a acceptability interpretation of arguments by assigning them real values where larger values indicate more acceptability.
    Matthias Thimm
    • Constructor Detail

      • NumericalArgumentRanking

        public NumericalArgumentRanking()
        Creates a new empty argument ranking
      • NumericalArgumentRanking

        public NumericalArgumentRanking​(java.util.Collection<Argument> args,
                                        double initialvalue)
        Creates a new argument ranking. All arguments given are assigned the given initial value.
        args - some set of arguments
        initialvalue - an initial value for all arguments
    • Method Detail

      • isStrictlyLessOrEquallyAcceptableThan

        public boolean isStrictlyLessOrEquallyAcceptableThan​(Argument a,
                                                             Argument b)
        Description copied from class: ArgumentRanking
        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)
        Specified by:
        isStrictlyLessOrEquallyAcceptableThan in class ArgumentRanking
        a - some argument
        b - some argument
        "true" iff a is strictly less acceptable than b or a is equally acceptable as b
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<Argument,​java.lang.Double>
      • containsKey

        public boolean containsKey​(java.lang.Object arg0)
        Specified by:
        containsKey in interface java.util.Map<Argument,​java.lang.Double>
      • containsValue

        public boolean containsValue​(java.lang.Object arg0)
        Specified by:
        containsValue in interface java.util.Map<Argument,​java.lang.Double>
      • entrySet

        public java.util.Set<java.util.Map.Entry<Argument,​java.lang.Double>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<Argument,​java.lang.Double>
      • get

        public java.lang.Double get​(java.lang.Object arg0)
        Specified by:
        get in interface java.util.Map<Argument,​java.lang.Double>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<Argument,​java.lang.Double>
      • keySet

        public java.util.Set<Argument> keySet()
        Specified by:
        keySet in interface java.util.Map<Argument,​java.lang.Double>
      • put

        public java.lang.Double put​(Argument arg0,
                                    java.lang.Double arg1)
        Specified by:
        put in interface java.util.Map<Argument,​java.lang.Double>
      • putAll

        public void putAll​(java.util.Map<? extends Argument,​? extends java.lang.Double> arg0)
        Specified by:
        putAll in interface java.util.Map<Argument,​java.lang.Double>
      • remove

        public java.lang.Double remove​(java.lang.Object arg0)
        Specified by:
        remove in interface java.util.Map<Argument,​java.lang.Double>
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<Argument,​java.lang.Double>
      • values

        public java.util.Collection<java.lang.Double> values()
        Specified by:
        values in interface java.util.Map<Argument,​java.lang.Double>
      • setSortingType

        public void setSortingType​(NumericalArgumentRanking.SortingType order)
        Set the sorting type for ranking values. For example, the "ascending" type means that smaller values signify a higher ranking than bigger values.
        order - TODO add description
      • isIncomparable

        public boolean isIncomparable​(Argument a,
                                      Argument b)
        Description copied from class: ArgumentRanking
        Returns "true" iff a and b are incomparable (i.e. this ranking is a partial ranking).
        Specified by:
        isIncomparable in class ArgumentRanking
        a - Argument
        b - Argument
        "true" iff a and b are incomparable
      • containsIncomparableArguments

        public boolean containsIncomparableArguments()
        Specified by:
        containsIncomparableArguments in class ArgumentRanking
        true if this ranking contains incomparable arguments, false otherwise