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

NolfiCell Class Reference

A temporary cell object used in the NolfiEncoding encoding method. More...

#include <nolfinet.h>

Inheritance diagram for NolfiCell:

CangelosiCell List of all members.

Public Methods

void make ()
void decodeFrom (const Gentainer &g, int i)
void developAxon (Array< Coord2D > &result, double scale) const
const Coord2D & pos () const
void setPos (const Coord2D &npos)
void setPos (double x, double y)
void setTipRadius (double r)
void mapTo (int neuron)
void drawEPS (EPSDevice &dc, double scale) const
void check () const

Static Public Methods

void addGenesTo (Gentainer &g, int i, int types, int xsize, int ysize, const StringMap &params)

Detailed Description

A temporary cell object used in the NolfiEncoding encoding method.

The NolfiCells are always contained in a NolfiNet. The cell has an ability to sprout a L-System axon tree from itself, where the shape of the tree is determined by parameters encoded in the genome.

Definition at line 56 of file nolfinet.h.


Member Function Documentation

void addGenesTo Gentainer &    g,
int    i,
int    types,
int    xsize,
int    ysize,
const StringMap &    params
[static]
 

Add the genes for a single cell (with given index) to the given genome.

Parameters:
g  Genetic container where the genes are placed. This is typically NolfiEncoding.
i  Index number of the gene. It will be used during ontogenesis to access the gene.
types  The number of different neuron types in the genome. The values are always a power of two; typical values are 8, 16, 32, 64.
xsize  X-dimension of the cellular space of the encoding method. A power of two. Typical value is 16.
ysize  Y-dimension of the cellular space of the encoding method. Typical value is 16.
params  Other params in a String Map.

Definition at line 200 of file nolfinet.cc.

Referenced by NolfiEncoding::addPrivateGenes().

void check  
 

Implementation for Object.

Definition at line 297 of file nolfinet.cc.

void decodeFrom const Gentainer &    g,
int    i
 

Read the cell with given index description from given genetic container.

Parameters:
g  Genetic container that contains the genes to individualize the cell.
i  The identifier number for the cell. Same as in addGenesTo.

Definition at line 229 of file nolfinet.cc.

void developAxon Array< Coord2D > &    result,
double    scale
const
 

Grows an "axon tree" L-System from the cell.

Definition at line 263 of file nolfinet.cc.

References NolfiTurtle::getTips().

void drawEPS EPSDevice &    dc,
double    scale
const
 

Draws the image of the cell and it's axon tree into the given graphics driver.

Parameters:
dc  Encapsulates PostScript graphics driver.
scale  Drawing scale. The size of the image is multiplied by this factor.

Definition at line 284 of file nolfinet.cc.

void make  
 

Initializes the cell.

Reimplemented in CangelosiCell.

Definition at line 147 of file nolfinet.cc.

Referenced by CangelosiCell::make().

void mapTo int    neuron [inline]
 

The NolfiCell is an temporary object.

The internal neuron index tells it's identity in the final network. If the value is EMPTYID (-1), the neuron will not exist in the final network.

Definition at line 99 of file nolfinet.h.

const Coord2D& pos   const [inline]
 

Returns:
The 2-dimensional coordinates of the cell in the cell space.

Definition at line 75 of file nolfinet.h.

void setPos double    x,
double    y
[inline]
 

Sets the coordinates of the cell in the cell space.

See also:
setPos(const Coord2D& npos)

Definition at line 85 of file nolfinet.h.

void setPos const Coord2D &    npos [inline]
 

Sets the coordinates of the cell in the cell space.

See also:
setPos(double x, double y)

Definition at line 80 of file nolfinet.h.

void setTipRadius double    r [inline]
 

Sets the connection radius of the axon tips.

This radius determines how far away the tip can be from another neuron to create an actual connection.

Parameters:
r  Typical values for the radius are 0.5...10.

Definition at line 93 of file nolfinet.h.


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:21:26 2005 for Annalee by doxygen1.2.18