|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.workflow.Workflow
class Workflow
Container class wrapping wrapping the network of nodes forming a workflow together with some of the basic functionality, especially traversal methods.
| Nested Class Summary | |
|---|---|
(package private) class |
Workflow.NodeAndInports
Helper class for lists of nodes with their inports |
| Field Summary | |
|---|---|
(package private) TreeMap<NodeID,NodeContainer> |
m_nodes
mapping from NodeID to Nodes. |
| Constructor Summary | |
|---|---|
Workflow(NodeID id)
Constructor - initialize sets for meta node in/out connections. |
|
| Method Summary | |
|---|---|
(package private) Set<Integer> |
connectedInPorts(int outPortIx)
Determine inports which are connected (directly or indirectly) to the given outport in this workflow. |
(package private) Set<Integer> |
connectedOutPorts(int inPortIx)
Determine outports which are connected (directly or indirectly) to the given inport in this workflow. |
(package private) boolean |
containsNodeKey(NodeID id)
|
(package private) LinkedHashMap<NodeID,Set<Integer>> |
createBackwardsBreadthFirstSortedList(Set<Integer> outportIndices)
Return map of node ids to set of port indices based on list of output ports. |
(package private) LinkedHashMap<NodeID,Set<Integer>> |
createBreadthFirstSortedList(Set<NodeID> ids,
boolean skipWFM)
Return map of node ids to set of port indices based on argument list of node ids. |
(package private) ArrayList<Workflow.NodeAndInports> |
findAllConnectedNodes(Set<Integer> inPorts)
Determine all nodes which are connected (directly or indirectly) to the given inports in this workflow. |
(package private) ArrayList<Workflow.NodeAndInports> |
findAllNodesConnectedToLoopBody(NodeID startNode,
NodeID endNode)
Create list of nodes (id)s that are part of a loop body. |
(package private) LinkedHashMap<NodeID,Set<Integer>> |
getBreadthFirstListOfNodeAndSuccessors(NodeID id,
boolean skipWFM)
Return map of node ids connected to the given node sorted in breadth first order mapped to a set of portIDs. |
(package private) Set<ConnectionContainer> |
getConnectionsByDest(NodeID id)
Return all connections having the same destination. |
(package private) Set<ConnectionContainer> |
getConnectionsBySource(NodeID id)
Return all connections having the same destination. |
(package private) Collection<Set<ConnectionContainer>> |
getConnectionsBySourceValues()
|
(package private) NodeID |
getID()
|
(package private) NodeID |
getMatchingLoopEnd(NodeID id)
Return matching LoopEnd node for the given LoopStart |
(package private) NodeID |
getMatchingLoopStart(NodeID id)
Return matching LoopStart node for the given LoopEnd |
(package private) NodeContainer |
getNode(NodeID id)
Return NodeContainer for a given id or null if that node does not exist in this workflow. |
(package private) Set<NodeID> |
getNodeIDs()
|
(package private) Collection<NodeContainer> |
getNodeValues()
|
(package private) int |
getNrNodes()
|
(package private) void |
putNode(NodeID id,
NodeContainer nc)
Store NodeContainer with a given id. |
(package private) NodeContainer |
removeNode(NodeID id)
Remove given node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final TreeMap<NodeID,NodeContainer> m_nodes
| Constructor Detail |
|---|
Workflow(NodeID id)
id - of workflow| Method Detail |
|---|
NodeID getID()
NodeContainer getNode(NodeID id)
id - of the node
void putNode(NodeID id,
NodeContainer nc)
id - of NCnc - NodeContainer itselfNodeContainer removeNode(NodeID id)
id - of NodeContainer to be removed.
Collection<NodeContainer> getNodeValues()
Set<NodeID> getNodeIDs()
int getNrNodes()
boolean containsNodeKey(NodeID id)
id - of node.
Set<ConnectionContainer> getConnectionsByDest(NodeID id)
id - of destination node
Set<ConnectionContainer> getConnectionsBySource(NodeID id)
id - of destination node
Collection<Set<ConnectionContainer>> getConnectionsBySourceValues()
LinkedHashMap<NodeID,Set<Integer>> getBreadthFirstListOfNodeAndSuccessors(NodeID id,
boolean skipWFM)
id - of nodeskipWFM - if true, do not include WFM in the list
LinkedHashMap<NodeID,Set<Integer>> createBreadthFirstSortedList(Set<NodeID> ids,
boolean skipWFM)
ids - of interest, for example m_workflow.m_nodes.keySet()skipWFM - if true, do not include WFM in the list
Set<Integer> connectedOutPorts(int inPortIx)
inPortIx - index of inport
ArrayList<Workflow.NodeAndInports> findAllConnectedNodes(Set<Integer> inPorts)
inPorts - indices of inports
Set<Integer> connectedInPorts(int outPortIx)
outPortIx - index of outport
LinkedHashMap<NodeID,Set<Integer>> createBackwardsBreadthFirstSortedList(Set<Integer> outportIndices)
outportIndices - set of integers indicating the ports of interest
NodeID getMatchingLoopEnd(NodeID id)
throws IllegalLoopException,
IllegalArgumentException
id - The requested start node (instanceof LoopStart)
IllegalLoopException - if loop setup is wrong
IllegalArgumentException - if argument is not a LoopStart node
NodeID getMatchingLoopStart(NodeID id)
throws IllegalLoopException,
IllegalArgumentException
id - The requested end node (instanceof LoopEnd)
IllegalLoopException - if loop setup is wrong
IllegalArgumentException - if argument is not a LoopEnd node
ArrayList<Workflow.NodeAndInports> findAllNodesConnectedToLoopBody(NodeID startNode,
NodeID endNode)
throws IllegalLoopException
startNode - id of head of loopendNode - if of tail of loop
IllegalLoopException - If there is a ill-posed loop (dangling branches)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||