weka.core.setupgenerator
Class ListParameter

java.lang.Object
  extended by weka.core.setupgenerator.AbstractParameter
      extended by weka.core.setupgenerator.ListParameter
All Implemented Interfaces:
Serializable, Cloneable, weka.core.OptionHandler

public class ListParameter
extends AbstractParameter

Container class for search parameters.

Version:
$Revision: 4521 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
protected  String[] m_List
          the explicit list of values to use.
 
Fields inherited from class weka.core.setupgenerator.AbstractParameter
m_Property
 
Constructor Summary
ListParameter()
           
 
Method Summary
 String getList()
          Get the blank-separated list of values.
 String[] getOptions()
          returns the options of the current setup.
 String globalInfo()
          Returns a string describing the object.
 Enumeration listOptions()
          Gets an enumeration describing the available options.
 String listTipText()
          Returns the tip text for this property.
 void setList(String value)
          Set the blank-separated list of values.
 void setOptions(String[] options)
          Parses the options for this object.
 String toString()
          Returns a string representation of the search parameter.
 
Methods inherited from class weka.core.setupgenerator.AbstractParameter
clone, getProperty, propertyTipText, setProperty, typeTipText
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_List

protected String[] m_List
the explicit list of values to use.

Constructor Detail

ListParameter

public ListParameter()
Method Detail

globalInfo

public String globalInfo()
Returns a string describing the object.

Specified by:
globalInfo in class AbstractParameter
Returns:
a description suitable for displaying in the explorer/experimenter gui

listOptions

public Enumeration listOptions()
Gets an enumeration describing the available options.

Specified by:
listOptions in interface weka.core.OptionHandler
Overrides:
listOptions in class AbstractParameter
Returns:
an enumeration of all the available options.

getOptions

public String[] getOptions()
returns the options of the current setup.

Specified by:
getOptions in interface weka.core.OptionHandler
Overrides:
getOptions in class AbstractParameter
Returns:
the current options

setOptions

public void setOptions(String[] options)
                throws Exception
Parses the options for this object.

Specified by:
setOptions in interface weka.core.OptionHandler
Overrides:
setOptions in class AbstractParameter
Parameters:
options - the options to use
Throws:
Exception - if setting of options fails

listTipText

public String listTipText()
Returns the tip text for this property.

Returns:
tip text for this property suitable for displaying in the explorer/experimenter gui

getList

public String getList()
Get the blank-separated list of values.

Returns:
the list.

setList

public void setList(String value)
Set the blank-separated list of values.

Parameters:
value - the list of values.

toString

public String toString()
Returns a string representation of the search parameter.

Overrides:
toString in class AbstractParameter
Returns:
a string representation


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.