Package weka.knowledgeflow.steps
Class BaseSimpleDataVisualizer
- java.lang.Object
-
- weka.knowledgeflow.steps.BaseStep
-
- weka.knowledgeflow.steps.BaseSimpleDataVisualizer
-
- All Implemented Interfaces:
java.io.Serializable,BaseStepExtender,DataCollector,Step
- Direct Known Subclasses:
AttributeSummarizer,CostBenefitAnalysis,GraphViewer,ScatterPlotMatrix
public abstract class BaseSimpleDataVisualizer extends BaseStep implements DataCollector
Abstract base class for simple data visualization steps that just collect data sets for visualization.- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BaseSimpleDataVisualizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Data>getDatasets()Get the datasets seen so farjava.util.List<java.lang.String>getIncomingConnectionTypes()Get a list of incoming connection types that this step can accept at this timejava.util.List<java.lang.String>getOutgoingConnectionTypes()Get a list of outgoing connection types that this step can produce at this time.voidprocessIncoming(Data data)Process incoming datavoidrestoreData(java.lang.Object data)Set the data for this collectorjava.lang.ObjectretrieveData()Get the data that this collector has collectedvoidstepInit()Initialize the step.-
Methods inherited from class weka.knowledgeflow.steps.BaseStep
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
-
-
-
-
Method Detail
-
stepInit
public void stepInit() throws WekaExceptionDescription copied from interface:StepInitialize the step.- Specified by:
stepInitin interfaceBaseStepExtender- Specified by:
stepInitin interfaceStep- Throws:
WekaException- if a problem occurs during initialization
-
processIncoming
public void processIncoming(Data data) throws WekaException
Process incoming data- Specified by:
processIncomingin interfaceBaseStepExtender- Specified by:
processIncomingin interfaceStep- Overrides:
processIncomingin classBaseStep- Parameters:
data- the data to process- Throws:
WekaException- if a problem occurs
-
getIncomingConnectionTypes
public java.util.List<java.lang.String> getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept at this time- Specified by:
getIncomingConnectionTypesin interfaceBaseStepExtender- Specified by:
getIncomingConnectionTypesin interfaceStep- Returns:
- a list of incoming connection types
-
getOutgoingConnectionTypes
public java.util.List<java.lang.String> getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce at this time. Subclasses to override (if necessary). This default implementation returns null (i.e. does not produce any outgoing data).- Specified by:
getOutgoingConnectionTypesin interfaceBaseStepExtender- Specified by:
getOutgoingConnectionTypesin interfaceStep- Returns:
- a list of outgoing connection types that this step can produce
-
getDatasets
public java.util.List<Data> getDatasets()
Get the datasets seen so far- Returns:
- a list of datasets
-
retrieveData
public java.lang.Object retrieveData()
Description copied from interface:DataCollectorGet the data that this collector has collected- Specified by:
retrieveDatain interfaceDataCollector- Returns:
- the data collected by this collector
-
restoreData
public void restoreData(java.lang.Object data) throws WekaExceptionDescription copied from interface:DataCollectorSet the data for this collector- Specified by:
restoreDatain interfaceDataCollector- Parameters:
data- the data to set- Throws:
WekaException- if there is a problem restoring data
-
-