public abstract class SimpleFilter extends Filter implements OptionHandler
SimpleBatchFilter
,
SimpleStreamFilter
,
Serialized FormConstructor and Description |
---|
SimpleFilter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
debugTipText()
Returns the tip text for this property
|
boolean |
getDebug()
Returns the current debugging mode state.
|
java.lang.String[] |
getOptions()
Gets the current settings of the filter.
|
abstract java.lang.String |
globalInfo()
Returns a string describing this classifier.
|
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
void |
setDebug(boolean value)
Sets the debugging mode
|
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances.
|
void |
setOptions(java.lang.String[] options)
Parses a list of options for this object.
|
batchFilterFile, batchFinished, filterFile, getCapabilities, getCapabilities, getOutputFormat, getRevision, input, isFirstBatchDone, isNewBatch, isOutputFormatDefined, main, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
public abstract java.lang.String globalInfo()
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedreset()
public java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public void setDebug(boolean value)
value
- if true, debugging information is outputpublic boolean getDebug()
public java.lang.String debugTipText()
public boolean setInputFormat(Instances instanceInfo) throws java.lang.Exception
setInputFormat
in class Filter
instanceInfo
- an Instances object containing the input instance
structure (any instances contained in the object
are ignored - only the structure is required).java.lang.Exception
- if the inputFormat can't be set successfullyreset()