T
- is the type of the language that the ASPIC theory's rules range overpublic class SimpleAspicOrder<T extends Invertable> extends java.lang.Object implements java.util.Comparator<AspicArgument<T>>
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Comparator<InferenceRule<T>> |
rule_comp |
Constructor and Description |
---|
SimpleAspicOrder()
Creates a comparator for AspicArguments, that always returns 0
|
SimpleAspicOrder(java.util.List<java.lang.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
|
Modifier and Type | Method and Description |
---|---|
int |
compare(AspicArgument<T> a,
AspicArgument<T> b) |
java.lang.String |
toString() |
java.util.Comparator<InferenceRule<T extends Invertable>> rule_comp
public SimpleAspicOrder()
public SimpleAspicOrder(java.util.List<java.lang.String> rules)
rules
- list of rules, ordered by their value ascendingpublic int compare(AspicArgument<T> a, AspicArgument<T> b)
compare
in interface java.util.Comparator<AspicArgument<T extends Invertable>>
public java.lang.String toString()
toString
in class java.lang.Object