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
FixGenerationSizeStrategy Class Reference

This class implements the generation size strategy with a fix value which is over the constructor given. More...

#include <FixGenerationSizeStrategy.h>

Inheritance diagram for FixGenerationSizeStrategy:
Collaboration diagram for FixGenerationSizeStrategy:

Public Member Functions

 FixGenerationSizeStrategy (int value)
 constructor More...
 
virtual ~FixGenerationSizeStrategy ()
 default destructor More...
 
virtual int calcGenerationSize (Generation *oldGeneration)
 gives the fix value m_size as new generation size back. More...
 
- Public Member Functions inherited from IGenerationSizeStrategy
 IGenerationSizeStrategy ()
 default constructor do nothing More...
 
virtual ~IGenerationSizeStrategy ()
 default destructor do nothing More...
 

Protected Attributes

int m_size
 the fix generation size More...
 

Detailed Description

This class implements the generation size strategy with a fix value which is over the constructor given.

Constructor & Destructor Documentation

FixGenerationSizeStrategy ( int  value)

constructor

Parameters
value(int) the fix value which is every time give back by calcGenerationSize.

default destructor

Member Function Documentation

int calcGenerationSize ( Generation oldGeneration)
virtual

gives the fix value m_size as new generation size back.

Parameters
oldGeneration(Generation*) the old Generation. dont needed
Returns
(int) m_size

Implements IGenerationSizeStrategy.

Member Data Documentation

int m_size
protected

the fix generation size


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