|
Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
This interface gives the structur for the mutation of a gen. More...
#include <IMutationStrategy.h>

Public Member Functions | |
| IMutationStrategy () | |
| default constructor More... | |
| virtual | ~IMutationStrategy () |
| default destructor More... | |
| virtual Gen * | mutate (GenContext *context, Individual *individual, Gen *oldGen, GenContext *oldContext, SingletonGenFactory *factory)=0 |
| mutate a gen More... | |
| virtual int | getMutationProbability (void)=0 |
| gives the Probability of a mutation back. More... | |
This interface gives the structur for the mutation of a gen.
default constructor
|
virtual |
default destructor
|
pure virtual |
|
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.