Documentation of 'ec.Group' Java class
Group
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 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

You see the box below because you did not login.