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.

Inheritance diagram for FixGenerationSizeStrategy:

Inheritance graph
[legend]
Collaboration diagram for FixGenerationSizeStrategy:

Collaboration graph
[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:
Generated on Fri Oct 30 16:29:02 2009 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.4.7