#include <GLCrossoverOnePoint.h>
Public Member Functions | |
GLCrossoverOnePoint () | |
virtual | ~GLCrossoverOnePoint () |
virtual void | makeOffsprings (const vector< GLBaseOrganism * > &parents, vector< GLBaseOrganism * > &children) |
Definition at line 12 of file GLCrossoverOnePoint.h.
GLCrossoverOnePoint::GLCrossoverOnePoint | ( | ) | [inline] |
Simple empty constructor.
Definition at line 18 of file GLCrossoverOnePoint.h.
virtual GLCrossoverOnePoint::~GLCrossoverOnePoint | ( | ) | [inline, virtual] |
Destructor -- destroys everything.
Definition at line 23 of file GLCrossoverOnePoint.h.
void GLCrossoverOnePoint::makeOffsprings | ( | const vector< GLBaseOrganism * > & | parents, | |
vector< GLBaseOrganism * > & | children | |||
) | [virtual] |
Creates an 2 offsprings from 2 parents by randomly swapping tails.
parents | vector of parents. | |
children | vector of new organisms obtained from parents. Previous content will not be preserved. |
Implements GLBaseCrossover.
Definition at line 13 of file GLCrossoverOnePoint.cpp.