MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
Interface providing methods common to all type of chromosomes. More...
Public Member Functions | |
void | setGene (IGene gene, int index) |
Sets the gene at the specified position within the chromosome. | |
IGene | getGene (int index) |
Returns the gene at the given position within the chromosome. | |
void | setGenes (IGene[] genes) |
Sets up the genes of the chromosome. | |
IGene[] | getGenes () |
Returns the set of genes that make up the chromosome. | |
int | getSize () |
Returns the size (length) of the chromosome, i.e., the number of genes the chromosome is build from. | |
void | setFitnessValue (double value) |
Sets the fitness value of the chromosome. | |
double | getFitnessValue () |
Returns the fitness value of the chromosome. | |
void | setSelectedForNextGeneration (bool selected) |
Used to mark the chromosome "in use". | |
bool | isSelectedForNextGeneration () |
Returns true if this chromosome has been selected to go to the next generation; otherwise, it returns false. | |
void | dispose () |
This method is called when the chromosome is no longer need it. | |
Properties | |
IGene | this[int index] [get, set] |
Sets or gets the gene at the specified position. |
Interface providing methods common to all type of chromosomes.
void MCScheduling.GeneticAlgorithm.IChromosome.dispose | ( | ) |
This method is called when the chromosome is no longer need it.
This call gives the chromosome a chance to release any resources it utilizes to be collected.
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.
double MCScheduling.GeneticAlgorithm.IChromosome.getFitnessValue | ( | ) |
Returns the fitness value of the chromosome.
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.
IGene MCScheduling.GeneticAlgorithm.IChromosome.getGene | ( | int | index | ) |
Returns the gene at the given position within the chromosome.
index | The zero-based position of the gene value to be returned. |
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.
IGene [] MCScheduling.GeneticAlgorithm.IChromosome.getGenes | ( | ) |
Returns the set of genes that make up the chromosome.
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.
int MCScheduling.GeneticAlgorithm.IChromosome.getSize | ( | ) |
Returns the size (length) of the chromosome, i.e., the number of genes the chromosome is build from.
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.
bool MCScheduling.GeneticAlgorithm.IChromosome.isSelectedForNextGeneration | ( | ) |
Returns true if this chromosome has been selected to go to the next generation; otherwise, it returns false.
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.
void MCScheduling.GeneticAlgorithm.IChromosome.setFitnessValue | ( | double | value | ) |
Sets the fitness value of the chromosome.
value | A non-negative decimal value denoting how fit is the chromosome. |
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.
void MCScheduling.GeneticAlgorithm.IChromosome.setGene | ( | IGene | gene, |
int | index | ||
) |
Sets the gene at the specified position within the chromosome.
gene | The gene to be set into the chromosome. |
index | The zero-based position of the gene to be set up. |
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.
void MCScheduling.GeneticAlgorithm.IChromosome.setGenes | ( | IGene[] | genes | ) |
Sets up the genes of the chromosome.
genes | The genes to be set in the chromosome. |
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.
void MCScheduling.GeneticAlgorithm.IChromosome.setSelectedForNextGeneration | ( | bool | selected | ) |
Used to mark the chromosome "in use".
Those that are not selected will go to a chromosome pool.
selected | If true, it marks the chromosome selected for the next generation, otherwise, the instance may go to a chromosome pool. |
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.
IGene MCScheduling.GeneticAlgorithm.IChromosome.this[int index] [get, set] |
Sets or gets the gene at the specified position.
index | The zero-based index of the gene to get or set. |
Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.