@KFStep(name="TextViewer", category="Visualization", toolTipText="View textual output", iconPath="weka/gui/knowledgeflow/icons/DefaultText.gif") public class TextViewer extends BaseStep implements DataCollector
Modifier and Type | Class and Description |
---|---|
static interface |
TextViewer.TextNotificationListener
Interface for listeners of textual results
|
Constructor and Description |
---|
TextViewer() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
java.util.Map<java.lang.String,java.lang.String> |
getInteractiveViewers()
When running in a graphical execution environment a step can make one or
more popup Viewer components available.
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
java.util.Map<java.lang.String,java.lang.String> |
getResults()
Get the textual results stored in this step
|
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
void |
removeTextNotificationListener(TextViewer.TextNotificationListener l)
Remove the listener for textual results
|
void |
restoreData(java.lang.Object data)
Restore/set the data in this step
|
java.lang.Object |
retrieveData()
Get the results stored in this step.
|
void |
setTextNotificationListener(TextViewer.TextNotificationListener l)
Set the listener to be notified about new textual results
|
void |
stepInit()
Initialize the step
|
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
public void stepInit()
stepInit
in interface BaseStepExtender
stepInit
in interface Step
public java.util.List<java.lang.String> getIncomingConnectionTypes()
getIncomingConnectionTypes
in interface BaseStepExtender
getIncomingConnectionTypes
in interface Step
public java.util.List<java.lang.String> getOutgoingConnectionTypes()
getOutgoingConnectionTypes
in interface BaseStepExtender
getOutgoingConnectionTypes
in interface Step
public void processIncoming(Data data) throws WekaException
processIncoming
in interface BaseStepExtender
processIncoming
in interface Step
processIncoming
in class BaseStep
data
- the data to processWekaException
- if a problem occurspublic java.util.Map<java.lang.String,java.lang.String> getInteractiveViewers()
getInteractiveViewers
in interface Step
getInteractiveViewers
in class BaseStep
public java.util.Map<java.lang.String,java.lang.String> getResults()
public java.lang.Object retrieveData()
getResults()
retrieveData
in interface DataCollector
public void restoreData(java.lang.Object data)
restoreData
in interface DataCollector
data
- the data to set (is expected to be a map of Strings)public void setTextNotificationListener(TextViewer.TextNotificationListener l)
l
- the listener to receive notificationspublic void removeTextNotificationListener(TextViewer.TextNotificationListener l)
l
- the listener to remove