|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.utilities.optionhandling.Option<T>
de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter<List<T>,List<T>>
de.lmu.ifi.dbs.elki.utilities.optionhandling.ListParameter<T>
T - public abstract class ListParameter<T>
Abstract parameter class defining a parameter for a list of objects.
| Field Summary | |
|---|---|
static Pattern |
SPLIT
A pattern defining a ",". |
static Pattern |
VECTOR_SPLIT
A pattern defining a ":". |
| Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter |
|---|
constraints, defaultValue, optionalParameter |
| Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option |
|---|
optionid, shortDescription, value |
| Constructor Summary | |
|---|---|
ListParameter(OptionID optionID)
Constructs a list parameter with the given optionID. |
|
ListParameter(OptionID optionID,
ParameterConstraint<List<T>> constraint)
Constructs a list parameter with the given optionID. |
|
ListParameter(OptionID optionID,
ParameterConstraint<List<T>> constraint,
boolean optional,
List<T> defaultValue)
Constructs a list parameter with the given optionID. |
|
| Method Summary | |
|---|---|
int |
getListSize()
Returns the size of this list parameter. |
String |
toString()
Returns a string representation of this list parameter. |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter |
|---|
addConstraint, addConstraintList, getDefaultValue, getFullDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isOptional, isSet, reset, setDefaultValue, setDefaultValueToValue, setOptional, tookDefaultValue |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option |
|---|
getName, getOptionID, getShortDescription, getSyntax, isValid, setShortDescription, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Pattern SPLIT
public static final Pattern VECTOR_SPLIT
| Constructor Detail |
|---|
public ListParameter(OptionID optionID)
optionID - the unique id of this parameter
public ListParameter(OptionID optionID,
ParameterConstraint<List<T>> constraint)
optionID - the unique id of this parameterconstraint - the constraint of this parameter
public ListParameter(OptionID optionID,
ParameterConstraint<List<T>> constraint,
boolean optional,
List<T> defaultValue)
optionID - the unique id of this parameterconstraint - the constraint of this parameter, may be nulloptional - specifies if this parameter is an optional parameterdefaultValue - the default value of this parameter (may be null)| Method Detail |
|---|
public int getListSize()
public String toString()
toString in class Object
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||