public interface Task extends Tool
Modifier and Type | Interface and Description |
---|---|
static class |
Task.ConnectionStatus |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_NODE_REQUIREMENT |
static java.lang.String |
DEPRECATED_GUI_XPOS |
static java.lang.String |
DEPRECATED_GUI_YPOS |
static java.lang.String |
ERROR_MESSAGE |
static java.lang.String |
ESSENTIAL |
static java.lang.String |
ESSENTIAL_IF_CONNECTED |
static java.lang.String |
EXECUTION_COUNT |
static java.lang.String |
EXECUTION_REQUEST_COUNT |
static java.lang.String |
EXECUTION_STATE |
static java.lang.String |
GUI_X
GUI Position in the Triana co-ordinate space - relative to size of a task component
|
static java.lang.String |
GUI_Y |
static java.lang.String |
NODE_PROPERTIES |
static java.lang.String |
NODE_REQUIREMENT |
static java.lang.String |
OPTIONAL |
static java.lang.String |
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
Modifier and Type | Method and Description |
---|---|
Node |
addDataInputNode()
Adds a data input node.
|
Node |
addDataOutputNode()
Adds a data output node.
|
void |
addDeclaredNodeProperty(java.lang.String prop) |
ParameterNode |
addParameterInputNode(java.lang.String paramname)
Adds a parameter input node for the specified parameter name.
|
ParameterNode |
addParameterOutputNode(java.lang.String paramname)
Adds a parameter output node for the specified paramter name.
|
void |
addTaskListener(TaskListener listener)
Adds a task listener to this task.
|
void |
dispose()
Cleans up any operations associated with this task
|
int |
getAbsoluteNodeIndex(Node node)
This is a convience method to provide backward compatibility with TrianaGUI, in which parameter nodes where
indexed after data nodes.
|
TaskGraphContext |
getContext() |
java.lang.Object |
getContextProperty(java.lang.String name) |
Node |
getDataInputNode(int index) |
Node[] |
getDataInputNodes() |
Node |
getDataOutputNode(int index) |
Node[] |
getDataOutputNodes() |
java.util.List<java.lang.String> |
getDeclaredNodeProperties() |
java.lang.String |
getDefaultNodeRequirement() |
java.lang.String |
getErrorMessage() |
int |
getExecutionCount() |
int |
getExecutionRequestCount() |
ExecutionState |
getExecutionState() |
Node |
getInputNode(int absoluteindex) |
Node[] |
getInputNodes() |
java.lang.String |
getInstanceID()
All copies of a task within a parameter space (sharing the same parameters) have the same intance id.
|
int |
getNodeIndex(Node node)
Returns the index of the specified node within the data input/output and parameter input/output nodes; or -1 if
not attached to this task.
|
java.lang.String |
getNodeRequirement(int index) |
Node |
getOutputNode(int absoluteindex) |
Node[] |
getOutputNodes() |
ParameterNode |
getParameterInputNode(int index) |
ParameterNode[] |
getParameterInputNodes() |
ParameterNode |
getParameterOutputNode(int index) |
ParameterNode[] |
getParameterOutputNodes() |
TaskGraph |
getParent() |
java.lang.String |
getQualifiedTaskName() |
TaskGraph |
getUltimateParent() |
void |
init()
Initialisation method is called immediately after the parent is set
|
boolean |
isDataInputNode(Node node) |
boolean |
isDataOutputNode(Node node) |
boolean |
isParameterInputNode(Node node) |
boolean |
isParameterOutputNode(Node node) |
boolean |
isRunContinuously() |
void |
removeDataInputNode(Node node)
Removes a data input node.
|
void |
removeDataOutputNode(Node node)
Removes a data output node.
|
void |
removeNode(Node node)
Removes the specified node
|
void |
removeParameterInputNode(ParameterNode node)
Removes a parameter input node.
|
void |
removeParameterOutputNode(ParameterNode node)
Removes a parameter output node.
|
void |
removeTaskListener(TaskListener listener)
Removes a task listener from this task.
|
void |
setContextProperty(java.lang.String name,
java.lang.Object value) |
void |
setDeclaredNodeProperties(java.util.List<java.lang.String> props) |
void |
setDefaultNodeRequirement(java.lang.String requirement)
Sets the default input node requirement for this task (ESSENTIAL, ESSENTIAL_IF_CONNECTED or OPTIONAL)
|
void |
setNodeRequirement(int index,
java.lang.String requirement)
Sets the node requirement for the specified input node index (ESSENTIAL, ESSENTIAL_IF_CONNECTED or OPTIONAL)
|
void |
setParent(TaskGraph taskgraph)
Sets the parent for this task
|
void |
setRunContinuously(boolean state)
Sets whether this task runs continuously.
|
void |
updateProxy()
Notifies task listeners that the proxy has been updated
|
addExtension, addRenderingHint, getDataInputNodeCount, getDataInputTypes, getDataInputTypes, getDataOutputNodeCount, getDataOutputTypes, getDataOutputTypes, getDefaultDataInputNodes, getDefaultDataOutputNodes, getDefinitionPath, getDefinitionType, getDisplayName, getDisplayPackage, getExtension, getExtensionNames, getHelpFile, getInputNodeCount, getMaxDataInputNodes, getMaxDataOutputNodes, getMinDataInputNodes, getMinDataOutputNodes, getOutputNodeCount, getParameter, getParameterInputName, getParameterInputNodeCount, getParameterNames, getParameterOutputName, getParameterOutputNodeCount, getParameterType, getPopUpDescription, getProperties, getProxy, getQualifiedToolName, getRenderingHint, getRenderingHints, getSubTitle, getToolBox, getToolName, getToolPackage, getVersion, isExtensionName, isParameterName, isParameterTriggerNode, isRenderingHint, removeExtension, removeParameter, removeProxy, removeRenderingHint, setDataInputTypes, setDataOutputTypes, setDefinitionPath, setDefinitionType, setHelpFile, setParameter, setParameterInputs, setParameterOutputs, setParameterType, setPopUpDescription, setProperties, setProxy, setSubTitle, setToolBox, setToolName, setToolPackage, setVersion
static final java.lang.String GUI_X
static final java.lang.String GUI_Y
static final java.lang.String DEPRECATED_GUI_XPOS
static final java.lang.String DEPRECATED_GUI_YPOS
static final java.lang.String NODE_PROPERTIES
static final java.lang.String EXECUTION_REQUEST_COUNT
static final java.lang.String EXECUTION_COUNT
static final java.lang.String EXECUTION_STATE
static final java.lang.String ERROR_MESSAGE
static final java.lang.String OUTPUT_TYPE
static final java.lang.String DEFAULT_NODE_REQUIREMENT
static final java.lang.String NODE_REQUIREMENT
static final java.lang.String ESSENTIAL
static final java.lang.String ESSENTIAL_IF_CONNECTED
static final java.lang.String OPTIONAL
java.lang.String getQualifiedTaskName()
void updateProxy()
TaskGraph getParent()
TaskGraph getUltimateParent()
java.lang.String getInstanceID()
void addTaskListener(TaskListener listener)
void removeTaskListener(TaskListener listener)
Node addDataInputNode() throws NodeException
NodeException
void removeDataInputNode(Node node)
Node getDataInputNode(int index)
Node[] getDataInputNodes()
Node addDataOutputNode() throws NodeException
NodeException
void removeDataOutputNode(Node node)
Node getDataOutputNode(int index)
Node[] getDataOutputNodes()
ParameterNode addParameterInputNode(java.lang.String paramname) throws NodeException
NodeException
void removeParameterInputNode(ParameterNode node)
ParameterNode getParameterInputNode(int index)
ParameterNode[] getParameterInputNodes()
ParameterNode addParameterOutputNode(java.lang.String paramname) throws NodeException
NodeException
void removeParameterOutputNode(ParameterNode node)
ParameterNode getParameterOutputNode(int index)
ParameterNode[] getParameterOutputNodes()
Node[] getInputNodes()
Node getInputNode(int absoluteindex)
Node[] getOutputNodes()
Node getOutputNode(int absoluteindex)
void removeNode(Node node)
boolean isRunContinuously()
void setRunContinuously(boolean state)
void setDefaultNodeRequirement(java.lang.String requirement)
java.lang.String getDefaultNodeRequirement()
void setNodeRequirement(int index, java.lang.String requirement)
java.lang.String getNodeRequirement(int index)
int getExecutionRequestCount()
int getExecutionCount()
ExecutionState getExecutionState()
java.lang.String getErrorMessage()
void init() throws TaskException
TaskException
void setParent(TaskGraph taskgraph)
int getNodeIndex(Node node)
int getAbsoluteNodeIndex(Node node)
boolean isDataInputNode(Node node)
boolean isDataOutputNode(Node node)
boolean isParameterInputNode(Node node)
boolean isParameterOutputNode(Node node)
void dispose()
TaskGraphContext getContext()
java.lang.Object getContextProperty(java.lang.String name)
void setContextProperty(java.lang.String name, java.lang.Object value)
void setDeclaredNodeProperties(java.util.List<java.lang.String> props)
void addDeclaredNodeProperty(java.lang.String prop)
java.util.List<java.lang.String> getDeclaredNodeProperties()