public class Integer64Chromosome extends NumberChromosome<Integer64,Integer64Gene> implements XMLSerializable
| Modifier and Type | Field and Description |
|---|---|
static Function<Chromosome<Integer64Gene>,Integer64Gene> |
Gene
|
static Function<AbstractChromosome<Integer64Gene>,ISeq<Integer64Gene>> |
Genes
Return a
Function which returns the gene array from this
Chromosome. |
_max, _min_genes, _valid| Modifier | Constructor and Description |
|---|---|
|
Integer64Chromosome(Integer64Gene... genes)
Create a new chromosome from the given genes array.
|
|
Integer64Chromosome(Integer64 min,
Integer64 max)
Create a new random
Integer64Chromosome of length one. |
|
Integer64Chromosome(Integer64 min,
Integer64 max,
int length)
Create a new random
Integer64Chromosome of the given
length. |
protected |
Integer64Chromosome(ISeq<Integer64Gene> genes)
Create a new chromosome from the given genes array.
|
|
Integer64Chromosome(long min,
long max)
Create a new random
Integer64Chromosome of length one. |
|
Integer64Chromosome(long min,
long max,
int length)
Create a new random
Integer64Chromosome of the given
length. |
| Modifier and Type | Method and Description |
|---|---|
Factory<Integer64Chromosome> |
asFactory()
Deprecated.
No longer needed after adding new factory methods to the
Array class. |
boolean |
equals(Object obj) |
static Function<Chromosome<Integer64Gene>,Integer64Gene> |
Gene(int index)
|
int |
hashCode() |
Integer64Chromosome |
newInstance()
Create a new, random chromosome.
|
Integer64Chromosome |
newInstance(ISeq<Integer64Gene> genes)
A factory method which creates a new
Chromosome of specific type
and the given genes. |
byteValue, byteValue, doubleValue, doubleValue, floatValue, floatValue, getMax, getMin, intValue, intValue, longValue, longValue, shortValue, shortValuepublic static final Function<AbstractChromosome<Integer64Gene>,ISeq<Integer64Gene>> Genes
Function which returns the gene array from this
Chromosome.public static final Function<Chromosome<Integer64Gene>,Integer64Gene> Gene
protected Integer64Chromosome(ISeq<Integer64Gene> genes)
genes - the genes of the new chromosome.IllegalArgumentException - if the genes.length() is smaller
than one.public Integer64Chromosome(Integer64Gene... genes)
genes - the genes of the new chromosome.NullPointerException - if the given genes array is null.IllegalArgumentException - if the genes.length is smaller
than one.public Integer64Chromosome(Integer64 min, Integer64 max, int length)
Integer64Chromosome of the given
length.min - the minimum value of the Integer64Genes (inclusively).max - the maximum value of the Integer64Genes (inclusively).length - the length of the chromosome.NullPointerException - if min or max is
null.public Integer64Chromosome(long min, long max, int length)
Integer64Chromosome of the given
length.min - the minimum value of the Integer64Genes (inclusively).max - the maximum value of the Integer64Genes (inclusively).length - the length of the chromosome.public Integer64Chromosome(long min, long max)
Integer64Chromosome of length one.min - the minimum value of the Integer64Genes (inclusively).max - the maximum value of the Integer64Genes (inclusively).public Integer64Chromosome(Integer64 min, Integer64 max)
Integer64Chromosome of length one.min - the minimum value of the Integer64Genes (inclusively).max - the maximum value of the Integer64Genes (inclusively).NullPointerException - if min or max is
null.public Integer64Chromosome newInstance(ISeq<Integer64Gene> genes)
ChromosomeChromosome of specific type
and the given genes.newInstance in interface Chromosome<Integer64Gene>genes - the genes of the new chromosome. The given genes array is
not copied.Chromosome of the same type with the given genes.@Deprecated public Factory<Integer64Chromosome> asFactory()
Array class.public Integer64Chromosome newInstance()
newInstance in interface Factory<Chromosome<Integer64Gene>>public int hashCode()
hashCode in class NumberChromosome<Integer64,Integer64Gene>public boolean equals(Object obj)
equals in class NumberChromosome<Integer64,Integer64Gene>public static final Function<Chromosome<Integer64Gene>,Integer64Gene> Gene(int index)
© 2007-2013 Franz Wilhelmstötter (2013-12-18 20:17)