Class EmptyParameterization
- java.lang.Object
-
- elki.utilities.optionhandling.parameterization.AbstractParameterization
-
- elki.utilities.optionhandling.parameterization.EmptyParameterization
-
- All Implemented Interfaces:
Parameterization
public class EmptyParameterization extends AbstractParameterization
Parameterization handler that only allows the use of default values.- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.utilities.optionhandling.parameterization.AbstractParameterization
errors
-
-
Constructor Summary
Constructors Constructor Description EmptyParameterization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasUnusedParameters()
Check for unused parametersboolean
setValueForOption(Parameter<?> opt)
Assign a value for an option, but not using default values and throwing exceptions on error.-
Methods inherited from class elki.utilities.optionhandling.parameterization.AbstractParameterization
clearErrors, failOnErrors, getErrors, logAndClearReportedErrors, reportError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.utilities.optionhandling.parameterization.Parameterization
descend, grab, hasErrors, tryInstantiate
-
-
-
-
Method Detail
-
hasUnusedParameters
public boolean hasUnusedParameters()
Description copied from interface:Parameterization
Check for unused parameters- Returns:
true
if at least one parameter was not consumed
-
setValueForOption
public boolean setValueForOption(Parameter<?> opt)
Description copied from interface:Parameterization
Assign a value for an option, but not using default values and throwing exceptions on error.- Parameters:
opt
- Parameter to set- Returns:
- Success code
-
-