Class PermutationGenotype<E>

Type Parameters:
E - the type of elements
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess, Genotype, ListGenotype<E>

public class PermutationGenotype<E> extends ArrayList<E> implements ListGenotype<E>
The PermutationGenotype can be used as a Genotype. The order of these elements is to be optimized.
See Also:
  • Constructor Details

  • Method Details

    • newInstance

      public <G extends Genotype> G newInstance()
      Description copied from interface: Genotype
      Constructs a new (empty) instance of this Genotype.
      Specified by:
      newInstance in interface Genotype
      Type Parameters:
      G - the type of genotype for an implicit cast
      Returns:
      new instance of the genotype
    • init

      public void init(Random random)
      Randomizes this genotype by a random permutation.
      Parameters:
      random - the random number generator