|
|
|||||||||||||||||||||
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<T,?> |
hasValue
Parameter providing the value. |
private Parameter<T,?> |
needsValue
Parameter to be set. |
Constructor Summary | |
---|---|
DefaultValueGlobalConstraint(Parameter<T,?> needsValue,
Parameter<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<T extends Comparable<T>,?> needsValue
private Parameter<T extends Comparable<T>,?> hasValue
Constructor Detail |
---|
public DefaultValueGlobalConstraint(Parameter<T,?> needsValue, Parameter<T,?> hasValue)
needsValue
- the parameter whose default value is to be sethasValue
- the parameter providing the valueMethod Detail |
---|
public void test() throws ParameterException
test
in interface GlobalParameterConstraint
ParameterException
- 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 |