@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, stoppublic void stepInit()
stepInit in interface BaseStepExtenderstepInit in interface Steppublic java.util.List<java.lang.String> getIncomingConnectionTypes()
getIncomingConnectionTypes in interface BaseStepExtendergetIncomingConnectionTypes in interface Steppublic java.util.List<java.lang.String> getOutgoingConnectionTypes()
getOutgoingConnectionTypes in interface BaseStepExtendergetOutgoingConnectionTypes in interface Steppublic void processIncoming(Data data) throws WekaException
processIncoming in interface BaseStepExtenderprocessIncoming in interface StepprocessIncoming in class BaseStepdata - the data to processWekaException - if a problem occurspublic java.util.Map<java.lang.String,java.lang.String> getInteractiveViewers()
getInteractiveViewers in interface StepgetInteractiveViewers in class BaseSteppublic java.util.Map<java.lang.String,java.lang.String> getResults()
public java.lang.Object retrieveData()
getResults()retrieveData in interface DataCollectorpublic void restoreData(java.lang.Object data)
restoreData in interface DataCollectordata - 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