public class ChainedParameterization extends AbstractParameterization
de.lmu.ifi.dbs.elki.utilities.optionhandling package documentation
for examples.| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Parameterization> |
chain
Keep the list of parameterizations.
|
private Parameterization |
errorTarget
Error target
|
errors| Constructor and Description |
|---|
ChainedParameterization(Parameterization... ps)
Constructor that takes a number of Parameterizations to chain.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendParameterization(Parameterization p)
Append a new Parameterization to the chain.
|
Parameterization |
descend(java.lang.Object option)
Descend parameterization tree into sub-option.
|
void |
errorsTo(Parameterization config)
Set the error target, since there is no unique way where
errors can be reported.
|
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.
|
clearErrors, failOnErrors, finalize, getErrors, logAndClearReportedErrorsclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgrab, hasErrors, tryInstantiateprivate java.util.List<Parameterization> chain
private Parameterization errorTarget
public ChainedParameterization(Parameterization... ps)
ps - Parameterizationspublic void appendParameterization(Parameterization p)
p - Parameterizationpublic boolean setValueForOption(Parameter<?> opt) throws ParameterException
Parameterizationopt - Parameter to setParameterException - on assignment errors.public boolean hasUnusedParameters()
Parameterizationtrue if at least one parameter was not consumedpublic void errorsTo(Parameterization config)
config - Parameterization to report errors topublic void reportError(ParameterException e)
ParameterizationreportError in interface ParameterizationreportError in class AbstractParameterizatione - Destination to report errors topublic Parameterization descend(java.lang.Object 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.
Parallel descend in all chains.option - Option subtreeCopyright © 2019 ELKI Development Team. License information.