
public abstract class AbstractParameterization extends Object implements Parameterization
| Modifier and Type | Field and Description | 
|---|---|
| (package private) List<ParameterException> | errorsErrors | 
| private static Logging | LOGThe logger of the class. | 
| Constructor and Description | 
|---|
| AbstractParameterization() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | checkConstraint(GlobalParameterConstraint constraint)Check a parameter constraint. | 
| void | clearErrors()Clear errors. | 
| void | failOnErrors()Fail on errors, log any error that had occurred. | 
| void | finalize()Upon destruction, report any errors that weren't handled yet. | 
| 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 | hasErrors()Return true when there have been errors. | 
| void | logAndClearReportedErrors()Log any error that has accumulated. | 
| void | reportError(ParameterException e)Report a configuration error. | 
| void | reportInternalParameterizationErrors(Parameterization config)Report the internal parameterization errors to another parameterization | 
| abstract boolean | setValueForOption(Parameter<?> opt)Perform the actual parameter assignment. | 
| <C> C | tryInstantiate(Class<C> c)Try to instantiate a particular class. | 
| <C> C | tryInstantiate(Class<C> r,
              Class<?> c)Try to instantiate a particular class. | 
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescend, hasUnusedParametersList<ParameterException> errors
private static final Logging LOG
public Collection<ParameterException> getErrors()
ParameterizationParameterization.grab(de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter<?>)getErrors in interface Parameterizationpublic boolean hasErrors()
ParameterizationhasErrors in interface Parameterizationpublic void reportError(ParameterException e)
ParameterizationreportError in interface Parameterizatione - Destination to report errors topublic void logAndClearReportedErrors()
public void clearErrors()
public void failOnErrors()
                  throws AbortException
RuntimeException - if any error has occurred.AbortExceptionpublic void reportInternalParameterizationErrors(Parameterization config)
config - Other parameterizationpublic final 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 abstract boolean setValueForOption(Parameter<?> opt) throws ParameterException
setValueForOption in interface Parameterizationopt - Option to be setParameterException - on assignment errors.public void finalize()
              throws Throwable
public boolean checkConstraint(GlobalParameterConstraint constraint)
ParameterizationcheckConstraint in interface Parameterizationconstraint - Parameter constraintpublic <C> C tryInstantiate(Class<C> r, Class<?> c)
ParameterizationtryInstantiate in interface ParameterizationC - return typer - Restriction classc - Base classpublic <C> C tryInstantiate(Class<C> c)
ParameterizationtryInstantiate in interface ParameterizationC - return typec - Base class