- All Superinterfaces:
- java.lang.Cloneable, java.io.Serializable, Setup
- All Known Implementing Classes:
- Population, Spatial1DSubpopulation, 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.