public abstract class SimpleFilter extends Filter implements OptionHandler
SimpleBatchFilter,
SimpleStreamFilter,
Serialized Form| Constructor and Description |
|---|
SimpleFilter() |
| Modifier and Type | Method and Description |
|---|---|
String |
debugTipText()
Returns the tip text for this property
|
String |
doNotCheckCapabilitiesTipText()
Returns the tip text for this property
|
Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
boolean |
getDebug()
Get whether debugging is turned on.
|
boolean |
getDoNotCheckCapabilities()
Get whether capabilities checking is turned off.
|
String[] |
getOptions()
Gets the current settings of the filter.
|
abstract String |
globalInfo()
Returns a string describing this filter.
|
Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setDebug(boolean debug)
Set debugging mode.
|
void |
setDoNotCheckCapabilities(boolean doNotCheckCapabilities)
Set whether not to check capabilities.
|
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
batchFilterFile, batchFinished, filterFile, getCapabilities, getOutputFormat, getRevision, input, isFirstBatchDone, isNewBatch, isOutputFormatDefined, main, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, runFilter, toString, useFilter, wekaStaticWrapperpublic abstract String globalInfo()
public Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic void setOptions(String[] options) throws Exception
-D
If set, filter is run in debug mode and may output additional info to the
console.
-do-not-check-capabilities
If set, filter capabilities are not checked when input format is set (use
with caution).
setOptions in interface OptionHandleroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlerpublic void setDebug(boolean debug)
debug - true if debug output should be printedpublic boolean getDebug()
public String debugTipText()
public void setDoNotCheckCapabilities(boolean doNotCheckCapabilities)
doNotCheckCapabilities - true if capabilities are not to be checked.public boolean getDoNotCheckCapabilities()
public String doNotCheckCapabilitiesTipText()
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class FilterCapabilitiespublic boolean setInputFormat(Instances instanceInfo) throws Exception
setInputFormat in class FilterinstanceInfo - an Instances object containing the input instance
structure (any instances contained in the object are ignored -
only the structure is required).Exception - if the inputFormat can't be set successfullyreset()Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.