Class Readers.BoundedChromosome

java.lang.Object
io.jenetics.xml.Readers.BoundedChromosome
Enclosing class:
Readers

public static final class Readers.BoundedChromosome extends Object
Reader methods for BoundedChromosome objects.

XML format

<root-name length="3">
    <min>aaa</min>
    <max>zzz</max>
    <alleles>
        <allele>iii</allele>
        <allele>fff</allele>
        <allele>ggg</allele>
    </alleles>
</root-name>
 
Since:
3.9
Version:
3.9
  • Method Details

    • reader

      public static <A extends Comparable<? super A>, G extends BoundedGene<A,G>, C extends BoundedChromosome<A,G>> Reader<C> reader(String name, BoundedGeneCreator<A,G> gene, IntFunction<G[]> genes, Function<G[],C> chromosome, Reader<? extends A> alleleReader)
      Create a bounded chromosome reader with the given configuration.
      Type Parameters:
      A - the allele type
      G - the gene type
      C - the chromosome type
      Parameters:
      name - the root element name
      gene - the gene creator
      genes - the gene array creator
      chromosome - the chromosome creator
      alleleReader - the allele reader
      Returns:
      a bounded chromosome reader
      Throws:
      NullPointerException - if one of the arguments is null