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

NolfiNet Class Reference

Temporary network object representing the 2-dimensional cell space used by NolfiEncoding. More...

#include <nolfinet.h>

Inheritance diagram for NolfiNet:

CangelosiNet List of all members.

Public Methods

 NolfiNet (int inputs, int hiddens, int outputs, double xsize, double ysize, double tipRadius, double axonScale)
virtual void decodeFrom (const Gentainer &g)
virtual ANNetwork * growNet ()
String drawEPS () const

Protected Methods

virtual bool indexCells ()
virtual void resolveTypes (int &inputs, int &hiddens, int &outputs)
virtual void indexInputs ()
virtual void indexHiddens (int hiddens)
virtual void indexOutputs (int hiddens)
virtual void removeDuplicates (int &rOutputs)
virtual int connect (ANNetwork &net) const

Detailed Description

Temporary network object representing the 2-dimensional cell space used by NolfiEncoding.

Definition at line 158 of file nolfinet.h.


Constructor & Destructor Documentation

NolfiNet int    inputs,
int    maxhidden,
int    outputs,
double    xsize,
double    ysize,
double    tipRadius,
double    axonScale
 

Standard constructor.

Parameters:
tipRadius  Global axon tip radius value. This value is not used if the tip radius is encoded in the genome for each separate cell ("auto-cell").

Definition at line 319 of file nolfinet.cc.


Member Function Documentation

int connect ANNetwork &    net const [protected, virtual]
 

Connects the units in a FreeNetwork according to the connections between the temporary cells.

Returns:
The number of connections in the network.

Definition at line 519 of file nolfinet.cc.

Referenced by growNet().

void decodeFrom const Gentainer &    g [virtual]
 

Decodes the rewriting rules from the given genome.

Definition at line 343 of file nolfinet.cc.

Referenced by NolfiEncoding::execute().

String drawEPS   const
 

Draws an EPS image of the cell space, with the axon trees and all.

Returns:
The EPS image in a string.

Definition at line 587 of file nolfinet.cc.

Referenced by NolfiEncoding::execute(), and CangelosiEncoding::execute().

ANNetwork * growNet   [virtual]
 

Executes the ontogeny of the cell space; starts rewriting from a single mother cell, rewrites a few times, grows the axons, etc.

Returns:
The resulting phenotypic network topology, ready to be inserted as the individual's "brainplan" attribute.

Definition at line 469 of file nolfinet.cc.

References connect(), and indexCells().

Referenced by NolfiEncoding::execute(), and CangelosiEncoding::execute().

bool indexCells   [protected, virtual]
 

Gives the cells a neuron index number and a neuron type specifier according to their location on the 2D-space.

Returns:
TRUE return value tells that the indexing has resulted in a network with at least one input unit and all output units.

Definition at line 369 of file nolfinet.cc.

References indexHiddens(), indexInputs(), indexOutputs(), and resolveTypes().

Referenced by growNet().

void indexHiddens int    hiddens [protected, virtual]
 

Gives hidden neurons an index value in the final network.

Definition at line 9 of file extnolfi.cc.

Referenced by indexCells().

void indexInputs   [protected, virtual]
 

Gives input neurons an index value in the final network.

Definition at line 3 of file extnolfi.cc.

Referenced by indexCells().

void indexOutputs int    hiddens [protected, virtual]
 

Gives output neurons an index value in the final network.

Definition at line 33 of file extnolfi.cc.

Referenced by indexCells().

void removeDuplicates int &    rOutputs [protected, virtual]
 

Removes input and output cells that have duplicate ID values.

Definition at line 44 of file extnolfi.cc.

void resolveTypes int &    inputs,
int &    hiddens,
int &    outputs
[protected, virtual]
 

Resolves types (input, hidden or output) for each cell according to their location in the cell space.

The behaviour of this method is controlled by the mInputBorder and mOutputBorder variables.

Definition at line 393 of file nolfinet.cc.

Referenced by indexCells().


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