class DataClass
DataClass provides the super class for all data classes used in org.jcsp.gpp, it provides a null implementation of all the abstract methods defined in DataClassInterface, thus all data classes used in org.jcsp.gpp should extend DataClass, overriding the methods required for that data class only.
The class also implements the interfaces Serializable, so that objects can be transferred over TCP/IP connections and Cloneable so that copies of objects can be created. If the Class contains some other classes then method clone may need to be overwritten.
Constructor and description |
---|
DataClass
() |
Type | Name and description |
---|---|
Object |
clone() A null implementation of DataClassInterface.clone |
Object |
serialize() A null implementation of DataClassInterface.Serialise |
static void |
unexpectedReturnCode(String component, int errCode) unexpectedReturnCode is called by any process that receives an error code as the return value from a call to the invoke method. |
A null implementation of DataClassInterface.clone
Any clone method MUST ensure that a deep copy is created rather then the default shallow copy.
A null implementation of DataClassInterface.Serialise
unexpectedReturnCode is called by any process that receives an error code as the return value from a call to the invoke method. It causes the whole process network to terminate.
component
- The name of the process creating the errorerrCode
- The negative error code that caused the call to the methodGPP - Groovy Parallel Patterns generated 06112016 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk