Implements the logic for OperatorEx.choice operator(s)
Constructor and description |
---|
ChoiceOp
(groovyx.gpars.dataflow.DataflowReadChannel source, java.util.List<groovyx.gpars.dataflow.DataflowWriteChannel> outputs, groovy.lang.Closure<java.lang.Integer> code) Creates the choice operator |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
apply() Applies the choice operator |
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 the choice operator
source
- The source channel either a groovyx.gpars.dataflow.DataflowQueue or a groovyx.gpars.dataflow.DataflowVariableoutputs
- The list of output channelscode
- The closure implementing the *choice* strategy. See code