GLInterfaceSwapTails Class Reference

#include <GLInterfaceSwapTails.h>

Inheritance diagram for GLInterfaceSwapTails:

GLOrganismVector< T >

List of all members.

Public Member Functions

virtual void swapTails (GLBaseOrganism *anotherOrganism, int pos)=0


Detailed Description

Interface which allows one organism to swap tails with another. For use in crossovers.

Definition at line 9 of file GLInterfaceSwapTails.h.


Member Function Documentation

virtual void GLInterfaceSwapTails::swapTails ( GLBaseOrganism anotherOrganism,
int  pos 
) [pure virtual]

Swaps tails with another organism. After this method is called the current organism should have tail of the anotherOrganism, while the latter will have the tail of the caller.

Parameters:
anotherOrganism organism with which the swap will be done.
pos the place where the tails are swapped (element [i] will be swapped too).

Implemented in GLOrganismVector< T >.


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

Generated on Sat Jun 13 13:58:10 2009 for GenLib by  doxygen 1.5.9