public class DoubleArrayListParameter extends ListParameter<DoubleArrayListParameter,java.util.List<double[]>>
LIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLIT
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription
Constructor and Description |
---|
DoubleArrayListParameter(OptionID optionID)
Constructs a vector list parameter with the given name and description.
|
DoubleArrayListParameter(OptionID optionID,
boolean optional)
Constructs a vector list parameter with the given name and description.
|
DoubleArrayListParameter(OptionID optionID,
java.util.List<double[]> defaultValue)
Constructs a vector list parameter with the given name and description.
|
DoubleArrayListParameter(OptionID optionID,
ParameterConstraint<java.util.List<double[]>> constraint)
Constructs a vector list parameter with the given name and description.
|
DoubleArrayListParameter(OptionID optionID,
ParameterConstraint<java.util.List<double[]>> constraint,
boolean optional)
Constructs a vector list parameter with the given name and description.
|
DoubleArrayListParameter(OptionID optionID,
ParameterConstraint<java.util.List<double[]>> constraint,
java.util.List<double[]> defaultValue)
Constructs a vector list parameter with the given name and description.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultValueAsString()
Get the default value as string.
|
java.lang.String |
getSyntax()
Returns a string representation of the parameter's type.
|
java.lang.String |
getValueAsString()
Get the value as string.
|
protected java.util.List<double[]> |
parseValue(java.lang.Object obj)
Parse a given value into the destination type.
|
int |
size()
Size of the list.
|
addConstraint, describeValues, getConstraints, getDefaultValue, getOptionID, getShortDescription, getValue, hasDefaultValue, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, validate
public DoubleArrayListParameter(OptionID optionID, ParameterConstraint<java.util.List<double[]>> constraint, java.util.List<double[]> defaultValue)
optionID
- Option IDconstraint
- ConstraintdefaultValue
- Default valuepublic DoubleArrayListParameter(OptionID optionID, ParameterConstraint<java.util.List<double[]>> constraint, boolean optional)
optionID
- Option IDconstraint
- Constraintoptional
- Optional flagpublic DoubleArrayListParameter(OptionID optionID, ParameterConstraint<java.util.List<double[]>> constraint)
optionID
- Option IDconstraint
- Constraintpublic DoubleArrayListParameter(OptionID optionID, java.util.List<double[]> defaultValue)
optionID
- Option IDdefaultValue
- Default valuepublic DoubleArrayListParameter(OptionID optionID, boolean optional)
optionID
- Option IDoptional
- Optional flagpublic DoubleArrayListParameter(OptionID optionID)
optionID
- Option IDpublic java.lang.String getValueAsString()
Parameter
null
getValueAsString
in interface Parameter<java.util.List<double[]>>
getValueAsString
in class AbstractParameter<DoubleArrayListParameter,java.util.List<double[]>>
public java.lang.String getDefaultValueAsString()
Parameter
getDefaultValueAsString
in interface Parameter<java.util.List<double[]>>
getDefaultValueAsString
in class AbstractParameter<DoubleArrayListParameter,java.util.List<double[]>>
protected java.util.List<double[]> parseValue(java.lang.Object obj) throws ParameterException
AbstractParameter
parseValue
in class AbstractParameter<DoubleArrayListParameter,java.util.List<double[]>>
obj
- Object to parse (may be a string representation!)ParameterException
- when the object cannot be parsed.public int size()
ListParameter
size
in class ListParameter<DoubleArrayListParameter,java.util.List<double[]>>
public java.lang.String getSyntax()
getSyntax
in interface Parameter<java.util.List<double[]>>
getSyntax
in class AbstractParameter<DoubleArrayListParameter,java.util.List<double[]>>
Copyright © 2019 ELKI Development Team. License information.