public abstract class AbstractRunnableTask extends TaskImp implements RunnableInstance
Task.ConnectionStatus
Modifier and Type | Field and Description |
---|---|
protected java.util.HashSet |
execlisteners
a list of the execution listeners for this task
|
DEFAULT_NODE_REQUIREMENT, DEPRECATED_GUI_XPOS, DEPRECATED_GUI_YPOS, ERROR_MESSAGE, ESSENTIAL, ESSENTIAL_IF_CONNECTED, EXECUTION_COUNT, EXECUTION_REQUEST_COUNT, EXECUTION_STATE, GUI_X, GUI_Y, NODE_PROPERTIES, NODE_REQUIREMENT, OPTIONAL, OUTPUT_TYPE
ANY_DATA_TYPE, CLONE_ALL_OUTPUT, CLONE_MULTIPLE_OUTPUT, COPY_OUTPUT, DEFAULT_IN_NODES, DEFAULT_INPUT_NODES, DEFAULT_MAX_NODES, DEFAULT_MIN_NODES, DEFAULT_OUT_NODES, DEFAULT_OUTPUT_NODES, DEFAULT_POP_UP_DESCRIPTION, DEFINITION_JAVA_CLASS, DEFINITION_METADATA, DEFINITION_TRIANA_XML, DEFINITION_UNKNOWN, GUI, GUI_BUILDER, HELP_FILE_PARAM, IMMEDIATE_UPDATE, INTERNAL, LATE_INITIALIZE, MAX_INPUT_NODES, MAX_OUTPUT_NODES, MIN_INPUT_NODES, MIN_OUTPUT_NODES, NO_UPDATE, OLD_GUI_BUILDER, ON_TASK_INSTANTIATION, ON_USER_ACCESS, OUTPUT_POLICY, PANEL_INSTANCE, PARAM_PANEL_CLASS, PARAM_PANEL_HIDE, PARAM_PANEL_INSTANTIATE, PARAM_PANEL_SHOW, PARAM_UPDATE_POLICY, POP_UP_DESCRIPTION, PROCESS_UPDATE, TOOL_VERSION, TRANSIENT, TRANSIENT_ACCESSIBLE, UNKNOWN_DATA_TYPE, UNKNOWN_TYPE, USER_ACCESSIBLE
Constructor and Description |
---|
AbstractRunnableTask(Tool tool,
TaskFactory factory,
boolean preserveinst) |
Modifier and Type | Method and Description |
---|---|
void |
addExecutionListener(ExecutionListener listener)
Adds a execution listener to this runnable instance
|
void |
dispose()
cleans up any operations associated with this task
|
protected void |
executionFinished()
Called by subclass when execution is finished
|
protected void |
executionRequested()
Called by subclass when execution is requested
|
protected void |
executionReset()
Called by subclass when execution is reset
|
protected void |
executionStarting()
Called by subclass when execution is starting
|
abstract void |
finished()
Tell the data monitor that this thread monitor has completed outputting the data i.e.
|
ExecutionState |
getExecutionState() |
void |
notifyError(java.lang.String message)
Stops the scheduler.
|
void |
pause()
Request a runnable instance to pause
|
void |
removeExecutionListener(ExecutionListener listener)
Removes a execution listener from this runnable instance
|
void |
reset()
Order a runnable instance to stop and reset it to its pre-run state
|
void |
resume()
Request a runnable instance to resume (unpause)
|
void |
setParent(TaskGraph taskgraph)
Sets the taskgraph that this task is located within
|
protected void |
waitPause()
waits until the task is unpaused
|
abstract void |
wakeUp()
Indicates to the runnable instance that a wake-up signal has been received from the scheduler.
|
abstract void |
wakeUp(Node node)
Indicates to the runnable instance that a wake-up signal has been received from the specified node (e.g.
|
addDataInputNode, addDataOutputNode, addDeclaredNodeProperty, addParameterInputNode, addParameterOutputNode, addTaskListener, getAbsoluteNodeIndex, getContext, getContextProperty, getDataInputNode, getDataInputNodeCount, getDataInputNodes, getDataOutputNode, getDataOutputNodeCount, getDataOutputNodes, getDeclaredNodeProperties, getDefaultNodeRequirement, getErrorMessage, getExecutionCount, getExecutionRequestCount, getInputNode, getInputNodes, getInstanceID, getNodeIndex, getNodeRequirement, getOutputNode, getOutputNodes, getParameterInputName, getParameterInputNode, getParameterInputNodeCount, getParameterInputNodes, getParameterOutputName, getParameterOutputNode, getParameterOutputNodeCount, getParameterOutputNodes, getParent, getQualifiedTaskName, getUltimateParent, init, isDataInputNode, isDataOutputNode, isParameterInputNode, isParameterOutputNode, isParameterTriggerNode, isRunContinuously, notifyNodeAdded, notifyNodeRemoved, notifyParameterSet, notifyPropertyUpdate, notifyTaskDisposed, removeDataInputNode, removeDataOutputNode, removeNode, removeParameter, removeParameterInputNode, removeParameterOutputNode, removeProxy, removeTaskListener, setContextProperty, setDataInputNodeCount, setDataOutputNodeCount, setDeclaredNodeProperties, setDefaultNodeRequirement, setNodeRequirement, setParameter, setParameterInputs, setParameterOutputNames, setProxy, setRunContinuously, setSubTitle, setToolName, updateProxy
addExtension, addRenderingHint, getDataInputTypes, getDataInputTypes, getDataOutputTypes, getDataOutputTypes, getDefaultDataInputNodes, getDefaultDataOutputNodes, getDefinitionPath, getDefinitionType, getDisplayName, getDisplayPackage, getExtension, getExtensionNames, getHelpFile, getInputNodeCount, getMaxDataInputNodes, getMaxDataOutputNodes, getMinDataInputNodes, getMinDataOutputNodes, getOutputNodeCount, getParameter, getParameterNames, getParameterType, getPopUpDescription, getProperties, getProxy, getQualifiedToolName, getRenderingHint, getRenderingHints, getSubTitle, getToolBox, getToolName, getToolPackage, getUnitName, getUnitPackage, getVersion, isExtensionName, isParameterName, isRenderingHint, removeExtension, removeRenderingHint, setDataInputTypes, setDataInputTypes, setDataOutputTypes, setDataOutputTypes, setDefaultDataInputNodes, setDefaultDataOutputNodes, setDefinitionPath, setDefinitionType, setDisplayName, setDisplayPackage, setHelpFile, setMaxDataInputNodes, setMaxDataOutputNodes, setMinDataInputNodes, setMinDataOutputNodes, setParameterOutputs, setParameterType, setPopUpDescription, setProperties, setToolBox, setToolPackage, setVersion, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addExtension, addRenderingHint, getDataInputTypes, getDataInputTypes, getDataOutputTypes, getDataOutputTypes, getDefaultDataInputNodes, getDefaultDataOutputNodes, getDefinitionPath, getDefinitionType, getDisplayName, getDisplayPackage, getExtension, getExtensionNames, getHelpFile, getInputNodeCount, getMaxDataInputNodes, getMaxDataOutputNodes, getMinDataInputNodes, getMinDataOutputNodes, getOutputNodeCount, getParameter, getParameterNames, getParameterType, getPopUpDescription, getProperties, getProxy, getQualifiedToolName, getRenderingHint, getRenderingHints, getSubTitle, getToolBox, getToolName, getToolPackage, getVersion, isExtensionName, isParameterName, isRenderingHint, removeExtension, removeRenderingHint, setDataInputTypes, setDataOutputTypes, setDefinitionPath, setDefinitionType, setHelpFile, setParameterOutputs, setParameterType, setPopUpDescription, setProperties, setToolBox, setToolPackage, setVersion
protected java.util.HashSet execlisteners
public AbstractRunnableTask(Tool tool, TaskFactory factory, boolean preserveinst) throws TaskException
TaskException
public void setParent(TaskGraph taskgraph)
TaskImp
public void addExecutionListener(ExecutionListener listener)
addExecutionListener
in interface RunnableInstance
public void removeExecutionListener(ExecutionListener listener)
removeExecutionListener
in interface RunnableInstance
public ExecutionState getExecutionState()
getExecutionState
in interface RunnableInstance
getExecutionState
in interface Task
getExecutionState
in class TaskImp
protected void executionRequested()
protected void executionStarting()
protected void executionFinished()
protected void executionReset()
public abstract void wakeUp()
wakeUp
in interface RunnableInstance
public abstract void wakeUp(Node node)
wakeUp
in interface RunnableInstance
public void pause()
pause
in interface RunnableInstance
public void resume()
resume
in interface RunnableInstance
public void reset()
reset
in interface RunnableInstance
public abstract void finished()
finished
in interface RunnableInstance
protected void waitPause()
public void notifyError(java.lang.String message) throws NotifyErrorException
NotifyErrorException