public static final class Readers.DoubleChromosome extends Object
DoubleChromosome
objects.
XML format
<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>
Modifier and Type | Method and Description |
---|---|
static Reader<Double> |
alleleReader()
Return the default allele reader for the
DoubleChromosome . |
static DoubleChromosome |
read(InputStream in)
Read a new
DoubleChromosome from the given
input stream. |
static Reader<DoubleChromosome> |
reader()
Return a
DoubleChromosome reader. |
public static Reader<Double> alleleReader()
DoubleChromosome
.public static Reader<DoubleChromosome> reader()
DoubleChromosome
reader.public static DoubleChromosome read(InputStream in) throws XMLStreamException
DoubleChromosome
from the given
input stream.in
- the data source of the chromosomeXMLStreamException
- if reading the chromosome failsNullPointerException
- if the given input stream is null
© 2007-2017 Franz Wilhelmstötter (2017-08-22 19:30)