Package net.sf.tweety.arg.aspic.order
Class RuleComparator<T extends net.sf.tweety.logics.commons.syntax.interfaces.Invertable>
- java.lang.Object
-
- net.sf.tweety.arg.aspic.order.RuleComparator<T>
-
- Type Parameters:
T- is the type of the language that the ASPIC theory's rules range over
- All Implemented Interfaces:
Comparator<InferenceRule<T>>
public class RuleComparator<T extends net.sf.tweety.logics.commons.syntax.interfaces.Invertable> extends Object implements Comparator<InferenceRule<T>>
- Author:
- Nils Geilen A simple comparator, that compares inference rules
-
-
Constructor Summary
Constructors Constructor Description RuleComparator(List<String> rules)Constructs a new comparator for rules
-
Method Summary
Modifier and Type Method Description intcompare(InferenceRule<T> o1, InferenceRule<T> o2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(InferenceRule<T> o1, InferenceRule<T> o2)
- Specified by:
comparein interfaceComparator<T extends net.sf.tweety.logics.commons.syntax.interfaces.Invertable>
-
-