S
- Parameter typepublic class ParameterFlagGlobalConstraint<S> extends Object implements GlobalParameterConstraint
AbstractParameter
) on a given flag (Flag
). Depending on the
status of the flag the parameter is tested for keeping its constraints or
not.Modifier and Type | Field and Description |
---|---|
private List<? extends ParameterConstraint<? super S>> |
cons
List of parameter constraints.
|
private Flag |
flag
Flag the checking of the parameter constraints is dependent on.
|
private boolean |
flagConstraint
Indicates at which status of the flag the parameter is to be checked.
|
private Parameter<? extends S> |
param
Parameter possibly to be checked.
|
Constructor and Description |
---|
ParameterFlagGlobalConstraint(Parameter<? extends S> p,
List<? extends ParameterConstraint<? super S>> c,
Flag f,
boolean flagConstraint)
Constructs a global parameter constraint specifying that the testing of the
parameter given for keeping the parameter constraints given is dependent on
the status of the flag given.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of this global constraint.
|
void |
test()
Checks the parameter for its parameter constraints dependent on the status
of the given flag.
|
private Flag flag
private boolean flagConstraint
private List<? extends ParameterConstraint<? super S>> cons
public ParameterFlagGlobalConstraint(Parameter<? extends S> p, List<? extends ParameterConstraint<? super S>> c, Flag f, boolean flagConstraint)
p
- parameter possibly to be checkedc
- a list of parameter constraints, if the value is null, the
parameter is just tested if it is set.f
- flag controlling the checking of the parameter constraintsflagConstraint
- indicates at which status of the flag the parameter
is to be checkedpublic 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
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.