public final class Readers extends Object
final Reader<Genotype<BitGene> bgr =
Readers.Genotype.reader(Readers.BitChromosome.reader()));
final Reader<Genotype<IntegerGene>> igr =
Writers.Genotype.reader(Readers.IntegerChromosome.reader()));
final Reader<Genotype<DoubleGene>> dgr =
Readers.Genotype.reader(Readers.DoubleChromosome.reader()));
Modifier and Type | Class and Description |
---|---|
static class |
Readers.BitChromosome
Bit chromosome reader methods, which reads XML-representations of
bit-chromosomes.
|
static class |
Readers.BoundedChromosome
Reader methods for
BoundedChromosome objects. |
static class |
Readers.CharacterChromosome
Reader methods for
CharacterChromosome objects. |
static class |
Readers.DoubleChromosome
Reader methods for
DoubleChromosome objects. |
static class |
Readers.Genotype
Writer methods for
Genotype objects. |
static class |
Readers.Genotypes
This class contains static reader methods for
Genotype objects. |
static class |
Readers.IntegerChromosome
Reader methods for
IntegerChromosome objects. |
static class |
Readers.LongChromosome
Reader methods for
LongChromosome objects. |
static class |
Readers.PermutationChromosome
Reader methods for
PermutationChromosome objects. |
Modifier and Type | Method and Description |
---|---|
static <A,G extends Gene<A,G>,C extends Chromosome<G>> |
read(InputStream in,
Reader<? extends C> chromosomeReader)
Reads the genotypes by using the given chromosome reader.
|
public static <A,G extends Gene<A,G>,C extends Chromosome<G>> List<Genotype<G>> read(InputStream in, Reader<? extends C> chromosomeReader) throws XMLStreamException
A
- the allele typeG
- the gene typeC
- the chromosome typein
- the input stream to read the genotype fromchromosomeReader
- the used chromosome readerXMLStreamException
- if reading the genotype failsNullPointerException
- if one of the arguments is null
Readers.Genotypes.read(InputStream, Reader)
© 2007-2018 Franz Wilhelmstötter (2018-10-28 17:23)