|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.set.search.MaxGlbCard<T>
T - type of variable being used in the search.public class MaxGlbCard<T extends SetVar>
Defines a maximum cardinality, of the greatest lowest bound, variable comparator. The variable with the maximum cardinality for the greatest lower bound has the priority.
| Constructor Summary | |
|---|---|
MaxGlbCard()
It constructs a maximum cardinality, of the greatest lowest bound, variable comparator. |
|
| Method Summary | |
|---|---|
int |
compare(float left,
T var)
Compares the cardinality of the variables glb to the float value. |
int |
compare(T leftVar,
T rightVar)
Compares the cardinality of the variables glbs. |
float |
metric(T var)
Returns the cardinality of the glb. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaxGlbCard()
| Method Detail |
|---|
public int compare(float left,
T var)
compare in interface ComparatorVariable<T extends SetVar>left - the baseline for comparison.var - variable which is compared to baseline.
public int compare(T leftVar,
T rightVar)
compare in interface ComparatorVariable<T extends SetVar>leftVar - left variablerightVar - right variable
public float metric(T var)
metric in interface ComparatorVariable<T extends SetVar>var - variable for which metric is computed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||