weka.core.setupgenerator
Class AbstractParameter

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

public abstract class AbstractParameter
extends Object
implements Serializable, Cloneable, weka.core.OptionHandler

Abstract 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_Property
          the property to test.
 
Constructor Summary
AbstractParameter()
          default constructor.
 
Method Summary
 Object clone()
          Returns a clone of itself.
 String[] getOptions()
          returns the options of the current setup.
 String getProperty()
          Get the property to update.
abstract  String globalInfo()
          Returns a string describing the object.
 Enumeration listOptions()
          Gets an enumeration describing the available options.
 String propertyTipText()
          Returns the tip text for this property.
 void setOptions(String[] options)
          Parses the options for this object.
 void setProperty(String value)
          Set the property to update.
 String toString()
          Returns a string representation of the search parameter.
 String typeTipText()
          Returns the tip text for this property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Property

protected String m_Property
the property to test.

Constructor Detail

AbstractParameter

public AbstractParameter()
default constructor.

Method Detail

globalInfo

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

Returns:
a description suitable for displaying in the explorer/experimenter gui

clone

public Object clone()
Returns a clone of itself.

Overrides:
clone in class Object
Returns:
a clone

listOptions

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

Specified by:
listOptions in interface weka.core.OptionHandler
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
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
Parameters:
options - the options to use
Throws:
Exception - if setting of options fails

propertyTipText

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

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

getProperty

public String getProperty()
Get the property to update.

Returns:
the property.

setProperty

public void setProperty(String value)
Set the property to update.

Parameters:
value - the property.

typeTipText

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

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

toString

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

Overrides:
toString in class Object
Returns:
a string representation


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