java.lang.Object
io.jenetics.xml.Readers.BoundedChromosome
- Enclosing class:
Readers
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>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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 Details
-
reader
public static <A extends Comparable<? super A>,G extends BoundedGene<A, Reader<C> readerG>, C extends BoundedChromosome<A, G>> (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
-