class CompositeDetails
CompositeDetails is used to define the workers and stages of the skeletons appearing in the org.jcsp.gpp.skeletons.compostes package. These are either Groups of Pipelines or Pipelines of Groups. The data structure cDetails is a 2-dimensional array of LocalDetails; where the first index (rows) is subscripted by the number of workers in each Group and the second index (columns) is subscripted by the number of stages in the pipeline.
It is assumed that all workers in the same group undertake the same function and modifier which are specified as parameters of the Composite structure itself.
Methods are provided to extract the required details by Group or by Stage as necessary, but user code will not need to call these methods.
A method is provided to insert the details into the object called insertCompositeDetails.
workers
- An int specifying the number of worker processes in each groupstages
- An int specifying the number of stages in the pipelinecDetails
- A LocalDetails[workers][stages] structureType | Name and description |
---|---|
LocalDetails[] |
cDetails |
int |
stages |
int |
workers |
Constructor and description |
---|
CompositeDetails
() |
Type | Name and description |
---|---|
PipelineDetails |
extractByPipe(int pipe) |
GroupDetails |
extractByStage(int stage) |
void |
insertCompositeDetails(int group, int stage, String name, String initMethod, List initData, String finaliseMethod, List finaliseData) Used to insert specific instances of a LocalDetails object into cDetails |
String |
toString() |
Used to insert specific instances of a LocalDetails object into cDetails
group
- the index of the group being definedstage
- the index of the pipeline stage being definedname
- A String specifying the name of any local data class used by a workerinitMethod
- A String specifying the initMethod of any local data classinitData
- A list containing parameters for the initMethodfinaliseMethod
- A String specifying the finalise method of any local data classfinaliseData
- A list containing parameters for the finaliseMethodGPP - Groovy Parallel Patterns generated 06112016 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk