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 BitChromosomeread(InputStream in) Read a newBitChromosomefrom the given input stream.static Reader<BitChromosome> reader()Return a XML reader forBitChromosomeobjects.
-
Method Details
-
reader
Return a XML reader forBitChromosomeobjects.- Returns:
- a chromosome reader
-
read
Read a newBitChromosomefrom 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
-