Package | Description |
---|---|
jcgp.backend.modules.mutator | |
jcgp.backend.parsers | |
jcgp.backend.population | |
jcgp.gui.population |
Modifier and Type | Method and Description |
---|---|
void |
ProbabilisticMutator.mutate(Chromosome chromosome) |
abstract void |
Mutator.mutate(Chromosome chromosome)
Applies mutations to the specified chromosome according
to the parameter values.
|
void |
PointMutator.mutate(Chromosome chromosome) |
Modifier and Type | Method and Description |
---|---|
static void |
ChromosomeParser.parse(java.io.File file,
Chromosome chromosome,
Resources resources)
Use this method to parse .chr files into a given chromosome.
|
static void |
ChromosomeParser.save(java.io.File file,
Chromosome chromosome,
Resources resources)
Writes a chromosome into the specified .chr file.
|
Modifier and Type | Method and Description |
---|---|
Chromosome |
Population.get(int index)
Returns the indexed chromosome.
|
Chromosome |
Population.getRandomChromosome() |
Modifier and Type | Method and Description |
---|---|
boolean |
Chromosome.compareActiveGenesTo(Chromosome chromosome)
Does the same as
compareGenesto() but only looks
at the active portion of the chromosome. |
boolean |
Chromosome.compareGenesTo(Chromosome chromosome)
Performs a deep comparison between this chromosome and the provided one.
|
int |
Chromosome.compareTo(Chromosome o) |
void |
Chromosome.copyGenes(Chromosome clone)
Creates a deep copy of the specified chromosome in the
this instance.
|
Constructor and Description |
---|
Chromosome(Chromosome clone)
Copy constructor.
|
Node(Chromosome chromosome,
int row,
int column,
int arity)
Constructs a new instance of
Node with the
specified parameters. |
Output(Chromosome chromosome,
int index)
Makes a new instance of
Output with the
specified arguments. |
Population(Chromosome parent,
Resources resources)
Initialise a population of copies of the given chromosome.
|
Modifier and Type | Method and Description |
---|---|
void |
ChromosomePane.updateGenes(Chromosome chr) |
Constructor and Description |
---|
ChromosomePane(Chromosome chromosome,
GUI gui,
PopulationPane parent) |