|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.utilities.optionhandling.parameterization.UnParameterization
public class UnParameterization
Parameterization handler that doesn't set any parameters. This is mostly useful for documentation purposes, listing all parameters in a non-recursive way.
| Field Summary | |
|---|---|
(package private) Vector<ParameterException> |
errors
Errors |
| Constructor Summary | |
|---|---|
UnParameterization()
|
|
| Method Summary | |
|---|---|
boolean |
checkConstraint(GlobalParameterConstraint constraint)
Check a parameter constraint. |
Parameterization |
descend(Parameter<?,?> option)
Descend parameterization tree into sub-option. |
Collection<ParameterException> |
getErrors()
Get the configuration errors thrown in Parameterization.grab(de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter, ?>) |
boolean |
grab(Parameter<?,?> opt)
Get the option value from the Parameterization. |
boolean |
hasUnusedParameters()
Check for unused parameters |
void |
reportError(ParameterException e)
Report a configuration error. |
boolean |
setValueForOption(Parameter<?,?> opt)
Assign a value for an option, but not using default values and throwing exceptions on error. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Vector<ParameterException> errors
| Constructor Detail |
|---|
public UnParameterization()
| Method Detail |
|---|
public boolean hasUnusedParameters()
Parameterization
hasUnusedParameters in interface Parameterizationtrue if at least one parameter was not consumedpublic boolean checkConstraint(GlobalParameterConstraint constraint)
Parameterization
checkConstraint in interface Parameterizationconstraint - Parameter constraint
public Collection<ParameterException> getErrors()
ParameterizationParameterization.grab(de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter, ?>)
getErrors in interface Parameterizationpublic boolean grab(Parameter<?,?> opt)
Parameterizationopt itself!
In particular Parameterization.grab(de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter, ?>) can return true when
Flag.getValue()
returns false! Instead the semantics of grab are those of Parameter#isDefined().
This method will catch ParameterExceptions and store them to be
retrieved by Parameterization.getErrors().
grab in interface Parameterizationopt - Option to add
public void reportError(ParameterException e)
Parameterization
reportError in interface Parameterizatione - Destination to report errors to
public boolean setValueForOption(Parameter<?,?> opt)
throws ParameterException
Parameterization
setValueForOption in interface Parameterizationopt - Parameter to set
ParameterException - on assignment errors.public Parameterization descend(Parameter<?,?> option)
ClassParameter.instantiateClass(de.lmu.ifi.dbs.elki.utilities.optionhandling.parameterization.Parameterization).
You only need to call this when you want to expose the tree structure
without offering a class choice as parameter.
descend in interface Parameterizationoption - Option subtree
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||