MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
The CMixedCriticalityChromosome instance represents a schedule for a mixed-criticality instance that is associated with its genes which should be instances of CMixedCriticalityGene. More...
Public Member Functions | |
CMixedCriticalityChromosome (IGene[] genes) | |
Creates a new chromosome from the specified genes. | |
void | setGene (IGene gene, int index) |
Sets the gene at the specified position. | |
IGene | getGene (int index) |
Returns the gene at the specified position. | |
void | setGenes (IGene[] genes) |
Sets the genes of this chromosome to the specified gene values. | |
IGene[] | getGenes () |
Returns the genes that form this chromosome. | |
int | getSize () |
Returns the size of this chromosome, e.i. | |
void | setFitnessValue (double value) |
Sets the fitness score of this chromosome to the specified value. | |
double | getFitnessValue () |
Returns the chromosome's fitness score. | |
object | Clone () |
Returns the copy of this chromosome. | |
IEnumerator< IGene > | GetEnumerator () |
Returns the gene enumerator of this chromosome. | |
void | setSelectedForNextGeneration (bool selected) |
Sets the selection flag of this chromosome to the specified value. | |
bool | isSelectedForNextGeneration () |
Returns true if this chromosome has been selected for the mating pool; otherwise, it returns false. | |
void | dispose () |
Releases any resources that this chromosome may use. | |
Properties | |
IGene | this[int index] [get, set] |
Sets or gets the gene at the specified position. |
The CMixedCriticalityChromosome instance represents a schedule for a mixed-criticality instance that is associated with its genes which should be instances of CMixedCriticalityGene.
MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.CMixedCriticalityChromosome | ( | IGene[] | genes | ) |
Creates a new chromosome from the specified genes.
Its fitness value is initialy set to 0.
genes | The gene values of the new chromosome. |
object MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.Clone | ( | ) |
Returns the copy of this chromosome.
void MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.dispose | ( | ) |
Releases any resources that this chromosome may use.
This method is invoked prior to its placement into a chromosome pool.
Implements MCScheduling.GeneticAlgorithm.IChromosome.
IEnumerator<IGene> MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.GetEnumerator | ( | ) |
Returns the gene enumerator of this chromosome.
double MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.getFitnessValue | ( | ) |
Returns the chromosome's fitness score.
Implements MCScheduling.GeneticAlgorithm.IChromosome.
IGene MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.getGene | ( | int | index | ) |
Returns the gene at the specified position.
index | The zero-based position of the gene. |
Implements MCScheduling.GeneticAlgorithm.IChromosome.
IGene [] MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.getGenes | ( | ) |
Returns the genes that form this chromosome.
Implements MCScheduling.GeneticAlgorithm.IChromosome.
int MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.getSize | ( | ) |
Returns the size of this chromosome, e.i.
the number of genes it contains.
Implements MCScheduling.GeneticAlgorithm.IChromosome.
bool MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.isSelectedForNextGeneration | ( | ) |
Returns true if this chromosome has been selected for the mating pool; otherwise, it returns false.
Implements MCScheduling.GeneticAlgorithm.IChromosome.
void MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.setFitnessValue | ( | double | value | ) |
Sets the fitness score of this chromosome to the specified value.
value | The chromosome's fitness score. |
Implements MCScheduling.GeneticAlgorithm.IChromosome.
void MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.setGene | ( | IGene | gene, |
int | index | ||
) |
Sets the gene at the specified position.
gene | The gene to be set. |
index | The zero-based position of the gene to be set. |
Implements MCScheduling.GeneticAlgorithm.IChromosome.
void MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.setSelectedForNextGeneration | ( | bool | selected | ) |
Sets the selection flag of this chromosome to the specified value.
selected | If true the chromosome is marked as selected; otherwise, it is unselected. |
Implements MCScheduling.GeneticAlgorithm.IChromosome.
IGene MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.this[int index] [get, set] |
Sets or gets the gene at the specified position.
index | The zero-based position of the gene to be set or get. |
Implements MCScheduling.GeneticAlgorithm.IChromosome.