T - type of variable being used in the search.public class MinLubCard<T extends SetVar> extends Object implements ComparatorVariable<T>
| Constructor and Description |
|---|
MinLubCard()
It constructs a minimum cardinality, of the least upper bound, variable comparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(float left,
T var)
Compares the cardinality of the variables lub to the float value.
|
int |
compare(T leftVar,
T rightVar)
Compares the cardinality of the variables lubs.
|
float |
metric(T var)
Returns the cardinality of the lub.
|
public MinLubCard()
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 variablepublic float metric(T var)
metric in interface ComparatorVariable<T extends SetVar>var - variable for which metric is computed.Copyright © 2016. All rights reserved.