|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.ParameterFlagGlobalConstraint<C,T>
public class ParameterFlagGlobalConstraint<C,T extends C>
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<C>> |
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<T,C> |
param
Parameter possibly to be checked. |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug |
| Constructor Summary | |
|---|---|
ParameterFlagGlobalConstraint(Parameter<T,C> p,
List<ParameterConstraint<C>> 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 de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.logging.Loggable |
|---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, verbose, verbose, warning |
| Field Detail |
|---|
private Parameter<T extends C,C> param
private Flag flag
private boolean flagConstraint
private List<ParameterConstraint<C>> cons
| Constructor Detail |
|---|
public ParameterFlagGlobalConstraint(Parameter<T,C> p,
List<ParameterConstraint<C>> c,
Flag f,
boolean flagConstraint)
p - parameter possibly to be checkedc - a list of parameter constraintsf - flag controlling the checking of the parameter constraintsflagConstraint - indicates at which status of the flag the parameter is to be checked| Method Detail |
|---|
public void test()
throws ParameterException
test in interface GlobalParameterConstraintParameterException - if the parameters don't satisfy the parameter constraint.GlobalParameterConstraint.test()public String getDescription()
GlobalParameterConstraint
getDescription in interface GlobalParameterConstraintGlobalParameterConstraint.getDescription()
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||