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

GeneticMsg Class Reference

A genetic message that activates genes. More...

#include <genetics.h>

List of all members.

Public Methods

 GeneticMsg (const GeneticID &rcvr, Individual &ind)
virtual void pushCaller (Genstruct *clr)
GenstructgetCaller () const

Public Attributes

const GeneticID & receiver
Individualhost


Detailed Description

A genetic message that activates genes.

Definition at line 77 of file genetics.h.


Constructor & Destructor Documentation

GeneticMsg const GeneticID &    rcvr,
Individual   ind
[inline]
 

Create a genetic message.

Parameters:
rcvr  Receiver of the message. Typically a gene name as a String. It is planned that the GeneticID could also be a name mask, and also perhaps something else than a String.
ind  Individual. See member variable "host" below.

Definition at line 89 of file genetics.h.

References host, and receiver.


Member Function Documentation

Genstruct* getCaller   const [inline]
 

Returns the caller that was previously pushed.

Definition at line 109 of file genetics.h.

virtual void pushCaller Genstruct   clr [inline, virtual]
 

Pushes the current caller into call stack.

Use this like as follows:

gmsg.pushCaller (this);

child.execute (gmsg);

Since the caller is not currently implemented with stack, it should be repushed if another children are successively executed.

(This method is virtual only because we want to have a virtual table for the class!)

Definition at line 106 of file genetics.h.


Member Data Documentation

Individual& host
 

The individual whose genome we are handling.

This information is available for genes to allow them to decode themselves as phenotypes of the individual. It is also possible to activate or seek other genes of the host.

Definition at line 120 of file genetics.h.

Referenced by InterGene::execute(), and GeneticMsg().

const GeneticID& receiver
 

The name of the gene that is supposed to receive this message.

Definition at line 112 of file genetics.h.

Referenced by Gentainer::execute(), and GeneticMsg().


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