genetiK::ga::IndividualFactory Class Reference
[Genetic Algorithm framework]

IndividualFactory: GA-specific Individual Factory. More...

#include <IndividualFactory.h>

Inheritance diagram for genetiK::ga::IndividualFactory:

Inheritance graph
Collaboration diagram for genetiK::ga::IndividualFactory:

Collaboration graph
List of all members.

Public Member Functions

 IndividualFactory (unsigned int length)
 Creates a factory that creates Individual objects having specified length.
unsigned int getLength ()
 returns length set for this Factory
virtual ~IndividualFactory ()
virtual genetiK::Individualgenerate ()=0
 abstract generate function

Detailed Description

IndividualFactory: GA-specific Individual Factory.

This class extends the generic genetiK::IndividualFactory to generate individuals to be used with Genetic Algorithms.

Constructor & Destructor Documentation

genetiK::ga::IndividualFactory::IndividualFactory unsigned int  length  ) 

Creates a factory that creates Individual objects having specified length.

length length of the individuals to generate
See also:
Individual(unsigned int length)

Member Function Documentation

virtual genetiK::Individual* genetiK::ga::IndividualFactory::generate  )  [pure virtual]

abstract generate function

This function must be extended by sublcasses to generate appropriate individuals.

a new Individual

Implements genetiK::IndividualFactory.

unsigned int genetiK::ga::IndividualFactory::getLength  )  [inline]

returns length set for this Factory


The documentation for this class was generated from the following files:
Generated on Thu Feb 23 12:22:20 2006 for GenetiK by  doxygen 1.4.6