#include <IMutationStrategy.h>
Inherited by ValueMutationStrategy.
Inheritance diagram for IMutationStrategy:

Public Member Functions | |
| IMutationStrategy () | |
| default constructor | |
| virtual | ~IMutationStrategy () |
| default destructor | |
| virtual Gen * | mutate (GenContext *context, Individual *individual, Gen *oldGen, GenContext *oldContext, SingletonGenFactory *factory)=0 |
| mutate a gen | |
| virtual int | getMutationProbability (void)=0 |
| gives the Probability of a mutation back. | |
default constructor
| ~IMutationStrategy | ( | ) | [virtual] |
default destructor
| virtual int getMutationProbability | ( | void | ) | [pure virtual] |
| virtual Gen* mutate | ( | GenContext * | context, | |
| Individual * | individual, | |||
| Gen * | oldGen, | |||
| GenContext * | oldContext, | |||
| SingletonGenFactory * | factory | |||
| ) | [pure virtual] |
mutate a gen
| context | (GenContext*) the context in which the new gen comes (needed by the factory | |
| individual | (Individual*) the individual, which the new gen becomes | |
| oldGen | (Gen*) the old gen, which mutate | |
| oldContext | (GenContext*) the Context in which the old gen are. | |
| factory | (SingletonGenFactory*) the GenFactory which create the new gen. |
Implemented in ValueMutationStrategy.
1.4.7