Class CopyGenericImplementation

java.lang.Object
org.opt4j.operator.AbstractGenericOperator<Copy<Genotype>,Copy<?>>
org.opt4j.operator.copy.CopyGenericImplementation
All Implemented Interfaces:
Operator<Genotype>, Copy<Genotype>, GenericOperator<Copy<Genotype>>

public class CopyGenericImplementation extends AbstractGenericOperator<Copy<Genotype>,Copy<?>> implements Copy<Genotype>
Implementation of the Copy interface.
  • Constructor Details

  • Method Details

    • copy

      public Genotype copy(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<Genotype>
      Parameters:
      genotype - the genotype to copy
      Returns:
      the copy of the genotype
    • copyComposite

      protected CompositeGenotype<?,?> copyComposite(CompositeGenotype<?,?> genotype)