de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints
Class LessConstraint
java.lang.Object
  
de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.AbstractNumberConstraint<Number>
      
de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.LessConstraint
- All Implemented Interfaces: 
 - ParameterConstraint<Number>
 
public class LessConstraint
- extends AbstractNumberConstraint<Number>
 
Represents a Less-Than-Number parameter constraint. The value of the
 number parameter (NumberParameter) tested has to be less than the specified constraint value.
- Author:
 
  - Steffi Wanka
 
 
 
| 
Constructor Summary | 
LessConstraint(Number constraintValue)
 
          Creates a Less-Than-Number parameter constraint. | 
 
| 
Method Summary | 
 String | 
getDescription(String parameterName)
 
          Returns a description of this constraint. | 
 void | 
test(Number t)
 
          Checks if the number value given by the number parameter is less than the constraint value. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
LessConstraint
public LessConstraint(Number constraintValue)
- Creates a Less-Than-Number parameter constraint.
 
 That is, the value of the number
 parameter tested has to be less than the constraint value given.
- Parameters:
 constraintValue - the constraint value
 
test
public void test(Number t)
          throws ParameterException
- Checks if the number value given by the number parameter is less than the constraint value.
 If not, a parameter exception is thrown.
- Parameters:
 t - Value to be checked whether or not it fulfills the underlying
          parameter constraint.
- Throws:
 ParameterException - if the parameter to be tested does not
                            fulfill the parameter constraint
 
 
getDescription
public String getDescription(String parameterName)
- Description copied from interface: 
ParameterConstraint 
- Returns a description of this constraint.
- Parameters:
 parameterName - the name of the parameter this constraint is used for
- Returns:
 - a description of this constraint