|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSHOP2.CompLess
public class CompLess
This class handles :sort-by
logical preconditions that use
numerical less than as the sorting function.
Field Summary | |
---|---|
private int |
varIdx
The index of the variable according to the value of which the satisfiers should be sorted. |
Constructor Summary | |
---|---|
CompLess(int varIdxIn)
To initialize this object. |
Method Summary | |
---|---|
int |
compare(Term[] t1,
Term[] t2)
The function that implements the actual comparison. |
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 |
Field Detail |
---|
private int varIdx
Constructor Detail |
---|
public CompLess(int varIdxIn)
varIdxIn
- The index of the variable according to the value of which the
satisfiers should be sorted.Method Detail |
---|
public int compare(Term[] t1, Term[] t2)
compare
in interface java.util.Comparator<Term[]>
t1
- the first binding.t2
- the second binding.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |