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

Genome Class Reference

#include <amygdala/genome.h>

List of all members.

Public Methods

 Genome ()
 ~Genome ()
void get (string uri)
void submit (int score)
void setHandler (GenomeHandler *gh)
void parse ()
void Format (string format)

Protected Methods

void getHttp (string URL)
void getFile (string path)

Protected Attributes

GenomeHandlergHandler
unsigned int geneId
string genome
vector< pair< int, int > > chromosomes
string URL


Detailed Description

get a genome, either via HTTP or from a file and generate a NN from it. An object of this class needs a handler object specific to the application.
Author:
Rudiger Koch <rkoch@rkoch.org>


Member Function Documentation

void Genome::Format string    format
 

parses the format string as given by the server. Must be called if a gene is loaded from a file.

Parameters:
format  looks like: "Chromosome-format: {genes,size}{genes,size}...."

void Genome::get string    uri
 

get a gene from specified uri.

Parameters:
uri  has to be in URL format, either file:/path/to/file or http://server/path In case of the http variant, the URL must point to a gene server

void Genome::getFile string    path [protected]
 

load a gene from a file

void Genome::getHttp string    URL [protected]
 

load a genome file from a http server. This server must conform to the Amygdala genome server conventions.

void Genome::parse  
 

parse the genome string. Pass all genes to the supplied GenomeHandler object

void Genome::setHandler GenomeHandler   gh
 

set the handler. This handler must be derived from GenomeHandler

Parameters:
An  instance of GenomeHandler that matches the genome

void Genome::submit int    score
 

Submit a score to the server


Member Data Documentation

vector<pair <int, int> > Genome::chromosomes [protected]
 

pair <genes, gene_size>


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