class OneFanList
OneFanList is used to connect a source process to any number of destination processes such that objects read from input are output in a circular pattern through the elements of the outputList channels.
The incoming data object will be written to the next process in sequence. Once the UniversalTerminator is read it will be copied to all of the output channel ends. The incoming data is not modified in any manner.
Behaviour: c = 0 while true outputList[c].write( input.read() ) c = (c + 1) modulus outputList.size()
input
- A one2one Channel used to read data objects from the previous processoutputList
- An OutputChannelList to which the incoming data object is written in sequenceType | Name and description |
---|---|
ChannelInput |
input |
ChannelOutputList |
outputList |
Constructor and description |
---|
OneFanList
() |
GPP - Groovy Parallel Patterns generated 06112016 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk