class CollectPrev
The Collect process collects results from the rest of the process network. It reads an inputObject from the input channel which it then processes using methods defined in the results class.
Methods required by class resultClassName: initClass( initialData ) collector( inputObject ) finalise( finaliseData ) Behaviour: resultsClass.initClass(initData) o = input.read() while ( o != UniversalTerminator ) resultClass.collector(o) o = input.read() resultsClass.finalise(finaliseData)
input
- The one2one input channel used to receive resultsresultClassName
- The Class name of the data object used to hold the resultsinitClass
- The name of the method that implements the initialise method of the result classcollector
- The name of the method that implements the collector method of the result classfinalise
- The name of the method that implements the finalise method of the result classinitData
- Values used to initialise the results classfinaliseData
- Values used by the finalise method in the results classType | Name and description |
---|---|
int |
collected |
String |
collector |
String |
finalise |
List |
finaliseData |
String |
initClass |
List |
initData |
ChannelInput |
input |
String |
resultClassName |
Constructor and description |
---|
CollectPrev
() |
GPP - Groovy Parallel Patterns generated test by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk