ec
Interface Group
-
- 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description GroupemptyClone()Returns a copy of the object just as it had been immediately after Setup was called on it (or on an ancestor object).
-
-
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG