Model a direct acyclic graph of the pipeline execution.
Modifiers | Name | Description |
---|---|---|
static class |
DAG.ChannelHandler |
A simple wrapper object to handle a channel and the associated label |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addOperatorNode(java.lang.String label, java.lang.Object inputs, java.lang.Object outputs, java.util.List<groovyx.gpars.dataflow.operator.DataflowProcessor> operators = null ) Creates a new DAG vertex representing a dataflow operator |
|
void |
addProcessNode(java.lang.String label, InputsList inputs, OutputsList outputs, TaskProcessor process = null ) Creates a new vertex in the DAG representing a computing `process` |
|
void |
addSourceNode(java.lang.String label, java.lang.Object source) Creates a vertex in the DAG representing a dataflow channel source. |
|
java.lang.String |
dumpActiveNodes() @return A string listing the current active processes/operators in the dataflow network represented by this DAG |
|
boolean |
isEmpty() |
|
void |
normalize() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a new DAG vertex representing a dataflow operator
label
- The operator labelinputs
- The operator input(s). It can be either a single channel or a list of channels.outputs
- The operator output(s). It can be either a single channel, a list of channels or null
if the operator has no output.Creates a new vertex in the DAG representing a computing `process`
label
- The label associated to the processinputs
- The list of inputs entering in the processoutputs
- the list of outputs leaving the processCreates a vertex in the DAG representing a dataflow channel source.
label
- The node descriptionsource
- Either a dataflow channel or a list of channel.