Class SimpleAspicOrder<T extends Invertable>
java.lang.Object
org.tweetyproject.arg.aspic.semantics.SimpleAspicOrder<T>
- Type Parameters:
T
- is the type of the language that the ASPIC theory's rules range over
- All Implemented Interfaces:
Comparator<AspicArgument<T>>
public class SimpleAspicOrder<T extends Invertable>
extends Object
implements Comparator<AspicArgument<T>>
A simple comparator for Aspic Arguments, that compares their top rules according to a given list of rules
- Author:
- Nils Geilen
-
Constructor Summary
ConstructorDescriptionCreates a comparator for AspicArguments, that always returns 0SimpleAspicOrder
(Collection<String> rules) Creates a comparator for AspicArguments from a list of AspicInferneceRules This will return a value <0, ==0 or >0 if the first argument's top rule is <,=,> the second argument's top rule -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SimpleAspicOrder
public SimpleAspicOrder()Creates a comparator for AspicArguments, that always returns 0 -
SimpleAspicOrder
Creates a comparator for AspicArguments from a list of AspicInferneceRules This will return a value <0, ==0 or >0 if the first argument's top rule is <,=,> the second argument's top rule- Parameters:
rules
- list of rules, ordered by their value ascending
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T extends Invertable>
-
toString
-