|
||||||||||
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.
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) 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) NodeContainer |
getNode(NodeID id)
Return NodeContainer for a given id. |
(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 workflowMethod 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
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |