java.lang.Object
io.jenetics.xml.Readers.IntegerChromosome
- Enclosing class:
Readers
Reader methods for
IntegerChromosome objects.
XML format
<int-chromosome length="3">
<min>-2147483648</min>
<max>2147483647</max>
<alleles>
<allele>-1878762439</allele>
<allele>-957346595</allele>
<allele>-88668137</allele>
</alleles>
</int-chromosome>
-
Method Summary
Modifier and TypeMethodDescriptionReturn the default allele reader for theIntegerChromosome.static IntegerChromosomeread(InputStream in) Read a newIntegerChromosomefrom the given input stream.static Reader<IntegerChromosome> reader()Return aIntegerChromosomereader.
-
Method Details
-
alleleReader
Return the default allele reader for theIntegerChromosome.- Returns:
- the default allele reader
-
reader
Return aIntegerChromosomereader.- Returns:
- a integer chromosome reader
-
read
Read a newIntegerChromosomefrom 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
-