Package | Description |
---|---|
de.unihalle.informatik.Alida.workflows |
Classes related to workflows in Alida.
|
Modifier and Type | Field and Description |
---|---|
private ALDWorkflowNode |
ALDWorkflow.interiorShadowNode
This node is used as an interior shadow (or substitute) for the
node holding this workflow.
|
private ALDWorkflowNode |
ALDWorkflowEdge.sourceNode
source node of this edge in the work flow
|
private ALDWorkflowNode |
ALDWorkflowEdge.targetNode
target node of this edge in the work flow
|
Modifier and Type | Field and Description |
---|---|
private static HashMap<ALDWorkflowNodeID,ALDWorkflowNode> |
ALDWorkflow.nodeIdToNode
Hash map of operator nodes of this workflow.
|
private LinkedList<ALDWorkflowNode> |
ALDWorkflow.nodes
All nodes contained in this workflow
|
private List<ALDWorkflowNode> |
ALDWorkflow.ExecuteThread.nodes
The nodes of the workflow to execute
|
private static HashMap<ALDWorkflowNode,ALDWorkflowNodeID> |
ALDWorkflow.nodeToNodeId |
Modifier and Type | Method and Description |
---|---|
ALDWorkflowNode |
ALDWorkflow.getNode(ALDWorkflowNodeID nodeId)
Get the workflow node associated with
nodeId . |
private ALDWorkflowNode |
ALDWorkflow.getNodeWithoutSources(HashMap<ALDWorkflowNode,Set<ALDWorkflowNode>> sourceNodeMap)
Returns one node from the
sourceNodeMap with zero
source nodes, if any. |
ALDWorkflowNode |
ALDWorkflowEdge.getSourceNode()
Returns the source node.
|
ALDWorkflowNode |
ALDWorkflowEdge.getTargetNode()
Returns the target node.
|
protected static ALDWorkflowNode |
ALDWorkflow.mapNodeIdToNode(ALDWorkflowNodeID nodeId)
Map a nodeId to its node.
|
Modifier and Type | Method and Description |
---|---|
Set<ALDWorkflowNode> |
ALDWorkflowNode.getAncestors()
Return all ancestors of this node.
|
Set<ALDWorkflowNode> |
ALDWorkflowNode.getChildren()
Return all children nodes of this node.
|
Set<ALDWorkflowNode> |
ALDWorkflowNode.getDescendants()
Return the nodeIds of all descendants of the given node.
|
Collection<ALDWorkflowNode> |
ALDWorkflow.getNodes()
Return a collection of all nodes of this workflow
|
Set<ALDWorkflowNode> |
ALDWorkflowNode.getParents()
Return all parents of this node.
|
(package private) LinkedList<ALDWorkflowNode> |
ALDWorkflow.topSort()
Topologically sorts all nodes of the workflow.
|
(package private) LinkedList<ALDWorkflowNode> |
ALDWorkflow.topSort(Collection<ALDWorkflowNode> nodes)
Topologically sorts the nodes given in
nodes . |
Modifier and Type | Method and Description |
---|---|
private void |
ALDWorkflow.addNode(ALDWorkflowNode node)
Add this node to the workflow, create a NodeId and update mapping.
|
private boolean |
ALDWorkflow.checkDataflowStateChange(ALDWorkflowNode node)
Updates the state of this node according to the states of its parents.
|
private boolean |
ALDWorkflow.checkLocalStateChange(ALDWorkflowNode node)
Updates the state of this node according to its local configuration.
|
private boolean |
ALDWorkflow.checkParentStates(ALDWorkflowNode node,
ALDWorkflowNode.ALDWorkflowNodeState requiredState)
Check if all parents of the given node have a state at least
requiredState . |
private de.unihalle.informatik.Alida_xml.ALDXMLWorkflowNodeType |
ALDWorkflowDataIOXmlbeans.createALDXMLWorkflowNodeType(ALDWorkflowNode node)
Create a xml object for a workflow node
|
private void |
ALDWorkflow.directionAllowd(ALDWorkflowNode sourceNode,
ALDOpParameterDescriptor sourceDescriptor,
ALDWorkflowNode targetNode,
ALDOpParameterDescriptor targetDescriptor)
Checks if the direction are allowed
Source parameter
If the source node represents the workflow, the source parameter needs to be of direction IN or
INOUT . |
private void |
ALDWorkflow.doStateChange(ALDWorkflowNode node,
ALDWorkflowNode.ALDWorkflowNodeState newState)
Set the new state in the node and fire corresponding event.
|
private static void |
ALDWorkflow.executeNode(ALDWorkflow workflow,
ALDWorkflowNode node,
boolean showResults)
This actually runOps the operator in its own thread
and takes care of firing events for state changes.
|
ALDWorkflowEdge |
ALDWorkflow.getEdge(ALDWorkflowNode sourceNode,
String sourceParameterName,
ALDWorkflowNode targetNode,
String targetParameterName)
Get the workflow edge connecting given edges and parameters.
|
protected static ALDWorkflowNodeID |
ALDWorkflow.mapNodeToNodeId(ALDWorkflowNode node)
Map a node to its NodeId
|
protected void |
ALDWorkflowEdge.redirectSource(ALDWorkflowNode newSourceNode,
String newSourceParameterName)
Redirect the source of this edge
|
protected void |
ALDWorkflowEdge.redirectTarget(ALDWorkflowNode newTargetNode,
String newTargetParameterName)
Redirect the target of this node.
|
private void |
ALDWorkflow.updateState(ALDWorkflowNode node)
Convenience method which just invokes
ALDWorkflow.updateStates(Collection, boolean) with the single
node . |
Modifier and Type | Method and Description |
---|---|
private de.unihalle.informatik.Alida_xml.ALDXMLWorkflowEdgeType |
ALDWorkflowDataIOXmlbeans.createALDXMLWorkflowEgdeType(ALDWorkflowEdge edge,
HashMap<ALDWorkflowNode,Integer> nodeIdMap)
Crreate a xml object for a workflow edge
|
private void |
ALDWorkflow.executeNonReadyNodes(List<ALDWorkflowNode> nodes,
boolean waitForCompletion)
Run all not ready nodes of the list in the given order.
|
private ALDWorkflowNode |
ALDWorkflow.getNodeWithoutSources(HashMap<ALDWorkflowNode,Set<ALDWorkflowNode>> sourceNodeMap)
Returns one node from the
sourceNodeMap with zero
source nodes, if any. |
private ALDWorkflowNode |
ALDWorkflow.getNodeWithoutSources(HashMap<ALDWorkflowNode,Set<ALDWorkflowNode>> sourceNodeMap)
Returns one node from the
sourceNodeMap with zero
source nodes, if any. |
(package private) static String |
ALDWorkflow.nodeIdsToString(Collection<ALDWorkflowNode> nodes)
Formats the ids of the given nodes into a string for debugging purposes.
|
(package private) LinkedList<ALDWorkflowNode> |
ALDWorkflow.topSort(Collection<ALDWorkflowNode> nodes)
Topologically sorts the nodes given in
nodes . |
private void |
ALDWorkflow.updateStates(Collection<ALDWorkflowNode> nodesToCheck,
boolean doFireEvent)
Updates the states of
nodesToCheck and their descendants. |
Constructor and Description |
---|
ALDWorkflowEdge(ALDWorkflowNode sourceNode,
String sourceParameterName,
ALDWorkflowNode targetNode,
String targetParameterName)
Create an edge with the given source and target.
|
Constructor and Description |
---|
ExecuteThread(ALDWorkflow workflow,
List<ALDWorkflowNode> nodes) |
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.