Task.ConnectionStatus
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 |
---|
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 Tool
public void setProperties(TrianaProperties properties)
setProperties
in interface Tool
public java.lang.String getQualifiedTaskName()
getQualifiedTaskName
in interface Task
public void updateProxy()
Task
updateProxy
in interface Task
public TaskGraph getParent()
public TaskGraph getUltimateParent()
getUltimateParent
in interface Task
public java.lang.String getInstanceID()
Task
getInstanceID
in interface Task
public void addTaskListener(TaskListener listener)
Task
addTaskListener
in interface Task
public void removeTaskListener(TaskListener listener)
Task
removeTaskListener
in interface Task
public Node addDataInputNode() throws NodeException
Task
addDataInputNode
in interface Task
NodeException
public void removeDataInputNode(Node node)
Task
removeDataInputNode
in interface Task
public Node getDataInputNode(int index)
getDataInputNode
in interface Task
public Node[] getDataInputNodes()
getDataInputNodes
in interface Task
public Node addDataOutputNode() throws NodeException
Task
addDataOutputNode
in interface Task
NodeException
public void removeDataOutputNode(Node node)
Task
removeDataOutputNode
in interface Task
public Node getDataOutputNode(int index)
getDataOutputNode
in interface Task
public Node[] getDataOutputNodes()
getDataOutputNodes
in interface Task
public ParameterNode addParameterInputNode(java.lang.String paramname) throws NodeException
Task
addParameterInputNode
in interface Task
NodeException
public void removeParameterInputNode(ParameterNode node)
Task
removeParameterInputNode
in interface Task
public ParameterNode getParameterInputNode(int index)
getParameterInputNode
in interface Task
public ParameterNode[] getParameterInputNodes()
getParameterInputNodes
in interface Task
public ParameterNode addParameterOutputNode(java.lang.String paramname) throws NodeException
Task
addParameterOutputNode
in interface Task
NodeException
public void removeParameterOutputNode(ParameterNode node)
Task
removeParameterOutputNode
in interface Task
public ParameterNode getParameterOutputNode(int index)
getParameterOutputNode
in interface Task
public ParameterNode[] getParameterOutputNodes()
getParameterOutputNodes
in interface Task
public Node[] getInputNodes()
getInputNodes
in interface Task
public Node getInputNode(int absoluteindex)
getInputNode
in interface Task
public Node[] getOutputNodes()
getOutputNodes
in interface Task
public Node getOutputNode(int absoluteindex)
getOutputNode
in interface Task
public void removeNode(Node node)
Task
removeNode
in interface Task
public boolean isRunContinuously()
isRunContinuously
in interface Task
public void setRunContinuously(boolean state)
Task
setRunContinuously
in interface Task
public void setDefaultNodeRequirement(java.lang.String requirement)
Task
setDefaultNodeRequirement
in interface Task
public java.lang.String getDefaultNodeRequirement()
getDefaultNodeRequirement
in interface Task
public void setNodeRequirement(int index, java.lang.String requirement)
Task
setNodeRequirement
in interface Task
public java.lang.String getNodeRequirement(int index)
getNodeRequirement
in interface Task
public int getExecutionRequestCount()
getExecutionRequestCount
in interface Task
public int getExecutionCount()
getExecutionCount
in interface Task
public ExecutionState getExecutionState()
getExecutionState
in interface Task
public java.lang.String getErrorMessage()
getErrorMessage
in interface Task
public void init() throws TaskException
Task
init
in interface Task
TaskException
public void setParent(TaskGraph taskgraph)
Task
public int getNodeIndex(Node node)
Task
getNodeIndex
in interface Task
public int getAbsoluteNodeIndex(Node node)
Task
getAbsoluteNodeIndex
in interface Task
public boolean isDataInputNode(Node node)
isDataInputNode
in interface Task
public boolean isDataOutputNode(Node node)
isDataOutputNode
in interface Task
public boolean isParameterInputNode(Node node)
isParameterInputNode
in interface Task
public boolean isParameterOutputNode(Node node)
isParameterOutputNode
in interface Task
public void dispose()
Task
public TaskGraphContext getContext()
getContext
in interface Task
public java.lang.Object getContextProperty(java.lang.String name)
getContextProperty
in interface Task
public void setContextProperty(java.lang.String name, java.lang.Object value)
setContextProperty
in interface Task
public void setDeclaredNodeProperties(java.util.List<java.lang.String> props)
setDeclaredNodeProperties
in interface Task
public void addDeclaredNodeProperty(java.lang.String prop)
addDeclaredNodeProperty
in interface Task
public java.util.List<java.lang.String> getDeclaredNodeProperties()
getDeclaredNodeProperties
in interface Task
public java.lang.String getSubTitle()
getSubTitle
in interface Tool
public void setSubTitle(java.lang.String title)
setSubTitle
in interface Tool
public java.lang.String getVersion()
getVersion
in interface Tool
public java.lang.String getToolName()
getToolName
in interface Tool
public java.lang.String getDisplayName()
getDisplayName
in interface Tool
public java.lang.String getDisplayPackage()
getDisplayPackage
in interface Tool
public java.lang.String getDefinitionType()
getDefinitionType
in interface Tool
public java.lang.String getToolPackage()
getToolPackage
in interface Tool
public java.lang.String getQualifiedToolName()
getQualifiedToolName
in interface Tool
public java.net.URL getDefinitionPath()
getDefinitionPath
in interface Tool
public Toolbox getToolBox()
getToolBox
in interface Tool
public Proxy getProxy()
public RenderingHint[] getRenderingHints()
getRenderingHints
in interface Tool
public RenderingHint getRenderingHint(java.lang.String hint)
getRenderingHint
in interface Tool
public boolean isRenderingHint(java.lang.String hint)
isRenderingHint
in interface Tool
public java.lang.Object getParameter(java.lang.String name)
getParameter
in interface Tool
public java.lang.String getParameterType(java.lang.String name)
getParameterType
in interface Tool
public java.lang.String[] getParameterNames()
getParameterNames
in interface Tool
public boolean isParameterName(java.lang.String name)
isParameterName
in interface Tool
public java.lang.String getPopUpDescription()
getPopUpDescription
in interface Tool
public java.lang.String getHelpFile()
getHelpFile
in interface Tool
public java.lang.String[] getDataInputTypes()
getDataInputTypes
in interface Tool
public java.lang.String[] getDataInputTypes(int node)
getDataInputTypes
in interface Tool
public java.lang.String[] getDataOutputTypes()
getDataOutputTypes
in interface Tool
public java.lang.String[] getDataOutputTypes(int node)
getDataOutputTypes
in interface Tool
public int getDataInputNodeCount()
getDataInputNodeCount
in interface Tool
public int getDataOutputNodeCount()
getDataOutputNodeCount
in interface Tool
public int getParameterInputNodeCount()
getParameterInputNodeCount
in interface Tool
public java.lang.String getParameterInputName(int index)
getParameterInputName
in interface Tool
public boolean isParameterTriggerNode(int index)
isParameterTriggerNode
in interface Tool
public int getParameterOutputNodeCount()
getParameterOutputNodeCount
in interface Tool
public java.lang.String getParameterOutputName(int index)
getParameterOutputName
in interface Tool
public int getInputNodeCount()
getInputNodeCount
in interface Tool
public int getOutputNodeCount()
getOutputNodeCount
in interface Tool
public int getMinDataInputNodes()
getMinDataInputNodes
in interface Tool
public int getMaxDataInputNodes()
getMaxDataInputNodes
in interface Tool
public int getDefaultDataInputNodes()
getDefaultDataInputNodes
in interface Tool
public int getMinDataOutputNodes()
getMinDataOutputNodes
in interface Tool
public int getMaxDataOutputNodes()
getMaxDataOutputNodes
in interface Tool
public int getDefaultDataOutputNodes()
getDefaultDataOutputNodes
in interface Tool
public java.lang.String getExtension(java.lang.String name)
getExtension
in interface Tool
public java.lang.String[] getExtensionNames()
getExtensionNames
in interface Tool
public boolean isExtensionName(java.lang.String name)
isExtensionName
in interface Tool
public void setVersion(java.lang.String version)
Tool
setVersion
in interface Tool
public void setToolName(java.lang.String toolName)
Tool
setToolName
in interface Tool
public void setToolPackage(java.lang.String pakageName)
Tool
setToolPackage
in interface Tool
public void setDefinitionPath(java.net.URL filepath)
Tool
setDefinitionPath
in interface Tool
public void setToolBox(Toolbox toolboxpath)
Tool
setToolBox
in interface Tool
public void setDefinitionType(java.lang.String type)
Tool
setDefinitionType
in interface Tool
public void setProxy(Proxy proxy) throws TaskException
Tool
setProxy
in interface Tool
TaskException
public void removeProxy() throws TaskException
Tool
removeProxy
in interface Tool
TaskException
public void addRenderingHint(RenderingHint hints)
Tool
addRenderingHint
in interface Tool
public void removeRenderingHint(java.lang.String hint)
Tool
removeRenderingHint
in interface Tool
public void setParameter(java.lang.String name, java.lang.Object value)
Tool
setParameter
in interface Tool
public void setParameterType(java.lang.String name, java.lang.String type)
Tool
setParameterType
in interface Tool
public void removeParameter(java.lang.String name)
Tool
removeParameter
in interface Tool
public void setPopUpDescription(java.lang.String name)
Tool
setPopUpDescription
in interface Tool
public void setHelpFile(java.lang.String url)
Tool
setHelpFile
in interface Tool
public void setDataInputTypes(java.lang.String[] types)
Tool
setDataInputTypes
in interface Tool
public void setDataOutputTypes(java.lang.String[] types)
Tool
setDataOutputTypes
in interface Tool
public void setParameterInputs(java.lang.String[] names, boolean[] trigger) throws NodeException
Tool
setParameterInputs
in interface Tool
NodeException
public void setParameterOutputs(java.lang.String[] names) throws NodeException
Tool
setParameterOutputs
in interface Tool
NodeException
public void addExtension(java.lang.String name, java.lang.String extension)
Tool
addExtension
in interface Tool
public void removeExtension(java.lang.String name)
Tool
removeExtension
in interface Tool