public class MergedParameterization extends java.lang.Object implements Parameterization
| Modifier and Type | Field and Description |
|---|---|
private ListParameterization |
current
Parameters we used before, but have rewound
|
private Parameterization |
inner
The parameterization we get the new values from.
|
private java.util.List<ListParameterization.ParameterPair> |
used
Parameters to rewind.
|
| Modifier | Constructor and Description |
|---|---|
|
MergedParameterization(Parameterization child)
Constructor.
|
private |
MergedParameterization(Parameterization inner,
ListParameterization current,
java.util.List<ListParameterization.ParameterPair> used)
Constructor for descending
|
| Modifier and Type | Method and Description |
|---|---|
Parameterization |
descend(java.lang.Object option)
Descend parameterization tree into sub-option.
|
java.util.Collection<ParameterException> |
getErrors()
Get the configuration errors thrown in
Parameterization.grab(de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter<?>) |
boolean |
hasUnusedParameters()
Check for unused parameters
|
void |
reportError(ParameterException e)
Report a configuration error.
|
void |
rewind()
Rewind the configuration to the initial situation
|
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, waitgrab, hasErrors, tryInstantiateprivate final Parameterization inner
private final ListParameterization current
private final java.util.List<ListParameterization.ParameterPair> used
public MergedParameterization(Parameterization child)
child - Child parameterization to wrap.private MergedParameterization(Parameterization inner, ListParameterization current, java.util.List<ListParameterization.ParameterPair> used)
inner - Child parameterization to use.current - Current parameterization to re-usedused - Used parameters list.public void rewind()
public boolean setValueForOption(Parameter<?> opt) throws ParameterException
ParameterizationsetValueForOption in interface Parameterizationopt - Parameter to setParameterException - on assignment errors.public Parameterization descend(java.lang.Object option)
ParameterizationClassParameter.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 subtreepublic java.util.Collection<ParameterException> getErrors()
ParameterizationParameterization.grab(de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter<?>)getErrors in interface Parameterizationpublic void reportError(ParameterException e)
ParameterizationreportError in interface Parameterizatione - Destination to report errors topublic boolean hasUnusedParameters()
ParameterizationhasUnusedParameters in interface Parameterizationtrue if at least one parameter was not consumedCopyright © 2019 ELKI Development Team. License information.