|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.LessGlobalConstraint<T>
T
- Number typepublic class LessGlobalConstraint<T extends Number>
Represents a Less-Than global parameter constraint. The value of the first
number parameter (NumberParameter
) given has to be less than the
value of the second number parameter (NumberParameter
) given.
Field Summary | |
---|---|
private NumberParameter<T> |
first
First number parameter. |
private NumberParameter<T> |
second
Second number parameter. |
Constructor Summary | |
---|---|
LessGlobalConstraint(NumberParameter<T> first,
NumberParameter<T> second)
Creates a Less-Than global parameter constraint. |
Method Summary | |
---|---|
String |
getDescription()
Returns a description of this global constraint. |
void |
test()
Checks if the value of the first number parameter is less than the value of the second number parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private NumberParameter<T extends Number> first
private NumberParameter<T extends Number> second
Constructor Detail |
---|
public LessGlobalConstraint(NumberParameter<T> first, NumberParameter<T> second)
first
- first number parametersecond
- second number parameterMethod 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 |