public class IntegerChromosome extends AbstractChromosome<G> implements NumericChromosome<Integer,IntegerGene>, Serializable
_genes, _valid| Modifier | Constructor and Description | 
|---|---|
|   | IntegerChromosome(Integer min,
                 Integer max)Create a new random  IntegerChromosomeof length one. | 
|   | IntegerChromosome(Integer min,
                 Integer max,
                 int length)Create a new random  IntegerChromosome. | 
| protected  | IntegerChromosome(ISeq<IntegerGene> genes) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| A | getMax()Return the maximum value of this  BoundedChromosome. | 
| A | getMin()Return the minimum value of this  BoundedChromosome. | 
| int | hashCode() | 
| IntegerChromosome | newInstance()Create a new instance of type T. | 
| IntegerChromosome | newInstance(ISeq<IntegerGene> genes)A factory method which creates a new  Chromosomeof specific type
 and the givengenes. | 
| static IntegerChromosome | of(IntegerGene... genes)Create a new  IntegerChromosomewith the given genes. | 
| static IntegerChromosome | of(int min,
  int max)Create a new random  IntegerChromosomeof length one. | 
| static IntegerChromosome | of(int min,
  int max,
  int length)Create a new random  IntegerChromosome. | 
| int[] | toArray()Returns an int array containing all of the elements in this chromosome
 in proper sequence. | 
| int[] | toArray(int[] array)Returns an int array containing all of the elements in this chromosome
 in proper sequence. | 
getGene, isValid, iterator, length, toSeq, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitbyteValue, byteValue, doubleValue, doubleValue, floatValue, floatValue, intValue, intValue, longValue, longValue, shortValue, shortValuegetMax, getMingetGene, getGene, length, toSeqisValidforEach, iterator, spliteratorprotected IntegerChromosome(ISeq<IntegerGene> genes)
public IntegerChromosome(Integer min, Integer max, int length)
IntegerChromosome.min - the min value of the IntegerGenes (inclusively).max - the max value of the IntegerGenes (inclusively).length - the length of the chromosome.NullPointerException - if one of the arguments is null.public IntegerChromosome(Integer min, Integer max)
IntegerChromosome of length one.min - the minimal value of this chromosome (inclusively).max - the maximal value of this chromosome (inclusively).NullPointerException - if one of the arguments is null.public int[] toArray(int[] array)
array - the array into which the elements of this chromosomes are to
        be stored, if it is big enough; otherwise, a new array is
        allocated for this purpose.NullPointerException - if the given array is nullpublic int[] toArray()
public static IntegerChromosome of(IntegerGene... genes)
IntegerChromosome with the given genes.genes - the genes of the chromosome.IllegalArgumentException - if the length of the genes array is
         empty.public static IntegerChromosome of(int min, int max, int length)
IntegerChromosome.min - the min value of the IntegerGenes (inclusively).max - the max value of the IntegerGenes (inclusively).length - the length of the chromosome.IntegerChromosomepublic static IntegerChromosome of(int min, int max)
IntegerChromosome of length one.min - the minimal value of this chromosome (inclusively).max - the maximal value of this chromosome (inclusively).IntegerChromosome of length onepublic IntegerChromosome newInstance(ISeq<IntegerGene> genes)
ChromosomeChromosome of specific type
 and the given genes.newInstance in interface Chromosome<IntegerGene>genes - the genes of the new chromosome. The given genes array is
         not copied.Chromosome of the same type with the given genes.public IntegerChromosome newInstance()
FactorynewInstance in interface Factory<Chromosome<IntegerGene>>public int hashCode()
public A getMin()
BoundedChromosomeBoundedChromosome.getMin in interface BoundedChromosome<A extends Comparable<? super A>,G extends org.jenetics.AbstractBoundedGene<A,G>>BoundedChromosome.public A getMax()
BoundedChromosomeBoundedChromosome.getMax in interface BoundedChromosome<A extends Comparable<? super A>,G extends org.jenetics.AbstractBoundedGene<A,G>>BoundedChromosome.© 2007-2014 Franz Wilhelmstötter (2014-12-28 10:45)