MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
Public Member Functions
MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover Class Reference

The alternating position crossover operator implementation. More...

Inheritance diagram for MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover:
MCScheduling.GeneticAlgorithm.CBaseCrossoverOperator MCScheduling.GeneticAlgorithm.IConfigurationDependent MCScheduling.GeneticAlgorithm.CGeneticOperator MCScheduling.GeneticAlgorithm.ICrossoverOperator

List of all members.

Public Member Functions

 CAlternatingPositionCrossover (CConfiguration configuration, double crossoverRate)
 Creates new alternating crossover operator for the specified configuration.
void notify (CConfiguration configuration)
 Invoked when the genetic algorithm is about to be executed.
void doCrossover (IChromosome dad, IChromosome mom, IChromosome child)
 Transferes genes from dad and mom chromosome on the child in alternating way, such that no two genes with the same allele value are transferred.
override void apply (IChromosome daddy, IChromosome mommy, CPopulation population)
 Crossovers the specified couple of chromosomes in a operator-specific way forming a new chromosomes that should be added to the specified population.

Detailed Description

The alternating position crossover operator implementation.

Author:
Tomas Tunys.

Constructor & Destructor Documentation

MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover.CAlternatingPositionCrossover ( CConfiguration  configuration,
double  crossoverRate 
)

Creates new alternating crossover operator for the specified configuration.

Parameters:
configurationThe configuration of a genetic algorithm that uses this operator.
crossoverRateThe crossover rate.

Member Function Documentation

override void MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover.apply ( IChromosome  daddy,
IChromosome  mommy,
CPopulation  population 
) [virtual]

Crossovers the specified couple of chromosomes in a operator-specific way forming a new chromosomes that should be added to the specified population.

Parameters:
daddyThe first chromosome entering into the crossover.
mommyThe second chromosome entering into the crossover.
populationThe population for the next generation.

Implements MCScheduling.GeneticAlgorithm.CBaseCrossoverOperator.

void MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover.doCrossover ( IChromosome  dad,
IChromosome  mom,
IChromosome  child 
)

Transferes genes from dad and mom chromosome on the child in alternating way, such that no two genes with the same allele value are transferred.

Parameters:
dadThe 1st parent chromosome.
momThe 2nd parent chromosome.
childThe resulting chromosome of the crossover.
void MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover.notify ( CConfiguration  configuration)

Invoked when the genetic algorithm is about to be executed.

Parameters:
configurationThe configuration of the genetic algorithm that uses this operator.

Implements MCScheduling.GeneticAlgorithm.IConfigurationDependent.

 All Classes Namespaces Functions Variables Properties