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

Genome Class Reference

The highest level container of genetic information. More...

#include <genetics.h>

Inheritance diagram for Genome:

Gentainer Genstruct DiploidGenome MonoploidGenome List of all members.

Public Methods

void addking ()
int getkings () const
virtual void init ()
virtual void print (TextOStream &out) const
virtual void addPrivateGenes (Gentainer &g, const StringMap &pars)
virtual DataOStream & operator>> (DataOStream &out) const
virtual void check () const

Protected Attributes

int kings

Detailed Description

The highest level container of genetic information.

Typically the top level genstructs within the genome are recombined uniformly, to represent the independet assorment of chromosomes in biological genomes.

Definition at line 533 of file genetics.h.


Member Function Documentation

void addking   [inline]
 

Adds one score for an phenotype of this genome having scored the kinghood.

Useful only in elitist models.

Definition at line 549 of file genetics.h.

References kings.

Referenced by Individual::addking().

void addPrivateGenes Gentainer   g,
const StringMap &    pars
[virtual]
 

Implementation for Genstruct.

Reimplemented from Gentainer.

Reimplemented in DiploidGenome.

Definition at line 436 of file genetics.cc.

References Gentainer::addPrivateGenes().

Referenced by SimplePopulation::SimplePopulation().

void check   [virtual]
 

Implementation for Object.

Reimplemented from Gentainer.

Definition at line 450 of file genetics.cc.

References Gentainer::check(), and kings.

Referenced by Individual::check().

int getkings   const [inline]
 

Returns the number of kinghoods attained so far.

Useful only in elitist models.

Definition at line 554 of file genetics.h.

References kings.

Referenced by Individual::getkings().

void init   [virtual]
 

Implementation for Genstruct.

Reimplemented from Gentainer.

Reimplemented in DiploidGenome.

Definition at line 431 of file genetics.cc.

References Gentainer::init(), and kings.

Referenced by Individual::init().

DataOStream & operator>> DataOStream &    out const [virtual]
 

Implementation for Object.

Reimplemented from Gentainer.

Definition at line 444 of file genetics.cc.

References kings, and Gentainer::operator>>().

void print TextOStream &    out const [virtual]
 

Implementation for Genstruct.

Reimplemented from Gentainer.

Reimplemented in DiploidGenome.

Definition at line 440 of file genetics.cc.

References Gentainer::print().

Referenced by Individual::print().


Member Data Documentation

int kings [protected]
 

How many times a phenotype of this genome has been the King of the Kang.

Or King of the Jungle.

Definition at line 539 of file genetics.h.

Referenced by addking(), check(), getkings(), init(), and operator>>().


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:12:01 2005 for NeHeP by doxygen1.2.18