public class VectorListParameter extends ListParameter<List<Double>>
LIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLIT
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription
Constructor and Description |
---|
VectorListParameter(OptionID optionID)
Constructs a vector list parameter with the given name and description.
|
VectorListParameter(OptionID optionID,
boolean optional)
Constructs a vector list parameter with the given name and description.
|
VectorListParameter(OptionID optionID,
List<ParameterConstraint<List<List<Double>>>> constraints,
boolean optional)
Constructs a vector list parameter with the given name and description.
|
VectorListParameter(OptionID optionID,
List<ParameterConstraint<List<List<Double>>>> constraints,
List<List<Double>> defaultValue)
Constructs a vector list parameter with the given name and description.
|
VectorListParameter(OptionID optionID,
ParameterConstraint<List<List<Double>>> constraint)
Constructs a vector list parameter with the given name and description.
|
VectorListParameter(OptionID optionID,
ParameterConstraint<List<List<Double>>> constraint,
boolean optional)
Constructs a vector list parameter with the given name and description.
|
VectorListParameter(OptionID optionID,
ParameterConstraint<List<List<Double>>> constraint,
List<List<Double>> defaultValue)
Constructs a vector list parameter with the given name and description.
|
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<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 VectorListParameter(OptionID optionID, List<ParameterConstraint<List<List<Double>>>> constraints, List<List<Double>> defaultValue)
optionID
- Option IDconstraints
- ConstraintdefaultValue
- Default valuepublic VectorListParameter(OptionID optionID, List<ParameterConstraint<List<List<Double>>>> constraints, boolean optional)
optionID
- Option IDconstraints
- Constraintsoptional
- Optional flagpublic VectorListParameter(OptionID optionID, ParameterConstraint<List<List<Double>>> constraint, List<List<Double>> defaultValue)
optionID
- Option IDconstraint
- ConstraintdefaultValue
- Default valuepublic VectorListParameter(OptionID optionID, ParameterConstraint<List<List<Double>>> constraint, boolean optional)
optionID
- Option IDconstraint
- Constraintoptional
- Optional flagpublic VectorListParameter(OptionID optionID, ParameterConstraint<List<List<Double>>> constraint)
optionID
- Option IDconstraint
- Constraintpublic VectorListParameter(OptionID optionID, boolean optional)
optionID
- Option IDoptional
- Optional flagpublic VectorListParameter(OptionID optionID)
optionID
- Option IDpublic String getValueAsString()
null
protected List<List<Double>> parseValue(Object obj) throws ParameterException
parseValue
in class Parameter<List<List<Double>>,List<List<Double>>>
obj
- Object to parse (may be a string representation!)ParameterException
- when the object cannot be parsed.