MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
Public Member Functions | Properties
MCScheduling.GeneticAlgorithm.IChromosome Interface Reference

Interface providing methods common to all type of chromosomes. More...

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

List of all members.

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.

Detailed Description

Interface providing methods common to all type of chromosomes.

Author:
Tomas Tunys

Member Function Documentation

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.

Returns:
A non-negative decimal value denoting how fit the chromosome is, or -1, if no fitness has been determined for it, yet.

Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.

IGene MCScheduling.GeneticAlgorithm.IChromosome.getGene ( int  index)

Returns the gene at the given position within the chromosome.

Parameters:
indexThe zero-based position of the gene value to be returned.
Returns:
The gene at the given position.

Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.

IGene [] MCScheduling.GeneticAlgorithm.IChromosome.getGenes ( )

Returns the set of genes that make up the chromosome.

Returns:
An array of genes the chromosome is build from.

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.

Returns:
The number of genes the chromosome contains.

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.

Returns:
True if the chromosome goes to the next generation; otherwise, false.

Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.

void MCScheduling.GeneticAlgorithm.IChromosome.setFitnessValue ( double  value)

Sets the fitness value of the chromosome.

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

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

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

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


Property Documentation

IGene MCScheduling.GeneticAlgorithm.IChromosome.this[int index] [get, set]

Sets or gets the gene at the specified position.

Parameters:
indexThe zero-based index of the gene to get or set.
Returns:
The gene at the specified position.

Implemented in MCScheduling.MixedCriticality.GA.CMixedCriticalityChromosome.

 All Classes Namespaces Functions Variables Properties