|
|
|||||||||||||||||||||
| 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.GlobalVectorListElementSizeConstraint
public class GlobalVectorListElementSizeConstraint
Global parameter constraint for testing if the dimensions of each vector specified by a
given vector list parameter (VectorListParameter)
correspond to the value of a integer parameter (IntParameter) given.
| Field Summary | |
|---|---|
private IntParameter |
size
Integer parameter providing the size constraint. |
private VectorListParameter |
vector
Vector list parameter. |
| Constructor Summary | |
|---|---|
GlobalVectorListElementSizeConstraint(VectorListParameter vector,
IntParameter sizeConstraint)
Constructs a global vector size constraint. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns a description of this global constraint. |
void |
test()
Checks if the dimensions of each vector of the vector list parameter have the appropriate size provided by the integer parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private VectorListParameter vector
private IntParameter size
| Constructor Detail |
|---|
public GlobalVectorListElementSizeConstraint(VectorListParameter vector,
IntParameter sizeConstraint)
vector - the vector list parametersizeConstraint - the integer parameter providing the size constraint| 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 | |||||||||||