class Node
Node is a fundamental process that reads an inputObject, processes it and then writes the processed object to the Root process in the D&C process network. A Node process may have a local workerClass instance of type workerClassName that stores intermediate results.
*
On termination of the process no specific action is taken. The D&C process network in which the Node process occurs will take responsibility for subsequent transmission of the UniversalTerminator object.
Methods required by inputObject:
function( [dataModifier, wc] ) where wc is the local, possibly null, worker class instance
Methods required by workerClass, if present:
initClass(workerInitData)
Behaviour: workerClass.initClass(workerInitData) while (running) { o = input.read() o.function([dataModifer, workerClass]) output.write(o) }
input The
- channel from which the input object to be processed is readoutputAny The
- channel to which the processed object is writtenfunction The
- name of the method corresponding to the method in the data object that is to be employedinClassname
- the name of the class used to intialise the node with the underlying data objectcirculateClassName
- the name of the class used to send data to the node for each iterationfeedbackClassName
- the name of the class used to return feedback inforamtion to the Root nodedataModifier A
- list of any values to be used by the function method; it is polymorphic in type
and defaults to nulllDetails
- A LocalDetails object containing data pertaining to any local class used by the worker, defaults to null.Type | Name and description |
---|---|
String |
circulateClassName |
List |
dataModifier |
String |
feedbackClassName |
String |
function |
String |
inClassName |
ChannelInput |
input |
LocalDetails |
lDetails |
ChannelOutput |
outputAny |
Constructor and description |
---|
Node
() |
GPP - Groovy Parallel Patterns generated 06112016 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk