public class DoubleListParameter extends ListParameter<Double>
LIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLIT
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
asString, getListSize
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate
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 IDpublic String getValueAsString()
Parameter
null
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.