@CompileStatic class OneIndexedList
The OneDirectedList process reads a data object from its input channel and depending on the value contained in its indexProperty will write the object to the corresponding element of the channel output list outputLList.
The process does NOT check that the value of the indexProperty to ensure that
0 <= indexProperty < outputList.szie()
input
- The channel input from which data objects are readoutputList
- the channel output list to which data objects are writtenindexMethod
- A String containing the name of a function in the input object that returns
the element of the outputList to which the object should be written.indexBounds
- a list of values passed to indexMethod that can be used to check
that the index returned is within required limits.Type | Name and description |
---|---|
List |
indexBounds |
String |
indexFunction |
ChannelInput |
input |
ChannelOutputList |
outputList |
Constructor and description |
---|
OneIndexedList
() |
GPP - Groovy Parallel Patterns generated 18-09-2017 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk