public static final class Readers.BoundedChromosome extends Object
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>
Modifier and Type | Method and Description |
---|---|
static <A extends Comparable<? super A>,G extends BoundedGene<A,G>,C extends BoundedChromosome<A,G>> |
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.
|
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)
A
- the allele typeG
- the gene typeC
- the chromosome typename
- the root element namegene
- the gene creatorgenes
- the gene array creatorchromosome
- the chromosome creatoralleleReader
- the allele readerNullPointerException
- if one of the arguments is null
© 2007-2019 Franz Wilhelmstötter (2019-11-18 20:30)