Robot Simulator of the Robotics Group for Self-Organization of Control: FixGenerationSizeStrategy Class Reference

# FixGenerationSizeStrategy Class Reference

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

`#include <FixGenerationSizeStrategy.h>`

Inherits IGenerationSizeStrategy.

Collaboration diagram for FixGenerationSizeStrategy:
[legend]

List of all members.

## Public Member Functions
| FixGenerationSizeStrategy (int value)
| constructor
virtual | ~FixGenerationSizeStrategy ()
| default destructor
virtual int | calcGenerationSize (Generation *oldGeneration)
| gives the fix value m_size as new generation size back.
## Protected Attributes
int | m_size
| the fix generation size

## 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.

~FixGenerationSizeStrategy | ( |  | ) | `[virtual]`

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:

- FixGenerationSizeStrategy.h
- FixGenerationSizeStrategy.cpp