MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
Public Member Functions | Properties
MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome Class Reference

The CMixedCriticalityChromosome instance represents a schedule for a mixed-criticality instance that is associated with its genes which should be instances of CMixedCriticalityGene. More...

Inheritance diagram for MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome:
MCScheduling.GeneticAlgorithm.IChromosome

List of all members.

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< IGeneGetEnumerator ()
 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.

Detailed Description

The CMixedCriticalityChromosome instance represents a schedule for a mixed-criticality instance that is associated with its genes which should be instances of CMixedCriticalityGene.

Author:
Tomas Tunys
See also:
CMixedCriticalityGene

Constructor & Destructor Documentation

MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.CMixedCriticalityChromosome ( IGene[]  genes)

Creates a new chromosome from the specified genes.

Its fitness value is initialy set to 0.

Parameters:
genesThe gene values of the new chromosome.

Member Function Documentation

object MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.Clone ( )

Returns the copy of this chromosome.

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.

Returns:
The gene enumerator of this chromosome.
double MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.getFitnessValue ( )

Returns the chromosome's fitness score.

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.

Parameters:
indexThe zero-based position of the gene.
Returns:
The gene at the specified position.

Implements MCScheduling.GeneticAlgorithm.IChromosome.

IGene [] MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.getGenes ( )

Returns the genes that form this chromosome.

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.

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.

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.

Parameters:
valueThe 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.

Parameters:
geneThe gene to be set.
indexThe 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.

Parameters:
selectedIf true the chromosome is marked as selected; otherwise, it is unselected.

Implements MCScheduling.GeneticAlgorithm.IChromosome.


Property Documentation

IGene MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.this[int index] [get, set]

Sets or gets the gene at the specified position.

Parameters:
indexThe zero-based position of the gene to be set or get.

Implements MCScheduling.GeneticAlgorithm.IChromosome.

 All Classes Namespaces Functions Variables Properties