LongChromosome
instead. This classes
uses the JScience library, which will be removed in the
next major version.@Deprecated public class Integer64Chromosome extends NumberChromosome<Integer64,Integer64Gene> implements XMLSerializable
Modifier and Type | Field and Description |
---|---|
static Function<Chromosome<Integer64Gene>,Integer64Gene> |
Gene
Deprecated.
|
static Function<AbstractChromosome<Integer64Gene>,ISeq<Integer64Gene>> |
Genes
Deprecated.
Return a
Function which returns the gene array from this
Chromosome . |
_max, _min
_genes, _valid
Modifier | Constructor and Description |
---|---|
|
Integer64Chromosome(Integer64Gene... genes)
Deprecated.
Create a new chromosome from the given genes array.
|
|
Integer64Chromosome(Integer64 min,
Integer64 max)
Deprecated.
Create a new random
Integer64Chromosome of length one. |
|
Integer64Chromosome(Integer64 min,
Integer64 max,
int length)
Deprecated.
Create a new random
Integer64Chromosome of the given
length . |
protected |
Integer64Chromosome(ISeq<Integer64Gene> genes)
Deprecated.
Create a new chromosome from the given genes array.
|
|
Integer64Chromosome(long min,
long max)
Deprecated.
Create a new random
Integer64Chromosome of length one. |
|
Integer64Chromosome(long min,
long max,
int length)
Deprecated.
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)
Deprecated.
|
static Function<Chromosome<Integer64Gene>,Integer64Gene> |
Gene(int index)
Deprecated.
|
int |
hashCode()
Deprecated.
|
Integer64Chromosome |
newInstance()
Deprecated.
Create a new, random chromosome.
|
Integer64Chromosome |
newInstance(ISeq<Integer64Gene> genes)
Deprecated.
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, shortValue
getGene, getGene, indexOf, isValid, iterator, length, toSeq, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getGene, getGene, length, toSeq
isValid
public 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 Integer64Gene
s (inclusively).max
- the maximum value of the Integer64Gene
s (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 Integer64Gene
s (inclusively).max
- the maximum value of the Integer64Gene
s (inclusively).length
- the length of the chromosome.public Integer64Chromosome(long min, long max)
Integer64Chromosome
of length one.min
- the minimum value of the Integer64Gene
s (inclusively).max
- the maximum value of the Integer64Gene
s (inclusively).public Integer64Chromosome(Integer64 min, Integer64 max)
Integer64Chromosome
of length one.min
- the minimum value of the Integer64Gene
s (inclusively).max
- the maximum value of the Integer64Gene
s (inclusively).NullPointerException
- if min
or max
is
null
.public Integer64Chromosome newInstance(ISeq<Integer64Gene> genes)
Chromosome
Chromosome
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-2014 Franz Wilhelmstötter (2014-03-07 19:35)