public static final class Readers.Genotypes extends Object
Genotype
objects.
XML format
<genotypes length="1">
<genotype length="2" ngenes="5">
<double-chromosome length="3">
<min>0.0</min>
<max>1.0</max>
<alleles>
<allele>0.27251556008507416</allele>
<allele>0.003140816229067145</allele>
<allele>0.43947528327497376</allele>
</alleles>
</double-chromosome>
<double-chromosome length="2">
<min>0.0</min>
<max>1.0</max>
<alleles>
<allele>0.4026521545744768</allele>
<allele>0.36137605952663554</allele>
<alleles>
</double-chromosome>
</genotype>
</genotypes>
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.
|
static <A,G extends Gene<A,G>,C extends Chromosome<G>> |
reader(Reader<C> chromosomeReader)
Return a genotypes reader using the given chromosome reader.
|
public static <A,G extends Gene<A,G>,C extends Chromosome<G>> Reader<List<Genotype<G>>> reader(Reader<C> chromosomeReader)
A
- the allele typeG
- the gene typeC
- the chromosome typechromosomeReader
- the underlying chromosome readerNullPointerException
- if the given chromosomeReader
is
null
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
© 2007-2018 Franz Wilhelmstötter (2018-02-14 08:27)