Task.ConnectionStatusDEFAULT_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_TYPEANY_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 |
|---|
PoisonTask() |
PoisonTask(TrianaProperties properties) |
| 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) |
void |
addExtension(java.lang.String name,
java.lang.String extension)
Adds an extension
|
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 |
addRenderingHint(RenderingHint hints)
Adds a rendering hint
|
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) |
int |
getDataInputNodeCount() |
Node[] |
getDataInputNodes() |
java.lang.String[] |
getDataInputTypes() |
java.lang.String[] |
getDataInputTypes(int node) |
Node |
getDataOutputNode(int index) |
int |
getDataOutputNodeCount() |
Node[] |
getDataOutputNodes() |
java.lang.String[] |
getDataOutputTypes() |
java.lang.String[] |
getDataOutputTypes(int node) |
java.util.List<java.lang.String> |
getDeclaredNodeProperties() |
int |
getDefaultDataInputNodes() |
int |
getDefaultDataOutputNodes() |
java.lang.String |
getDefaultNodeRequirement() |
java.net.URL |
getDefinitionPath() |
java.lang.String |
getDefinitionType() |
java.lang.String |
getDisplayName() |
java.lang.String |
getDisplayPackage() |
java.lang.String |
getErrorMessage() |
int |
getExecutionCount() |
int |
getExecutionRequestCount() |
ExecutionState |
getExecutionState() |
java.lang.String |
getExtension(java.lang.String name) |
java.lang.String[] |
getExtensionNames() |
java.lang.String |
getHelpFile() |
Node |
getInputNode(int absoluteindex) |
int |
getInputNodeCount() |
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 |
getMaxDataInputNodes() |
int |
getMaxDataOutputNodes() |
int |
getMinDataInputNodes() |
int |
getMinDataOutputNodes() |
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) |
int |
getOutputNodeCount() |
Node[] |
getOutputNodes() |
java.lang.Object |
getParameter(java.lang.String name) |
java.lang.String |
getParameterInputName(int index) |
ParameterNode |
getParameterInputNode(int index) |
int |
getParameterInputNodeCount() |
ParameterNode[] |
getParameterInputNodes() |
java.lang.String[] |
getParameterNames() |
java.lang.String |
getParameterOutputName(int index) |
ParameterNode |
getParameterOutputNode(int index) |
int |
getParameterOutputNodeCount() |
ParameterNode[] |
getParameterOutputNodes() |
java.lang.String |
getParameterType(java.lang.String name) |
TaskGraph |
getParent() |
java.lang.String |
getPopUpDescription() |
TrianaProperties |
getProperties()
Not sure what this does - how is this created etc ?
|
Proxy |
getProxy() |
java.lang.String |
getQualifiedTaskName() |
java.lang.String |
getQualifiedToolName() |
RenderingHint |
getRenderingHint(java.lang.String hint) |
RenderingHint[] |
getRenderingHints() |
java.lang.String |
getSubTitle() |
Toolbox |
getToolBox() |
java.lang.String |
getToolName() |
java.lang.String |
getToolPackage() |
TaskGraph |
getUltimateParent() |
java.lang.String |
getVersion() |
void |
init()
Initialisation method is called immediately after the parent is set
|
boolean |
isDataInputNode(Node node) |
boolean |
isDataOutputNode(Node node) |
boolean |
isExtensionName(java.lang.String name) |
boolean |
isParameterInputNode(Node node) |
boolean |
isParameterName(java.lang.String name) |
boolean |
isParameterOutputNode(Node node) |
boolean |
isParameterTriggerNode(int index) |
boolean |
isRenderingHint(java.lang.String hint) |
boolean |
isRunContinuously() |
void |
removeDataInputNode(Node node)
Removes a data input node.
|
void |
removeDataOutputNode(Node node)
Removes a data output node.
|
void |
removeExtension(java.lang.String name)
Removes an extension
|
void |
removeNode(Node node)
Removes the specified node
|
void |
removeParameter(java.lang.String name)
Removes the value associated with the specified name.
|
void |
removeParameterInputNode(ParameterNode node)
Removes a parameter input node.
|
void |
removeParameterOutputNode(ParameterNode node)
Removes a parameter output node.
|
void |
removeProxy()
Removes the proxy for this tool
|
void |
removeRenderingHint(java.lang.String hint)
Removes a rendering hint
|
void |
removeTaskListener(TaskListener listener)
Removes a task listener from this task.
|
void |
setContextProperty(java.lang.String name,
java.lang.Object value) |
void |
setDataInputTypes(java.lang.String[] types)
Used to set the input types
|
void |
setDataOutputTypes(java.lang.String[] types)
Used to set the output types.
|
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 |
setDefinitionPath(java.net.URL filepath)
Used by ToolTable to set the location of the file this tool was loaded from
|
void |
setDefinitionType(java.lang.String type)
used when creating clones that are not based on the same definition file type
|
void |
setHelpFile(java.lang.String url)
Used to set the help file url.
|
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 |
setParameter(java.lang.String name,
java.lang.Object value)
Used to set the parameters.
|
void |
setParameterInputs(java.lang.String[] names,
boolean[] trigger)
Used to set the names/number of input parameter nodes, and whether they are trigger nodes.
|
void |
setParameterOutputs(java.lang.String[] names)
Used to set the names/number of output parameter nodes
|
void |
setParameterType(java.lang.String name,
java.lang.String type)
Used to set the parameter types.
|
void |
setParent(TaskGraph taskgraph)
Sets the parent for this task
|
void |
setPopUpDescription(java.lang.String name)
Used to set the pop up description.
|
void |
setProperties(TrianaProperties properties) |
void |
setProxy(Proxy proxy)
Sets the proxy for this tool
|
void |
setRunContinuously(boolean state)
Sets whether this task runs continuously.
|
void |
setSubTitle(java.lang.String title) |
void |
setToolBox(Toolbox toolboxpath)
Used by ToolTable to set the location of the toolbox this tool was loaded from
|
void |
setToolName(java.lang.String toolName)
Used to set the tool name of this ToolImp.
|
void |
setToolPackage(java.lang.String pakageName)
Set the package name for this tool.
|
void |
setVersion(java.lang.String version)
================from Tool======================
|
void |
updateProxy()
Notifies task listeners that the proxy has been updated
|
public PoisonTask(TrianaProperties properties)
public PoisonTask()
public TrianaProperties getProperties()
getProperties in interface Toolpublic void setProperties(TrianaProperties properties)
setProperties in interface Toolpublic java.lang.String getQualifiedTaskName()
getQualifiedTaskName in interface Taskpublic void updateProxy()
TaskupdateProxy in interface Taskpublic TaskGraph getParent()
public TaskGraph getUltimateParent()
getUltimateParent in interface Taskpublic java.lang.String getInstanceID()
TaskgetInstanceID in interface Taskpublic void addTaskListener(TaskListener listener)
TaskaddTaskListener in interface Taskpublic void removeTaskListener(TaskListener listener)
TaskremoveTaskListener in interface Taskpublic Node addDataInputNode() throws NodeException
TaskaddDataInputNode in interface TaskNodeExceptionpublic void removeDataInputNode(Node node)
TaskremoveDataInputNode in interface Taskpublic Node getDataInputNode(int index)
getDataInputNode in interface Taskpublic Node[] getDataInputNodes()
getDataInputNodes in interface Taskpublic Node addDataOutputNode() throws NodeException
TaskaddDataOutputNode in interface TaskNodeExceptionpublic void removeDataOutputNode(Node node)
TaskremoveDataOutputNode in interface Taskpublic Node getDataOutputNode(int index)
getDataOutputNode in interface Taskpublic Node[] getDataOutputNodes()
getDataOutputNodes in interface Taskpublic ParameterNode addParameterInputNode(java.lang.String paramname) throws NodeException
TaskaddParameterInputNode in interface TaskNodeExceptionpublic void removeParameterInputNode(ParameterNode node)
TaskremoveParameterInputNode in interface Taskpublic ParameterNode getParameterInputNode(int index)
getParameterInputNode in interface Taskpublic ParameterNode[] getParameterInputNodes()
getParameterInputNodes in interface Taskpublic ParameterNode addParameterOutputNode(java.lang.String paramname) throws NodeException
TaskaddParameterOutputNode in interface TaskNodeExceptionpublic void removeParameterOutputNode(ParameterNode node)
TaskremoveParameterOutputNode in interface Taskpublic ParameterNode getParameterOutputNode(int index)
getParameterOutputNode in interface Taskpublic ParameterNode[] getParameterOutputNodes()
getParameterOutputNodes in interface Taskpublic Node[] getInputNodes()
getInputNodes in interface Taskpublic Node getInputNode(int absoluteindex)
getInputNode in interface Taskpublic Node[] getOutputNodes()
getOutputNodes in interface Taskpublic Node getOutputNode(int absoluteindex)
getOutputNode in interface Taskpublic void removeNode(Node node)
TaskremoveNode in interface Taskpublic boolean isRunContinuously()
isRunContinuously in interface Taskpublic void setRunContinuously(boolean state)
TasksetRunContinuously in interface Taskpublic void setDefaultNodeRequirement(java.lang.String requirement)
TasksetDefaultNodeRequirement in interface Taskpublic java.lang.String getDefaultNodeRequirement()
getDefaultNodeRequirement in interface Taskpublic void setNodeRequirement(int index,
java.lang.String requirement)
TasksetNodeRequirement in interface Taskpublic java.lang.String getNodeRequirement(int index)
getNodeRequirement in interface Taskpublic int getExecutionRequestCount()
getExecutionRequestCount in interface Taskpublic int getExecutionCount()
getExecutionCount in interface Taskpublic ExecutionState getExecutionState()
getExecutionState in interface Taskpublic java.lang.String getErrorMessage()
getErrorMessage in interface Taskpublic void init()
throws TaskException
Taskinit in interface TaskTaskExceptionpublic void setParent(TaskGraph taskgraph)
Taskpublic int getNodeIndex(Node node)
TaskgetNodeIndex in interface Taskpublic int getAbsoluteNodeIndex(Node node)
TaskgetAbsoluteNodeIndex in interface Taskpublic boolean isDataInputNode(Node node)
isDataInputNode in interface Taskpublic boolean isDataOutputNode(Node node)
isDataOutputNode in interface Taskpublic boolean isParameterInputNode(Node node)
isParameterInputNode in interface Taskpublic boolean isParameterOutputNode(Node node)
isParameterOutputNode in interface Taskpublic void dispose()
Taskpublic TaskGraphContext getContext()
getContext in interface Taskpublic java.lang.Object getContextProperty(java.lang.String name)
getContextProperty in interface Taskpublic void setContextProperty(java.lang.String name,
java.lang.Object value)
setContextProperty in interface Taskpublic void setDeclaredNodeProperties(java.util.List<java.lang.String> props)
setDeclaredNodeProperties in interface Taskpublic void addDeclaredNodeProperty(java.lang.String prop)
addDeclaredNodeProperty in interface Taskpublic java.util.List<java.lang.String> getDeclaredNodeProperties()
getDeclaredNodeProperties in interface Taskpublic java.lang.String getSubTitle()
getSubTitle in interface Toolpublic void setSubTitle(java.lang.String title)
setSubTitle in interface Toolpublic java.lang.String getVersion()
getVersion in interface Toolpublic java.lang.String getToolName()
getToolName in interface Toolpublic java.lang.String getDisplayName()
getDisplayName in interface Toolpublic java.lang.String getDisplayPackage()
getDisplayPackage in interface Toolpublic java.lang.String getDefinitionType()
getDefinitionType in interface Toolpublic java.lang.String getToolPackage()
getToolPackage in interface Toolpublic java.lang.String getQualifiedToolName()
getQualifiedToolName in interface Toolpublic java.net.URL getDefinitionPath()
getDefinitionPath in interface Toolpublic Toolbox getToolBox()
getToolBox in interface Toolpublic Proxy getProxy()
public RenderingHint[] getRenderingHints()
getRenderingHints in interface Toolpublic RenderingHint getRenderingHint(java.lang.String hint)
getRenderingHint in interface Toolpublic boolean isRenderingHint(java.lang.String hint)
isRenderingHint in interface Toolpublic java.lang.Object getParameter(java.lang.String name)
getParameter in interface Toolpublic java.lang.String getParameterType(java.lang.String name)
getParameterType in interface Toolpublic java.lang.String[] getParameterNames()
getParameterNames in interface Toolpublic boolean isParameterName(java.lang.String name)
isParameterName in interface Toolpublic java.lang.String getPopUpDescription()
getPopUpDescription in interface Toolpublic java.lang.String getHelpFile()
getHelpFile in interface Toolpublic java.lang.String[] getDataInputTypes()
getDataInputTypes in interface Toolpublic java.lang.String[] getDataInputTypes(int node)
getDataInputTypes in interface Toolpublic java.lang.String[] getDataOutputTypes()
getDataOutputTypes in interface Toolpublic java.lang.String[] getDataOutputTypes(int node)
getDataOutputTypes in interface Toolpublic int getDataInputNodeCount()
getDataInputNodeCount in interface Toolpublic int getDataOutputNodeCount()
getDataOutputNodeCount in interface Toolpublic int getParameterInputNodeCount()
getParameterInputNodeCount in interface Toolpublic java.lang.String getParameterInputName(int index)
getParameterInputName in interface Toolpublic boolean isParameterTriggerNode(int index)
isParameterTriggerNode in interface Toolpublic int getParameterOutputNodeCount()
getParameterOutputNodeCount in interface Toolpublic java.lang.String getParameterOutputName(int index)
getParameterOutputName in interface Toolpublic int getInputNodeCount()
getInputNodeCount in interface Toolpublic int getOutputNodeCount()
getOutputNodeCount in interface Toolpublic int getMinDataInputNodes()
getMinDataInputNodes in interface Toolpublic int getMaxDataInputNodes()
getMaxDataInputNodes in interface Toolpublic int getDefaultDataInputNodes()
getDefaultDataInputNodes in interface Toolpublic int getMinDataOutputNodes()
getMinDataOutputNodes in interface Toolpublic int getMaxDataOutputNodes()
getMaxDataOutputNodes in interface Toolpublic int getDefaultDataOutputNodes()
getDefaultDataOutputNodes in interface Toolpublic java.lang.String getExtension(java.lang.String name)
getExtension in interface Toolpublic java.lang.String[] getExtensionNames()
getExtensionNames in interface Toolpublic boolean isExtensionName(java.lang.String name)
isExtensionName in interface Toolpublic void setVersion(java.lang.String version)
ToolsetVersion in interface Toolpublic void setToolName(java.lang.String toolName)
ToolsetToolName in interface Toolpublic void setToolPackage(java.lang.String pakageName)
ToolsetToolPackage in interface Toolpublic void setDefinitionPath(java.net.URL filepath)
ToolsetDefinitionPath in interface Toolpublic void setToolBox(Toolbox toolboxpath)
ToolsetToolBox in interface Toolpublic void setDefinitionType(java.lang.String type)
ToolsetDefinitionType in interface Toolpublic void setProxy(Proxy proxy) throws TaskException
ToolsetProxy in interface ToolTaskExceptionpublic void removeProxy()
throws TaskException
ToolremoveProxy in interface ToolTaskExceptionpublic void addRenderingHint(RenderingHint hints)
TooladdRenderingHint in interface Toolpublic void removeRenderingHint(java.lang.String hint)
ToolremoveRenderingHint in interface Toolpublic void setParameter(java.lang.String name,
java.lang.Object value)
ToolsetParameter in interface Toolpublic void setParameterType(java.lang.String name,
java.lang.String type)
ToolsetParameterType in interface Toolpublic void removeParameter(java.lang.String name)
ToolremoveParameter in interface Toolpublic void setPopUpDescription(java.lang.String name)
ToolsetPopUpDescription in interface Toolpublic void setHelpFile(java.lang.String url)
ToolsetHelpFile in interface Toolpublic void setDataInputTypes(java.lang.String[] types)
ToolsetDataInputTypes in interface Toolpublic void setDataOutputTypes(java.lang.String[] types)
ToolsetDataOutputTypes in interface Toolpublic void setParameterInputs(java.lang.String[] names,
boolean[] trigger)
throws NodeException
ToolsetParameterInputs in interface ToolNodeExceptionpublic void setParameterOutputs(java.lang.String[] names)
throws NodeException
ToolsetParameterOutputs in interface ToolNodeExceptionpublic void addExtension(java.lang.String name,
java.lang.String extension)
TooladdExtension in interface Toolpublic void removeExtension(java.lang.String name)
ToolremoveExtension in interface Tool