public class UnParameterization extends java.lang.Object implements Parameterization
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List<ParameterException> |
errors
Errors
|
| Constructor and Description |
|---|
UnParameterization() |
| Modifier and Type | Method and Description |
|---|---|
java.util.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescend, hasErrors, tryInstantiatejava.util.List<ParameterException> errors
public boolean hasUnusedParameters()
ParameterizationhasUnusedParameters in interface Parameterizationtrue if at least one parameter was not consumedpublic java.util.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 addpublic void reportError(ParameterException e)
ParameterizationreportError in interface Parameterizatione - Destination to report errors topublic boolean setValueForOption(Parameter<?> opt)
ParameterizationsetValueForOption in interface Parameterizationopt - Parameter to setCopyright © 2019 ELKI Development Team. License information.