Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.optionhandling
Class ListParameter<T>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.Option<T>
          extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter<List<T>,List<T>>
              extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.ListParameter<T>
Type Parameters:
T -
All Implemented Interfaces:
Loggable
Direct Known Subclasses:
ClassListParameter, DoubleListParameter, FileListParameter, IntListParameter, VectorListParameter

public abstract class ListParameter<T>
extends Parameter<List<T>,List<T>>

Abstract parameter class defining a parameter for a list of objects.

Author:
Steffi Wanka

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
name, shortDescription, value
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug
 
Constructor Summary
ListParameter(String name, String description)
          Deprecated.  
 
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, getDescription, getParameterType, getValue, hasDefaultValue, isOptional, isSet, reset, setDefaultValue, setDefaultValueToValue, setOptional, tookDefaultValue
 
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option
getName, getShortDescription, isValid, setShortDescription, setValue
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SPLIT

public static final Pattern SPLIT
A pattern defining a ",".


VECTOR_SPLIT

public static final Pattern VECTOR_SPLIT
A pattern defining a ":".

Constructor Detail

ListParameter

@Deprecated
public ListParameter(String name,
                                String description)
Deprecated. 

Constructs a list parameter with the given name and description.

Parameters:
name - the parameter name
description - the parameter description
Method Detail

getListSize

public int getListSize()
Returns the size of this list parameter.

Returns:
the size of this list parameter.

toString

public String toString()
Returns a string representation of this list parameter. The elements of this list parameters are given in "[ ]", comma separated.

Overrides:
toString in class Object
See Also:
Object.toString()

Release 0.1 (2008-07-10_1838)