Class Readers.BoundedChromosome

  • Enclosing class:

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

    XML format

     <root-name length="3">
    • Method Detail

      • 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
        name - the root element name
        gene - the gene creator
        genes - the gene array creator
        chromosome - the chromosome creator
        alleleReader - the allele reader
        a bounded chromosome reader
        NullPointerException - if one of the arguments is null