|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.search.SmallestMin<T>
T - type of variable being used in the search.public class SmallestMin<T extends IntVar>
Defines a SmallestMin comparator for variables. It prefers variables which have smaller minimal value in their domain.
| Constructor Summary | |
|---|---|
SmallestMin()
It constructs SmallestMin Comparator. |
|
| Method Summary | |
|---|---|
int |
compare(float left,
T var)
It compares the baseline metric to the variable metric. |
int |
compare(T leftVar,
T rightVar)
It compares the metric of the left variable against the right one. |
float |
metric(T o)
It returns the metric of the variable given according to the comparator. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmallestMin()
| Method Detail |
|---|
public int compare(float left,
T var)
ComparatorVariable
compare in interface ComparatorVariable<T extends IntVar>left - the baseline for comparison.var - variable which is compared to baseline.
public int compare(T leftVar,
T rightVar)
ComparatorVariable
compare in interface ComparatorVariable<T extends IntVar>leftVar - left variablerightVar - right variable
public float metric(T o)
ComparatorVariable
metric in interface ComparatorVariable<T extends IntVar>o - variable for which metric is computed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||