Class AbstractMultiRowProcessorPlugin
- java.lang.Object
-
- weka.filters.unsupervised.instance.multirowprocessor.AbstractMultiRowProcessorPlugin
-
- All Implemented Interfaces:
adams.core.GlobalInfoSupporter
,Serializable
,weka.core.OptionHandler
- Direct Known Subclasses:
AbstractRowSelection
,AbstractSelectionProcessor
public abstract class AbstractMultiRowProcessorPlugin extends Object implements Serializable, weka.core.OptionHandler, adams.core.GlobalInfoSupporter
Ancestor for MultiRowProcessor plugins.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractMultiRowProcessorPlugin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
debugMsg(String msg)
Outputs a debugging message on stderr.String
debugTipText()
Returns the tip text for this property.boolean
getDebug()
Returns whether to output debugging information.String[]
getOptions()
Gets the current option settings for the OptionHandler.abstract String
globalInfo()
Returns a string describing the processor.Enumeration<weka.core.Option>
listOptions()
Returns an enumeration of all the available options..protected void
reset()
Resets the scheme.void
setDebug(boolean value)
Sets whether to output debugging information.void
setOptions(String[] options)
Sets the OptionHandler's options using the given list.
-
-
-
Field Detail
-
DEBUG
protected static String DEBUG
-
m_Debug
protected boolean m_Debug
whether to output debugging information.
-
-
Method Detail
-
globalInfo
public abstract String globalInfo()
Returns a string describing the processor.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Returns:
- a description suitable for displaying in the explorer/experimenter gui
-
reset
protected void reset()
Resets the scheme.
Default implementation does nothing.
-
listOptions
public Enumeration<weka.core.Option> listOptions()
Returns an enumeration of all the available options..- Specified by:
listOptions
in interfaceweka.core.OptionHandler
- Returns:
- an enumeration of all available options.
-
setOptions
public void setOptions(String[] options) throws Exception
Sets the OptionHandler's options using the given list. All options will be set (or reset) during this call (i.e. incremental setting of options is not possible).- Specified by:
setOptions
in interfaceweka.core.OptionHandler
- Parameters:
options
- the list of options as an array of strings- Throws:
Exception
- if an option is not supported
-
getOptions
public String[] getOptions()
Gets the current option settings for the OptionHandler.- Specified by:
getOptions
in interfaceweka.core.OptionHandler
- Returns:
- the list of current option settings as an array of strings
-
setDebug
public void setDebug(boolean value)
Sets whether to output debugging information.- Parameters:
value
- true if in debug mode
-
getDebug
public boolean getDebug()
Returns whether to output debugging information.- Returns:
- true if in debug mode
-
debugTipText
public String debugTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
debugMsg
protected void debugMsg(String msg)
Outputs a debugging message on stderr.- Parameters:
msg
- the message
-
-