ec
Interface Group

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable, Setup
All Known Implementing Classes:
Population, PSOSubpopulation, Spatial1DSubpopulation, SPEA2Subpopulation, Subpopulation

public interface Group
extends Setup, java.lang.Cloneable

Groups are used for populations and subpopulations. They are slightly different from Prototypes in a few important ways. A Group instance typically is set up with setup(...) and then used (unlike in a Prototype, where the prototype instance is never used, but only makes clones which are used). When a new Group instance is needed, it is created by calling emptyClone() on a previous Group instance, which returns a new instance set up exactly like the first Group instance had been set up when setup(...) was called on it. Groups are Serializable and Cloneable, but you should not clone them -- use emptyClone instead.

Version:
1.0
Author:
Sean Luke

Method Summary
 Group emptyClone()
          Returns a copy of the object just as it had been immediately after Setup was called on it (or on an ancestor object).
 
Methods inherited from interface ec.Setup
setup
 

Method Detail

emptyClone

Group emptyClone()
Returns a copy of the object just as it had been immediately after Setup was called on it (or on an ancestor object). You can obtain a fresh instance using clone(), and then modify that.