public class GlobalVectorListElementSizeConstraint extends Object implements GlobalParameterConstraint
VectorListParameter
)
correspond to the value of a integer parameter (IntParameter
) given.Modifier and Type | Field and Description |
---|---|
private IntParameter |
size
Integer parameter providing the size constraint.
|
private VectorListParameter |
vector
Vector list parameter.
|
Constructor and Description |
---|
GlobalVectorListElementSizeConstraint(VectorListParameter vector,
IntParameter sizeConstraint)
Constructs a global vector size constraint.
|
Modifier and Type | Method and Description |
---|---|
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.
|
private VectorListParameter vector
private IntParameter size
public GlobalVectorListElementSizeConstraint(VectorListParameter vector, IntParameter sizeConstraint)
vector
- the vector list parametersizeConstraint
- the integer parameter providing the size constraintpublic 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