|
Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
this mutation strategy clculate a mutation factor by using a mutation factor strategy an add this factor to the old gen. More...
#include <ValueMutationStrategy.h>


Public Member Functions | |
| ValueMutationStrategy (IMutationFactorStrategy *strategy, int mutationProbability) | |
| constructor More... | |
| virtual | ~ValueMutationStrategy () |
| default destructor More... | |
| virtual Gen * | mutate (GenContext *context, Individual *individual, Gen *oldGen, GenContext *oldContext, SingletonGenFactory *factory) |
| mutate a gen More... | |
| virtual int | getMutationProbability (void) |
| gives the Probability of a mutation back. More... | |
Public Member Functions inherited from IMutationStrategy | |
| IMutationStrategy () | |
| default constructor More... | |
| virtual | ~IMutationStrategy () |
| default destructor More... | |
Protected Attributes | |
| IMutationFactorStrategy * | m_strategy |
| the mutation factor strategy More... | |
| int | m_mutationProbability |
| the mutation probability More... | |
this mutation strategy clculate a mutation factor by using a mutation factor strategy an add this factor to the old gen.
| ValueMutationStrategy | ( | IMutationFactorStrategy * | strategy, |
| int | mutationProbability | ||
| ) |
constructor
| strategy | (IMutationFactorStrategy*) this strategie is used to calculate the mutation factor. |
| mutationProbability | (int) the mutation probability which is give back. |
|
virtual |
default destructor
|
virtual |
|
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. |
Implements IMutationStrategy.
|
protected |
the mutation probability
|
protected |
the mutation factor strategy