@KFStep(name="Filter", category="Filters", toolTipText="Weka filter wrapper", iconPath="") public class Filter extends WekaAlgorithmWrapper
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
getFilter()
Get the filter.
|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
java.lang.Class |
getWrappedAlgorithmClass()
Get the class of the wrapped algorithm
|
Instances |
outputStructureForConnectionType(java.lang.String connectionName)
If possible, get the output structure for the named connection type as a
header-only set of instances.
|
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
void |
setFilter(Filter filter)
Set the filter.
|
void |
setWrappedAlgorithm(java.lang.Object algo)
Set the wrapped algorithm (filter)
|
void |
stepInit()
Initialize the step.
|
getDefaultIconPath, getDefaultPackageLevelIconPath, getIconPath, getWrappedAlgorithm, globalInfo
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, isResourceIntensive, isStopRequested, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
public java.lang.Class getWrappedAlgorithmClass()
getWrappedAlgorithmClass
in class WekaAlgorithmWrapper
public void setWrappedAlgorithm(java.lang.Object algo)
setWrappedAlgorithm
in class WekaAlgorithmWrapper
algo
- the algorithm to wrap@ProgrammaticProperty public void setFilter(Filter filter)
setWrappedAlgorithm()
filter
- the filter to usepublic Filter getFilter()
getWrappedAlgorithm()
public java.util.List<java.lang.String> getIncomingConnectionTypes()
public java.util.List<java.lang.String> getOutgoingConnectionTypes()
public void stepInit() throws WekaException
WekaException
- if a problem occurs during initializationpublic void processIncoming(Data data) throws WekaException
processIncoming
in interface BaseStepExtender
processIncoming
in interface Step
processIncoming
in class BaseStep
data
- the payload to processWekaException
- if a problem occurspublic Instances outputStructureForConnectionType(java.lang.String connectionName) throws WekaException
outputStructureForConnectionType
in interface Step
outputStructureForConnectionType
in class BaseStep
connectionName
- the name of the connection type to get the output
structure forWekaException
- if a problem occurs