The DataClassInterface defines the clone and serialize methods required by the Groovy Parallel Patterns library for any data class that is to be manipulated by all the processes within the library. The programmer is required to implement those methods required for their application, if necessary. The class dataClass provides a null implementation of all the methods. The programmer should extend the class DataClass for all data objects used in applications using the library.
In addition other methods need to be implemented for each process type, their details are to be found in the documentation associated with each process.
Type | Name and description |
---|---|
int |
completedOK |
int |
normalContinuation |
int |
normalTermination |
int |
overridenMethodNotImplemented |
int |
recurseEnd |
Type | Name and description |
---|---|
def |
clone() This method creates a clone of the object; if an object contains other objects then the programmer MUST write their own clone method so that it creates a deep copy rather than the normal shallow copy. |
def |
serialize() Use to create a version of an object that removes machine specific properties, such as static variables, channel addresses that are not Serializable. |
This method creates a clone of the object; if an object contains other objects then the programmer MUST write their own clone method so that it creates a deep copy rather than the normal shallow copy.
Clone MUST be implemented if an object is passed through a org.jcsp.gpp.connectors.spreaders process that involves any form of Cast.
Use to create a version of an object that removes machine specific properties, such as static variables, channel addresses that are not Serializable.
serialize MUST be implemented if the object is processed by means of org.jcsp.gpp.cluster.connectors#OneNodeRequestedList.