Class CopyGenericImplementation

  • All Implemented Interfaces:
    org.opt4j.core.optimizer.Operator<org.opt4j.core.Genotype>, Copy<org.opt4j.core.Genotype>, GenericOperator<Copy<org.opt4j.core.Genotype>>

    public class CopyGenericImplementation
    extends AbstractGenericOperator<Copy<org.opt4j.core.Genotype>,​Copy<?>>
    implements Copy<org.opt4j.core.Genotype>
    Implementation of the Copy interface.
    • Constructor Detail

    • Method Detail

      • copy

        public org.opt4j.core.Genotype copy​(org.opt4j.core.Genotype genotype)
        Description copied from interface: Copy
        Copies a Genotype. This operation is a deep copy whereas unit elements are not cloned.
        Specified by:
        copy in interface Copy<org.opt4j.core.Genotype>
        Parameters:
        genotype - the genotype to copy
        Returns:
        the copy of the genotype
      • copyComposite

        protected org.opt4j.core.genotype.CompositeGenotype<?,​?> copyComposite​(org.opt4j.core.genotype.CompositeGenotype<?,​?> genotype)