java.lang.Object
io.jenetics.xml.Readers.CharacterChromosome
- Enclosing class:
- Readers
Reader methods for
CharacterChromosome
objects.
XML format
<character-chromosome length="4">
<valid-alleles>ABCDEFGHIJKLMNOPQRSTUVWXYZ<valid-alleles>
<alleles>ASDF</alleles>
</character-chromosome>
-
Method Summary
Modifier and TypeMethodDescriptionstatic CharacterChromosome
read
(InputStream in) Read a newCharacterChromosome
from the given input stream.static Reader<CharacterChromosome>
reader()
Return a XML reader forCharacterChromosome
objects.
-
Method Details
-
reader
Return a XML reader forCharacterChromosome
objects.- Returns:
- a chromosome reader
-
read
Read a newCharacterChromosome
from the given input stream.- Parameters:
in
- the data source of the chromosome- Returns:
- the bit-chromosome read from the input stream
- Throws:
XMLStreamException
- if reading the chromosome failsNullPointerException
- if the given input stream isnull
-