|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.DefaultValueGlobalConstraint<T>
T - Parameter typepublic class DefaultValueGlobalConstraint<T extends Comparable<T>>
Global parameter constraint for specifying the default value of a parameter dependent on the parameter value of another parameter.
| Field Summary | |
|---|---|
private Parameter<? super T,T> |
hasValue
Parameter providing the value. |
private Parameter<? super T,T> |
needsValue
Parameter to be set. |
| Constructor Summary | |
|---|---|
DefaultValueGlobalConstraint(Parameter<? super T,T> needsValue,
Parameter<? super T,T> hasValue)
Creates a global parameter constraint for specifying the default value of a parameter dependent on the value of an another parameter. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns a description of this global constraint. |
void |
test()
Checks if the parameter providing the default value is already set, and if the two parameters have the same parameter type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Parameter<? super T extends Comparable<T>,T extends Comparable<T>> needsValue
private Parameter<? super T extends Comparable<T>,T extends Comparable<T>> hasValue
| Constructor Detail |
|---|
public DefaultValueGlobalConstraint(Parameter<? super T,T> needsValue,
Parameter<? super T,T> hasValue)
needsValue - the parameter whose default value is to be sethasValue - the parameter providing the value| Method Detail |
|---|
public void test()
throws ParameterException
test in interface GlobalParameterConstraintParameterException - if the parameters don't satisfy the parameter constraint.public String getDescription()
GlobalParameterConstraint
getDescription in interface GlobalParameterConstraint
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||