realea::IMutation Class Reference
[Real Evolutionary Algorithms Common (Core classes)]

#include <imutation.h>

Inherited by realea::MutationBGA.

Collaboration diagram for realea::IMutation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual tGen mutate (tChromosomeReal &sol, unsigned posi)=0
void setRandom (Random *random)

Detailed Description

This class define the mutation type

To create a new mutation crossover, the class must inherit from this interface and redefine the apply method

Definition at line 38 of file imutation.h.


Member Function Documentation

virtual tGen realea::IMutation::mutate ( tChromosomeReal &  sol,
unsigned  posi 
) [pure virtual]

Make de mutation (changing a gen of the chromosome sol).

Parameters:
sol the chromosome to update, it is modified
gen the position of gen to change
void realea::IMutation::setRandom ( Random random  )  [inline]

Set the random variable

It must be speficied if Mutation is going to use it.

Parameters:
random the random generation numbers.

Definition at line 56 of file imutation.h.


The documentation for this class was generated from the following file:

Generated on Sun May 9 12:26:14 2010 for Realea by  doxygen 1.6.1