public interface TaskGraph extends Task, ExecutionListener
Task.ConnectionStatus
Modifier and Type | Field and Description |
---|---|
static int |
CONTROL_TASK_CONNECTED |
static int |
CONTROL_TASK_DISCONNECTED |
static int |
CONTROL_TASK_UNSTABLE |
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
Modifier and Type | Method and Description |
---|---|
Node |
addDataInputNode(Node parent)
Adds a data input node, with the specified node as a parent
|
Node |
addDataOutputNode(Node parent)
Adds a data output node, with the specified node as a parent
|
void |
addExecutionListener(ExecutionListener listener)
Adds a execution listener to this runnable instance
|
void |
addTaskGraphListener(TaskGraphListener listener)
Adds a taskgraph listener to this taskgraph.
|
Cable |
connect(Node sendnode,
Node recnode)
Create a cable connecting sendnode to recnode
|
boolean |
containsNode(Node node) |
boolean |
containsTask(java.lang.String identifier) |
boolean |
containsTask(Task task) |
boolean |
containsTaskInstance(java.lang.String instanceid) |
Task |
createControlTask(Tool tool,
boolean preserveinst)
Constructs a new task for looping over the group, optionally preserving the original instance id in the new task.
|
Task |
createTask(Tool tool)
Create a new task in this taskgraph.
|
Task |
createTask(Tool tool,
boolean preserveinst)
Create a new task in this taskgraph, optionally preserving the instance id from the original task in the new
task.
|
void |
disconnect(Cable cable)
Disconnects the specified cable from its nodes.
|
void |
dispose()
cleans up any operations associated with this taskgraph and the tasks within it
|
Task |
getControlTask() |
int |
getControlTaskState() |
Node |
getGroupNodeParent(Node groupnode) |
Task |
getTask(Node node) |
Task |
getTask(java.lang.String name) |
Task |
getTaskInstance(java.lang.String instanceid) |
Task[] |
getTasks(boolean includecontrol) |
TaskGraph |
groupTasks(java.lang.String[] tasknames,
java.lang.String groupname)
Groups the specified tasks, returning the taskgraph created.
|
boolean |
isControlTask() |
boolean |
isControlTaskConnected() |
boolean |
isControlTaskUnstable() |
void |
removeControlTask()
Removes the loop task from the group
|
void |
removeExecutionListener(ExecutionListener listener)
Removes a execution listener from this runnable instance
|
void |
removeTask(Task task)
Remove the specified task from the taskgraph.
|
void |
removeTaskGraphListener(TaskGraphListener listener)
Removes a taskgraph listener from this taskgraph.
|
void |
setControlTaskState(int state)
Sets the state of the control task (CONTROL_TASK_CONNECTED, CONTROL_TASK_DISCONNECTED or CONTROL_TASK_UNSTABLE)
|
void |
setGroupNodeParent(Node groupnode,
Node parent)
Sets the parent of a group input/output node
|
void |
swapGroupNodeParents(Node groupnode1,
Node groupnode2)
Swaps the parents of two group nodes (without disconnecting either).
|
void |
ungroup()
removes tasks and notifies listeners when the taskgraph is ungrouped, but does not dispose of the tasks
|
void |
unGroupTask(java.lang.String groupname)
Ungroups the specified group task
|
addDataInputNode, addDataOutputNode, addDeclaredNodeProperty, addParameterInputNode, addParameterOutputNode, addTaskListener, getAbsoluteNodeIndex, getContext, getContextProperty, getDataInputNode, getDataInputNodes, getDataOutputNode, getDataOutputNodes, getDeclaredNodeProperties, getDefaultNodeRequirement, getErrorMessage, getExecutionCount, getExecutionRequestCount, getExecutionState, getInputNode, getInputNodes, getInstanceID, getNodeIndex, getNodeRequirement, getOutputNode, getOutputNodes, getParameterInputNode, getParameterInputNodes, getParameterOutputNode, getParameterOutputNodes, getParent, getQualifiedTaskName, getUltimateParent, init, isDataInputNode, isDataOutputNode, isParameterInputNode, isParameterOutputNode, isRunContinuously, removeDataInputNode, removeDataOutputNode, removeNode, removeParameterInputNode, removeParameterOutputNode, removeTaskListener, setContextProperty, setDeclaredNodeProperties, setDefaultNodeRequirement, setNodeRequirement, setParent, setRunContinuously, updateProxy
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
executionFinished, executionRequested, executionReset, executionStarting, executionStateChanged
static final int CONTROL_TASK_CONNECTED
static final int CONTROL_TASK_DISCONNECTED
static final int CONTROL_TASK_UNSTABLE
void addExecutionListener(ExecutionListener listener)
void removeExecutionListener(ExecutionListener listener)
Task createControlTask(Tool tool, boolean preserveinst) throws TaskException
TaskException
void removeControlTask()
Task getControlTask()
boolean isControlTask()
boolean isControlTaskConnected()
boolean isControlTaskUnstable()
int getControlTaskState()
void setControlTaskState(int state)
void addTaskGraphListener(TaskGraphListener listener)
void removeTaskGraphListener(TaskGraphListener listener)
Task createTask(Tool tool) throws TaskException
TaskException
Task createTask(Tool tool, boolean preserveinst) throws TaskException
TaskException
void removeTask(Task task)
Task[] getTasks(boolean includecontrol)
Task getTask(java.lang.String name)
Task getTaskInstance(java.lang.String instanceid)
boolean containsTask(java.lang.String identifier)
boolean containsTaskInstance(java.lang.String instanceid)
boolean containsTask(Task task)
boolean containsNode(Node node)
TaskGraph groupTasks(java.lang.String[] tasknames, java.lang.String groupname) throws TaskGraphException
TaskGraphException
void unGroupTask(java.lang.String groupname) throws TaskGraphException
TaskGraphException
Cable connect(Node sendnode, Node recnode) throws CableException
CableException
void disconnect(Cable cable) throws CableException
CableException
Node addDataInputNode(Node parent) throws NodeException
NodeException
Node addDataOutputNode(Node parent) throws NodeException
NodeException
void setGroupNodeParent(Node groupnode, Node parent)
Node getGroupNodeParent(Node groupnode)
void swapGroupNodeParents(Node groupnode1, Node groupnode2)
void ungroup()