public class SerializedParameterization extends AbstractParameterization
ListParameterization
where
possible.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPTION_PREFIX
Prefix of option markers on the command line.
|
(package private) java.util.LinkedList<java.lang.String> |
parameters
Parameter storage
|
errors
Constructor and Description |
---|
SerializedParameterization()
Constructor
|
SerializedParameterization(java.util.List<java.lang.String> args)
Constructor
|
SerializedParameterization(java.lang.String[] args)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getRemainingParameters()
Return the yet unused parameters.
|
boolean |
hasUnusedParameters()
Check for unused parameters
|
void |
logUnusedParameters()
Log a warning if there were unused parameters.
|
boolean |
setValueForOption(Parameter<?> opt)
Assign a value for an option, but not using default values and throwing
exceptions on error.
|
clearErrors, failOnErrors, finalize, getErrors, logAndClearReportedErrors, reportError
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
descend, grab, hasErrors, tryInstantiate
public static final java.lang.String OPTION_PREFIX
-
.java.util.LinkedList<java.lang.String> parameters
public SerializedParameterization()
public SerializedParameterization(java.lang.String[] args)
args
- Parameterspublic SerializedParameterization(java.util.List<java.lang.String> args)
args
- Parameter listpublic java.util.List<java.lang.String> getRemainingParameters()
public boolean hasUnusedParameters()
Parameterization
true
if at least one parameter was not consumedpublic void logUnusedParameters()
public boolean setValueForOption(Parameter<?> opt) throws ParameterException
Parameterization
opt
- Parameter to setParameterException
- on assignment errors.Copyright © 2019 ELKI Development Team. License information.