Package io.jenetics.xml
Class Readers.DoubleChromosome
- java.lang.Object
- 
- io.jenetics.xml.Readers.DoubleChromosome
 
- 
- Enclosing class:
- Readers
 
 public static final class Readers.DoubleChromosome extends Object Reader methods forDoubleChromosomeobjects.XML format <double-chromosome length="3"> <min>0.0</min> <max>1.0</max> <alleles> <allele>0.27251556008507416</allele> <allele>0.003140816229067145</allele> <allele>0.43947528327497376</allele> </alleles> </double-chromosome>
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Reader<Double>alleleReader()Return the default allele reader for theDoubleChromosome.static DoubleChromosomeread(InputStream in)Read a newDoubleChromosomefrom the given input stream.static Reader<DoubleChromosome>reader()Return aDoubleChromosomereader.
 
- 
- 
- 
Method Detail- 
alleleReaderpublic static Reader<Double> alleleReader() Return the default allele reader for theDoubleChromosome.- Returns:
- the default allele reader
 
 - 
readerpublic static Reader<DoubleChromosome> reader() Return aDoubleChromosomereader.- Returns:
- a double chromosome reader
 
 - 
readpublic static DoubleChromosome read(InputStream in) throws XMLStreamException Read a newDoubleChromosomefrom the given input stream.- Parameters:
- in- the data source of the chromosome
- Returns:
- a new chromosome
- Throws:
- XMLStreamException- if reading the chromosome fails
- NullPointerException- if the given input stream is- null
 
 
- 
 
-