@CompileStatic class DataClass
DataClass provides the super class for all data classes used in gpp, it provides a null implementation of all the abstract methods defined in DataClassInterface, thus all data classes used in 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.
Type | Name and description |
---|---|
List<String> |
callerMessages |
Constructor and description |
---|
DataClass
() |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
callUserMethod(Object o, String methodName, List parameters, int caller) @param o |
|
int |
callUserMethod(Object o, String methodName, int caller) @param o |
|
int |
callUserMethod(Object o, String methodName, Object parameter, int caller) @param o |
|
Object |
clone() A null implementation of DataClassInterface.clone |
|
Object |
serialize() A null implementation of DataClassInterface.Serialise |
|
static void |
unexpectedReturnCode(String component, String methodName, List parameters, int errCode) unexpectedReturnCode is called by any process that receives an error code as the return value from a call to the invoke method. |
|
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 methodunexpectedReturnCode 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 18-09-2017 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk