Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

GenomeHandler Class Reference

#include <amygdala/genomehandler.h>

Inheritance diagram for GenomeHandler:

Cherrymoya List of all members.

Public Methods

 GenomeHandler ()
virtual ~GenomeHandler ()
virtual void gene (string gene)=0
virtual void startChromosome (int geneLength, int genes)=0
virtual void finish ()=0

Detailed Description

virtual class to derive a handler from. The class is used as this:
  1. the startChromosome() function is called to start each chromosome
  2. for every gene in the chromosome, the gene() is called
  3. to signal that the parsing has finished, the finish() function is called. The implementation of the finish() function should then complete the buildup of the NN
Author:
Rudiger Koch


Member Function Documentation

virtual void GenomeHandler::finish   [pure virtual]
 

this function is called by Genome to notify the handler that no more genes get submitted. The handler is then supposed to do the rest of it's work.

Implemented in Cherrymoya.

virtual void GenomeHandler::gene string    gene [pure virtual]
 

gets called for each gene found in the genome

Parameters:
one  gene of the current chromosome

Implemented in Cherrymoya.

virtual void GenomeHandler::startChromosome int    geneLength,
int    genes
[pure virtual]
 

gets called for each chromosome in the genome

Parameters:
geneLength  the length of the genes that will be sent

Implemented in Cherrymoya.


The documentation for this class was generated from the following file:
Generated on Wed Sep 4 02:30:36 2002 for Amygdala by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002