|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.ParameterFlagGlobalConstraint<S,C>
C
- Constraint typeS
- Parameter typepublic class ParameterFlagGlobalConstraint<S,C extends S>
Global parameter constraint describing the dependency of a parameter (
Parameter
) on a given flag (Flag
). Depending on the status of
the flag the parameter is tested for keeping its constraints or not.
Field Summary | |
---|---|
private List<ParameterConstraint<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<S,C> |
param
Parameter possibly to be checked. |
Constructor Summary | |
---|---|
ParameterFlagGlobalConstraint(Parameter<S,C> p,
List<ParameterConstraint<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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Parameter<S,C extends S> param
private Flag flag
private boolean flagConstraint
private List<ParameterConstraint<S>> cons
Constructor Detail |
---|
public ParameterFlagGlobalConstraint(Parameter<S,C> p, List<ParameterConstraint<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 checkedMethod Detail |
---|
public 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
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |