On Nov 22, 2013, at 6:12 AM, Ralf Buschermöhle wrote:
> This way I can use the existing operators for mutation, crossover with there (deep cloning -- ah, a deep clone must of course also clone the new Reference).
Deep clone is not a Java concept: it's just an ECJ function that GPNodes have implemented. If you add more stuff to your GPNode sublass, you need to override the deepClone() to call super() and then clone the stuff you want to clone. Otherwise it won't get cloned, it'll just be shared.
> how Do I serialize the referenced GPNodes?
Serialization is automatic if your subclass implements java.io.Serializable (which it does).