Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FixMutationFactorStrategy Class Reference

This strategy implementation return a fix value for the mutation factor. More...

#include <FixMutationFactorStrategy.h>

Inheritance diagram for FixMutationFactorStrategy:
Collaboration diagram for FixMutationFactorStrategy:

Public Member Functions

 FixMutationFactorStrategy (IValue *value)
 constructor More...
 
virtual ~FixMutationFactorStrategy ()
 default destructor More...
 
virtual IValuecalcMutationFactor (const std::vector< Gen * > &gene)
 returns the fix value as mutation value More...
 
- Public Member Functions inherited from IMutationFactorStrategy
 IMutationFactorStrategy ()
 default constructor More...
 
virtual ~IMutationFactorStrategy ()
 default destructor More...
 

Protected Attributes

IValuem_value
 the saved fix value which is giving back. More...
 

Detailed Description

This strategy implementation return a fix value for the mutation factor.

Constructor & Destructor Documentation

constructor

Parameters
value(IValue*) the fix Value

default destructor

Member Function Documentation

IValue * calcMutationFactor ( const std::vector< Gen * > &  gene)
virtual

returns the fix value as mutation value

Parameters
gene(vector<Gen*>) the set of gens -> here not used.
Returns
(IValue*) the mutation factor

Implements IMutationFactorStrategy.

Member Data Documentation

IValue* m_value
protected

the saved fix value which is giving back.


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