Package io.jenetics.xml
Class Readers.BoundedChromosome
- java.lang.Object
-
- io.jenetics.xml.Readers.BoundedChromosome
-
- Enclosing class:
- Readers
public static final class Readers.BoundedChromosome extends Object
Reader methods forBoundedChromosomeobjects.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>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 typeG- the gene typeC- the chromosome type- Parameters:
name- the root element namegene- the gene creatorgenes- the gene array creatorchromosome- the chromosome creatoralleleReader- the allele reader- Returns:
- a bounded chromosome reader
- Throws:
NullPointerException- if one of the arguments isnull
-
-