Interface Copy<G extends org.opt4j.core.Genotype>

  • Type Parameters:
    G - the type of genotype
    All Superinterfaces:
    org.opt4j.core.optimizer.Operator<G>
    All Known Implementing Classes:
    CopyGenericImplementation, CopyList

    public interface Copy<G extends org.opt4j.core.Genotype>
    extends org.opt4j.core.optimizer.Operator<G>
    Operator that creates copies of a Genotype.
    • Method Detail

      • copy

        G copy​(G genotype)
        Copies a Genotype. This operation is a deep copy whereas unit elements are not cloned.
        Parameters:
        genotype - the genotype to copy
        Returns:
        the copy of the genotype
      • getOperatorType

        default java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>> getOperatorType()
        Specified by:
        getOperatorType in interface org.opt4j.core.optimizer.Operator<G extends org.opt4j.core.Genotype>