|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter<List<T>,List<T>> de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.ListParameter<Double> de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.DoubleListParameter
public class DoubleListParameter
Parameter class for a parameter specifying a list of double values.
Field Summary |
---|
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.ListParameter |
---|
LIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLIT |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
---|
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription |
Constructor Summary | |
---|---|
DoubleListParameter(OptionID optionID)
Constructs a list parameter with the given optionID. |
|
DoubleListParameter(OptionID optionID,
boolean optional)
Constructs a list parameter with the given optionID and optional flag. |
|
DoubleListParameter(OptionID optionID,
List<ParameterConstraint<List<Double>>> constraints,
boolean optional)
Constructs a list parameter with the given optionID. |
|
DoubleListParameter(OptionID optionID,
List<ParameterConstraint<List<Double>>> constraints,
List<Double> defaultValue)
Constructs a list parameter with the given optionID. |
|
DoubleListParameter(OptionID optionID,
ParameterConstraint<List<Double>> constraint)
Constructs a list parameter with the given optionID. |
|
DoubleListParameter(OptionID optionID,
ParameterConstraint<List<Double>> constraint,
boolean optional)
Constructs a list parameter with the given optionID. |
|
DoubleListParameter(OptionID optionID,
ParameterConstraint<List<Double>> constraint,
List<Double> defaultValue)
Constructs a list parameter with the given optionID. |
Method Summary | |
---|---|
String |
getSyntax()
Returns a string representation of the parameter's type. |
String |
getValueAsString()
Get the value as string. |
protected List<Double> |
parseValue(Object obj)
Parse a given value into the destination type. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.ListParameter |
---|
asString, getListSize |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
---|
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleListParameter(OptionID optionID, List<ParameterConstraint<List<Double>>> constraints, List<Double> defaultValue)
optionID
- Option IDconstraints
- ConstraintsdefaultValue
- Default valuepublic DoubleListParameter(OptionID optionID, List<ParameterConstraint<List<Double>>> constraints, boolean optional)
optionID
- Option IDconstraints
- Constraintsoptional
- Optional flagpublic DoubleListParameter(OptionID optionID, ParameterConstraint<List<Double>> constraint, List<Double> defaultValue)
optionID
- Option IDconstraint
- ConstraintdefaultValue
- Default valuepublic DoubleListParameter(OptionID optionID, ParameterConstraint<List<Double>> constraint, boolean optional)
optionID
- Option IDconstraint
- Constraintoptional
- Optional flagpublic DoubleListParameter(OptionID optionID, ParameterConstraint<List<Double>> constraint)
optionID
- Option IDconstraint
- Constraintpublic DoubleListParameter(OptionID optionID, boolean optional)
optionID
- Option IDoptional
- Optional flagpublic DoubleListParameter(OptionID optionID)
optionID
- Option IDMethod Detail |
---|
public String getValueAsString()
Parameter
null
getValueAsString
in class Parameter<List<Double>,List<Double>>
protected List<Double> parseValue(Object obj) throws ParameterException
Parameter
parseValue
in class Parameter<List<Double>,List<Double>>
obj
- Object to parse (may be a string representation!)
ParameterException
- when the object cannot be parsed.public String getSyntax()
getSyntax
in class Parameter<List<Double>,List<Double>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |