java.lang.Object
io.jenetics.xml.Readers.DoubleChromosome
- Enclosing class:
Readers
Reader methods for
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>
-
Method Summary
Modifier and TypeMethodDescriptionReturn the default allele reader for theDoubleChromosome
.static DoubleChromosome
read
(InputStream in) Read a newDoubleChromosome
from the given input stream.static Reader
<DoubleChromosome> reader()
Return aDoubleChromosome
reader.
-
Method Details
-
alleleReader
Return the default allele reader for theDoubleChromosome
.- Returns:
- the default allele reader
-
reader
Return aDoubleChromosome
reader.- Returns:
- a double chromosome reader
-
read
Read a newDoubleChromosome
from the given input stream.- Parameters:
in
- the data source of the chromosome- Returns:
- a new chromosome
- Throws:
XMLStreamException
- if reading the chromosome failsNullPointerException
- if the given input stream isnull
-