Package io.jenetics.ext
Class BigIntegerChromosome
- java.lang.Object
- 
- io.jenetics.AbstractChromosome<BigIntegerGene>
- 
- io.jenetics.ext.BigIntegerChromosome
 
 
- 
- All Implemented Interfaces:
- BoundedChromosome<BigInteger,BigIntegerGene>,- Chromosome<BigIntegerGene>,- NumericChromosome<BigInteger,BigIntegerGene>,- BaseSeq<BigIntegerGene>,- Factory<Chromosome<BigIntegerGene>>,- Verifiable,- Serializable,- Iterable<BigIntegerGene>,- RandomAccess
 
 public class BigIntegerChromosome extends AbstractChromosome<BigIntegerGene> implements NumericChromosome<BigInteger,BigIntegerGene>, Serializable Numeric chromosome implementation which holds arbitrary sized integer numbers.- Since:
- 3.5
- Version:
- 5.2
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class io.jenetics.AbstractChromosome_genes, _valid
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBigIntegerChromosome(ISeq<BigIntegerGene> genes)Create a new chromosome from the given genes array.BigIntegerChromosome(BigInteger min, BigInteger max)Create a new randomDoubleChromosomeof length one.BigIntegerChromosome(BigInteger min, BigInteger max, int length)Create a new randomBigIntegerChromosomewith the givenlength.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegermax()BigIntegermin()BigIntegerChromosomenewInstance()BigIntegerChromosomenewInstance(ISeq<BigIntegerGene> genes)static BigIntegerChromosomeof(BigIntegerGene... genes)Create a newDoubleChromosomewith the given genes.static BigIntegerChromosomeof(BigInteger min, BigInteger max)Create a new randomDoubleChromosomeof length one.static BigIntegerChromosomeof(BigInteger min, BigInteger max, int length)Create a new randomDoubleChromosome.- 
Methods inherited from class io.jenetics.AbstractChromosomeequals, get, hashCode, isValid, length, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface io.jenetics.util.BaseSeqforEach, get, isEmpty, iterator, length, listIterator, nonEmpty, spliterator, stream
 - 
Methods inherited from interface io.jenetics.Chromosomeas, gene, isValid
 - 
Methods inherited from interface io.jenetics.NumericChromosomebyteValue, byteValue, doubleValue, doubleValue, floatValue, floatValue, intValue, intValue, longValue, longValue, shortValue, shortValue
 
- 
 
- 
- 
- 
Constructor Detail- 
BigIntegerChromosomeprotected BigIntegerChromosome(ISeq<BigIntegerGene> genes) Create a new chromosome from the given genes array.- Parameters:
- genes- the genes of the new chromosome.
- Throws:
- IllegalArgumentException- if the- genes.length()is smaller than one.
- NullPointerException- if the- genesare- null.
- IllegalArgumentException- if the gene sequence is empty
 
 - 
BigIntegerChromosomepublic BigIntegerChromosome(BigInteger min, BigInteger max, int length) Create a new randomBigIntegerChromosomewith the givenlength.- Parameters:
- min- the min value of the- BigIntegerGenes (inclusively).
- max- the max value of the- BigIntegerGenes (inclusively).
- length- the length of the chromosome.
- Throws:
- NullPointerException- if one of the arguments is- null.
- IllegalArgumentException- if the- lengthis smaller than one.
 
 - 
BigIntegerChromosomepublic BigIntegerChromosome(BigInteger min, BigInteger max) Create a new randomDoubleChromosomeof length one.- Parameters:
- min- the minimal value of this chromosome (inclusively).
- max- the maximal value of this chromosome (exclusively).
- Throws:
- NullPointerException- if one of the arguments is- null.
 
 
- 
 - 
Method Detail- 
minpublic BigInteger min() - Specified by:
- minin interface- BoundedChromosome<BigInteger,BigIntegerGene>
 
 - 
maxpublic BigInteger max() - Specified by:
- maxin interface- BoundedChromosome<BigInteger,BigIntegerGene>
 
 - 
newInstancepublic BigIntegerChromosome newInstance(ISeq<BigIntegerGene> genes) - Specified by:
- newInstancein interface- Chromosome<BigIntegerGene>
 
 - 
newInstancepublic BigIntegerChromosome newInstance() - Specified by:
- newInstancein interface- Factory<Chromosome<BigIntegerGene>>
 
 - 
ofpublic static BigIntegerChromosome of(BigIntegerGene... genes) Create a newDoubleChromosomewith the given genes.- Parameters:
- genes- the genes of the chromosome.
- Returns:
- a new chromosome with the given genes.
- Throws:
- IllegalArgumentException- if the length of the genes array is empty.
- NullPointerException- if the given- genesarray is- null
 
 - 
ofpublic static BigIntegerChromosome of(BigInteger min, BigInteger max, int length) Create a new randomDoubleChromosome.- Parameters:
- min- the min value of the- DoubleGenes (inclusively).
- max- the max value of the- DoubleGenes (exclusively).
- length- the length of the chromosome.
- Returns:
- a new DoubleChromosomewith the given parameter
 
 - 
ofpublic static BigIntegerChromosome of(BigInteger min, BigInteger max) Create a new randomDoubleChromosomeof length one.- Parameters:
- min- the minimal value of this chromosome (inclusively).
- max- the maximal value of this chromosome (exclusively).
- Returns:
- a new DoubleChromosomewith the given parameter
 
 
- 
 
-