Class CopyList

  • All Implemented Interfaces:
    org.opt4j.core.optimizer.Operator<org.opt4j.core.genotype.ListGenotype<?>>, Copy<org.opt4j.core.genotype.ListGenotype<?>>

    public class CopyList
    extends java.lang.Object
    implements Copy<org.opt4j.core.genotype.ListGenotype<?>>
    Copy operator for plain lists like BooleanGenotype, DoubleGenotype, and PermutationGenotype.
    • Constructor Summary

      Constructors 
      Constructor Description
      CopyList()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.opt4j.core.genotype.ListGenotype<?> copy​(org.opt4j.core.genotype.ListGenotype<?> genotype)
      Copies a Genotype.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CopyList

        public CopyList()
    • Method Detail

      • copy

        public org.opt4j.core.genotype.ListGenotype<?> copy​(org.opt4j.core.genotype.ListGenotype<?> 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.ListGenotype<?>>
        Parameters:
        genotype - the genotype to copy
        Returns:
        the copy of the genotype