public class MultiFilter extends SimpleStreamFilter implements WeightedAttributesHandler, WeightedInstancesHandler, Randomizable
-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
-S num
The random number seed that will be passed through all filters that are randomizable (default 1).
StreamableFilter
,
Serialized FormConstructor and Description |
---|
MultiFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
batchFinished()
Signify that this batch of input to the filter is finished.
|
java.lang.String |
filtersTipText()
Returns the tip text for this property
|
Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
Filter |
getFilter(int index)
Gets a single filter from the set of available filters.
|
Filter[] |
getFilters()
Gets the list of possible filters to choose from.
|
java.lang.String[] |
getOptions()
Gets the current settings of the filter.
|
java.lang.String |
getRevision()
Returns the revision string.
|
int |
getSeed()
Gets the seed for the random number generations
|
java.lang.String |
globalInfo()
Returns a string describing this filter
|
boolean |
isStreamableFilter()
tests whether all the enclosed filters are streamable
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] args)
Main method for executing this class.
|
boolean |
mayRemoveInstanceAfterFirstBatchDone()
RemoveWithValues may return false from input() (thus not making an instance
available immediately) even after the first batch has been completed due to
matching a value that the user wants to remove.
|
java.lang.String |
seedTipText()
Returns the tip text for this property
|
void |
setFilters(Filter[] filters)
Sets the list of possible filters to choose from.
|
void |
setOptions(java.lang.String[] options)
Parses a list of options for this object.
|
void |
setSeed(int seed)
Set the seed for random number generation.
|
input
setInputFormat
batchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapper
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public java.lang.String globalInfo()
globalInfo
in class SimpleFilter
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
listOptions
in class Filter
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-D Turns on output of debugging information.
-S num
The random number seed that will be passed through all filters that are randomizable (default 1).
-F <classname [options]> A filter to apply (can be specified multiple times).
setOptions
in interface OptionHandler
setOptions
in class Filter
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Filter
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class Filter
Capabilities
public void setFilters(Filter[] filters)
filters
- an array of filters with all options set.reset()
public Filter[] getFilters()
public java.lang.String filtersTipText()
public Filter getFilter(int index)
index
- the index of the filter wantedpublic java.lang.String seedTipText()
public void setSeed(int seed)
setSeed
in interface Randomizable
seed
- the seedpublic int getSeed()
getSeed
in interface Randomizable
public boolean isStreamableFilter()
public boolean batchFinished() throws java.lang.Exception
batchFinished
in class SimpleStreamFilter
java.lang.IllegalStateException
- if no input format has been set.java.lang.NullPointerException
- if no input structure has been defined,java.lang.Exception
- if there was a problem finishing the batch.public boolean mayRemoveInstanceAfterFirstBatchDone()
mayRemoveInstanceAfterFirstBatchDone
in class Filter
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Filter
public static void main(java.lang.String[] args)
args
- should contain arguments for the filter: use -h for help