|
|
|||||||||||||||||||||
| 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.GlobalListSizeConstraint
public class GlobalListSizeConstraint
Represents a global parameter constraint for testing if the size of
the list parameter (ListParameter) given is equal to the constraint size
specified by the integer parameter (IntParameter) given.
| Field Summary | |
|---|---|
private IntParameter |
length
Integer parameter specifying the constraint list size. |
private ListParameter<?> |
list
List parameter to be tested. |
| Constructor Summary | |
|---|---|
GlobalListSizeConstraint(ListParameter<?> v,
IntParameter i)
Creates a List-Size global parameter constraint. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns a description of this global constraint. |
void |
test()
Checks is the size of the list parameter is equal to the constraint list size specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ListParameter<?> list
private IntParameter length
| Constructor Detail |
|---|
public GlobalListSizeConstraint(ListParameter<?> v,
IntParameter i)
v - the list parameter to be tested.i - integer parameter specifying the constraint list size.| 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 | |||||||||||