public static final class Readers.PermutationChromosome extends Object
PermutationChromosome objects.
XML format
<permutation-chromosome length="5">
<valid-alleles type="java.lang.Integer">
<allele>0</allele>
<allele>1</allele>
<allele>2</allele>
<allele>3</allele>
<allele>4</allele>
</valid-alleles>
<order>2 1 3 5 4</order>
</permutation-chromosome>
| Modifier and Type | Method and Description |
|---|---|
static <A> PermutationChromosome<A> |
read(InputStream in,
Reader<? extends A> alleleReader)
Reads a new
PermutationChromosome from the given
input stream. |
static <A> Reader<PermutationChromosome<A>> |
reader(Reader<? extends A> alleleReader)
Return a reader for permutation chromosomes with the given allele
reader.
|
public static <A> Reader<PermutationChromosome<A>> reader(Reader<? extends A> alleleReader)
A - the allele typealleleReader - the allele readerNullPointerException - if the given allele reader is
nullpublic static <A> PermutationChromosome<A> read(InputStream in, Reader<? extends A> alleleReader) throws XMLStreamException
PermutationChromosome from the given
input stream.A - the allele typein - the data source of the chromosomealleleReader - the allele readerXMLStreamException - if reading the chromosome failsNullPointerException - if one of the arguments is null© 2007-2019 Franz Wilhelmstötter (2019-11-18 20:30)