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
[legend]
Collaboration diagram for genetiK::ga::IndividualFactory:

Collaboration graph
[legend]
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 ()
 destructor
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.

Parameters:
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.

Returns:
a new Individual

Implements genetiK::IndividualFactory.

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

returns length set for this Factory

Returns:
this.length


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