|
||||||||||
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.LessEqualGlobalConstraint<T>
T
- Number typepublic class LessEqualGlobalConstraint<T extends Number>
Represents a Less-Equal-Than global parameter constraint. The value of the
first number parameter (NumberParameter
) has to be less equal than
the value of the second number parameter (NumberParameter
).
Field Summary | |
---|---|
private NumberParameter<T> |
first
First number parameter. |
private NumberParameter<T> |
second
Second number parameter. |
Constructor Summary | |
---|---|
LessEqualGlobalConstraint(NumberParameter<T> first,
NumberParameter<T> second)
Creates a Less-Equal-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 equal 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 LessEqualGlobalConstraint(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 |