MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
Public Member Functions | Static Public Member Functions | Protected Member Functions
MCScheduling.GeneticAlgorithm.CGeneticOperator Class Reference

The base public class for implementation of a genetic operator. More...

Inheritance diagram for MCScheduling.GeneticAlgorithm.CGeneticOperator:
MCScheduling.GeneticAlgorithm.CBaseCrossoverOperator MCScheduling.GeneticAlgorithm.CBaseMutationOperator MCScheduling.GeneticAlgorithm.CBaseSelectionOperator MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover MCScheduling.GeneticAlgorithm.CCycleCrossover MCScheduling.GeneticAlgorithm.CGreedyCrossover MCScheduling.GeneticAlgorithm.CHeuristicCrossover MCScheduling.GeneticAlgorithm.COrderBasedCrossover MCScheduling.GeneticAlgorithm.COrderCrossover MCScheduling.GeneticAlgorithm.CPartiallyMappedCrossover MCScheduling.GeneticAlgorithm.CPositionBasedCrossover MCScheduling.GeneticAlgorithm.CDisplacedInversionMutation MCScheduling.GeneticAlgorithm.CDisplacementMutation MCScheduling.GeneticAlgorithm.CExchangeMutation MCScheduling.GeneticAlgorithm.CInsertionMutation MCScheduling.GeneticAlgorithm.CInversionMutation MCScheduling.GeneticAlgorithm.CScrambleMutation MCScheduling.GeneticAlgorithm.CDeterministicSampling MCScheduling.GeneticAlgorithm.CRandomTournamentSelector MCScheduling.GeneticAlgorithm.CRemainderStochasticSampling MCScheduling.GeneticAlgorithm.CRouletteWheelSelector MCScheduling.GeneticAlgorithm.CStochasticUniversalSampling

List of all members.

Public Member Functions

 CGeneticOperator (CConfiguration configuration)
 Creates and initializes the base crossover operator.
void setConfiguration (CConfiguration configuration)
 Sets the configuration of a genetic algorithm that uses this operator.
CConfiguration getConfiguration ()
 Returns a configuration of a genetic algorithm that uses this operator.

Static Public Member Functions

static void swapGenes (IChromosome x, IChromosome y, int i, int j)
 Performes a swap of the i-th gene in the first specified chromosome with the j-th gene in the second.
static void swapGenes (IChromosome x, int i, int j)
 Performes a swap of the i-th gene with the j-th gene in the specified chromosome.
static void swap< T > (ref T x, ref T y)
 Swaps the contents of the specified variables, i.e.

Protected Member Functions

void getChromosomeSection (out int start, out int span, int minSpan, int maxSpan)
 Determines a random start point and span to a section given a minimum and maximum span size.

Detailed Description

The base public class for implementation of a genetic operator.

Author:
Tomas Tunys

Constructor & Destructor Documentation

MCScheduling.GeneticAlgorithm.CGeneticOperator.CGeneticOperator ( CConfiguration  configuration)

Creates and initializes the base crossover operator.

Parameters:
configurationThe configuration of the genetic algorithm that will utilize this operator.
Exceptions:
NullReferenceExceptionIf confuguration is null.

Member Function Documentation

void MCScheduling.GeneticAlgorithm.CGeneticOperator.getChromosomeSection ( out int  start,
out int  span,
int  minSpan,
int  maxSpan 
) [protected]

Determines a random start point and span to a section given a minimum and maximum span size.

Parameters:
startThe section's start point.
spanThe section's span.
minSpanThe minimum span of the created section.
maxSpanThe maximum span of the created section.
CConfiguration MCScheduling.GeneticAlgorithm.CGeneticOperator.getConfiguration ( )

Returns a configuration of a genetic algorithm that uses this operator.

Returns:
A configuration of a genetic algorithm that uses this operator.
void MCScheduling.GeneticAlgorithm.CGeneticOperator.setConfiguration ( CConfiguration  configuration)

Sets the configuration of a genetic algorithm that uses this operator.

Parameters:
configurationThe configuration of a genetic algorithm that uses this operator.
static void MCScheduling.GeneticAlgorithm.CGeneticOperator.swap< T > ( ref T  x,
ref T  y 
) [static]

Swaps the contents of the specified variables, i.e.

assigns the value of x to y, and vice versa.

Parameters:
xThe first variable whose content will be swapped.
yThe second variable whose content will be swapped.
static void MCScheduling.GeneticAlgorithm.CGeneticOperator.swapGenes ( IChromosome  x,
IChromosome  y,
int  i,
int  j 
) [static]

Performes a swap of the i-th gene in the first specified chromosome with the j-th gene in the second.

Parameters:
xThe first chromosome whose gene will be swapped.
yThe second chromosome whose gene will be swapped.
iThe position of the gene in the first chromosome that will be swapped.
jThe position of the gene in the second chromosome that will be swapped.
static void MCScheduling.GeneticAlgorithm.CGeneticOperator.swapGenes ( IChromosome  x,
int  i,
int  j 
) [static]

Performes a swap of the i-th gene with the j-th gene in the specified chromosome.

Parameters:
xThe chromosome whose genes will be swapped.
iThe position of the first gene that will be swapped.
jThe position of the second gene that will be swapped.
 All Classes Namespaces Functions Variables Properties