public class Chromosome extends Object
NOTE: Chromosome resides in cache: GAGridConstants.POPULATION_CACHE. This cached is partitioned.
Constructor and Description |
---|
Chromosome(long[] genes) |
Modifier and Type | Method and Description |
---|---|
double |
getFitnessScore()
Gets the fitnessScore
|
long[] |
getGenes()
Gets the gene keys (ie: primary keys) for this chromosome
|
Long |
id()
Get the id (primary key) for this chromosome
|
void |
setFitnessScore(double fitnessScore)
Set the fitnessScore for this chromosome
|
void |
setGenes(long[] genes)
Set the gene keys (ie: primary keys)
|
String |
toString() |
public Chromosome(long[] genes)
genes
- Primary keys of Genespublic double getFitnessScore()
public void setFitnessScore(double fitnessScore)
fitnessScore
- This chromosome's new fitness scorepublic long[] getGenes()
public void setGenes(long[] genes)
genes
- This chromosome's new genespublic Long id()
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024