java.lang.Object
io.jenetics.xml.Readers.BitChromosome
- Enclosing class:
Readers
Bit chromosome reader methods, which reads XML-representations of
bit-chromosomes.
XML
<bit-chromosome length="20" ones-probability="0.5">11100011101011001010</bit-chromosome>
-
Method Summary
Modifier and TypeMethodDescriptionstatic BitChromosome
read
(InputStream in) Read a newBitChromosome
from the given input stream.static Reader
<BitChromosome> reader()
Return a XML reader forBitChromosome
objects.
-
Method Details
-
reader
Return a XML reader forBitChromosome
objects.- Returns:
- a chromosome reader
-
read
Read a newBitChromosome
from the given input stream.- Parameters:
in
- the data source of the bit-chromosome- Returns:
- the bit-chromosome read from the input stream
- Throws:
XMLStreamException
- if reading the chromosome failsNullPointerException
- if the given input stream isnull
-