
public class AllOrNoneMustBeSetGlobalConstraint extends Object implements GlobalParameterConstraint
Parameter) must be set, or none of them.| Modifier and Type | Field and Description |
|---|---|
private Parameter<?>[] |
parameterList
List of parameters to be checked
|
| Constructor and Description |
|---|
AllOrNoneMustBeSetGlobalConstraint(Parameter<?>... parameters)
Constructs a global parameter constraint for testing if either all elements
of a list of parameters are set or none of them.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns a description of this global constraint.
|
void |
test()
Checks if either all elements of a list of parameters are set, or none of
them.
|
private Parameter<?>[] parameterList
public AllOrNoneMustBeSetGlobalConstraint(Parameter<?>... parameters)
parameters - list of parameters to be checkedpublic void test()
throws ParameterException
test in interface GlobalParameterConstraintParameterException - if the parameters don't satisfy the parameter constraint.public String getDescription()
GlobalParameterConstraintgetDescription in interface GlobalParameterConstraintCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.