public abstract class BaseStep extends Object implements Step, BaseStepExtender, Serializable
| Constructor and Description |
|---|
BaseStep()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
environmentSubstitute(String source)
Substitute the values of environment variables in the given string
|
String |
getCustomEditorForStep()
Return the fully qualified name of a custom editor component (JComponent)
to use for editing the properties of the step.
|
Defaults |
getDefaultSettings()
Get default settings for the step (if any).
|
Map<String,String> |
getInteractiveViewers()
When running in a graphical execution environment a step can make one or
more popup Viewer components available.
|
Map<String,StepInteractiveViewer> |
getInteractiveViewersImpls()
An alternative to getStepInteractiveViewers that returns a Map of
instantiated StepInteractiveViewer objects.
|
String |
getName()
Get the name of this step
|
StepManager |
getStepManager()
Get the step manager for this step
|
String |
globalInfo()
Attempt to get default "about" information for this step by grabbing the
toolTip from the KFStep annotation.
|
boolean |
isResourceIntensive()
Get whether this step is resource intensive (cpu/memory) or not.
|
boolean |
isStopRequested()
Convenience method that calls
StepManager.isStopRequested() |
Instances |
outputStructureForConnectionType(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 |
setName(String name)
Set the name of this step
|
void |
setStepIsResourceIntensive(boolean isResourceIntensive)
Set whether this step is resource intensive (cpu/memory) or not.
|
void |
setStepManager(StepManager manager)
Set the step manager for this step
|
void |
start()
Start processing.
|
void |
stop()
Request that processing be stopped.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIncomingConnectionTypes, getOutgoingConnectionTypes, stepInitgetIncomingConnectionTypes, getOutgoingConnectionTypes, stepInitpublic String globalInfo()
@NotPersistable public StepManager getStepManager()
getStepManager in interface Steppublic void setStepManager(StepManager manager)
setStepManager in interface Stepmanager - the step manager to use@ProgrammaticProperty public void setStepIsResourceIntensive(boolean isResourceIntensive)
isResourceIntensive - true if this step is resource intensive.public boolean isResourceIntensive()
public String getName()
@ProgrammaticProperty public void setName(String name)
public void start()
throws WekaException
start in interface BaseStepExtenderstart in interface StepWekaException - if a problem occurspublic void stop()
isStopRequested() periodically to see if they should stop
processing.public Instances outputStructureForConnectionType(String connectionName) throws WekaException
outputStructureForConnectionType in interface StepconnectionName - the name of the connection type to get the output
structure forWekaException - if a problem occurspublic void processIncoming(Data data) throws WekaException
processIncoming in interface BaseStepExtenderprocessIncoming in interface Stepdata - the payload to processWekaException - if a problem occurspublic String getCustomEditorForStep()
getCustomEditorForStep in interface Steppublic Map<String,String> getInteractiveViewers()
getInteractiveViewers in interface Steppublic Map<String,StepInteractiveViewer> getInteractiveViewersImpls()
getInteractiveViewersImpls in interface Steppublic Defaults getDefaultSettings()
getDefaultSettings in interface Steppublic boolean isStopRequested()
StepManager.isStopRequested()Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.