java.lang.Object
io.jenetics.xml.Readers.LongChromosome
- Enclosing class:
Readers
Reader methods for
LongChromosome objects.
XML format
<long-chromosome length="3">
<min>-9223372036854775808</min>
<max>9223372036854775807</max>
<alleles>
<allele>-1345217698116542402</allele>
<allele>-7144755673073475303</allele>
<allele>6053786736809578435</allele>
</alleles>
</long-chromosome>
-
Method Summary
Modifier and TypeMethodDescriptionReturn the default allele reader for theLongChromosome.static LongChromosomeread(InputStream in) Read a newLongChromosomefrom the given input stream.static Reader<LongChromosome> reader()Return aLongChromosomereader.
-
Method Details
-
alleleReader
Return the default allele reader for theLongChromosome.- Returns:
- the default allele reader
-
reader
Return aLongChromosomereader.- Returns:
- a long chromosome reader
-
read
Read a newLongChromosomefrom 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
-