public class VectorListParameter extends ListParameter<VectorListParameter,List<Vector>>
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,
ParameterConstraint<List<Vector>> constraint)
Constructs a vector list parameter with the given name and description.
|
VectorListParameter(OptionID optionID,
ParameterConstraint<List<Vector>> constraint,
boolean optional)
Constructs a vector list parameter with the given name and description.
|
VectorListParameter(OptionID optionID,
ParameterConstraint<List<Vector>> constraint,
List<Vector> 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<Vector> |
parseValue(Object obj)
Parse a given value into the destination type.
|
int |
size()
Size of the list.
|
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, ParameterConstraint<List<Vector>> constraint, List<Vector> defaultValue)
optionID
- Option IDconstraint
- ConstraintdefaultValue
- Default valuepublic VectorListParameter(OptionID optionID, ParameterConstraint<List<Vector>> constraint, boolean optional)
optionID
- Option IDconstraint
- Constraintoptional
- Optional flagpublic VectorListParameter(OptionID optionID, ParameterConstraint<List<Vector>> constraint)
optionID
- Option IDconstraint
- Constraintpublic VectorListParameter(OptionID optionID, boolean optional)
optionID
- Option IDoptional
- Optional flagpublic VectorListParameter(OptionID optionID)
optionID
- Option IDpublic String getValueAsString()
Parameter
null
getValueAsString
in interface Parameter<List<Vector>>
getValueAsString
in class AbstractParameter<VectorListParameter,List<Vector>>
protected List<Vector> parseValue(Object obj) throws ParameterException
AbstractParameter
parseValue
in class AbstractParameter<VectorListParameter,List<Vector>>
obj
- Object to parse (may be a string representation!)ParameterException
- when the object cannot be parsed.public int size()
ListParameter
size
in class ListParameter<VectorListParameter,List<Vector>>
public String getSyntax()
getSyntax
in interface Parameter<List<Vector>>
getSyntax
in class AbstractParameter<VectorListParameter,List<Vector>>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.