src/GeneticCode.h File Reference

Definition of the genetic codes. More...

#include "Constants.h"

Include dependency graph for GeneticCode.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  GeneticCode
union  GeneticCode::__code
 The genetic code. More...
struct  GeneticCode::__code::_bitfield
 The structure which contains the genetic code. More...

Defines

#define NB_BITS_AGGRESSIVENESS   2
#define NB_BITS_GREEDY   2
#define NB_BITS_REASONABLE   1
#define NB_BITS_GENETICCODE   (NB_BITS_SIZE + NB_BITS_AGGRESSIVENESS + NB_BITS_GREEDY + NB_BITS_REASONABLE)


Detailed Description

Definition of the genetic codes.

Author:
Émilien Girault, Léo Terziman
Date:
: feb 02 2008

Definition in file GeneticCode.h.


Define Documentation

#define NB_BITS_AGGRESSIVENESS   2

Number of bits to code aggressiveness

Definition at line 31 of file GeneticCode.h.

Referenced by GeneticBehaviour::think().

#define NB_BITS_GENETICCODE   (NB_BITS_SIZE + NB_BITS_AGGRESSIVENESS + NB_BITS_GREEDY + NB_BITS_REASONABLE)

Number of bits of the code

Definition at line 40 of file GeneticCode.h.

Referenced by GeneticCode::crossover(), GeneticCode::GeneticCode(), GeneticCode::mutate(), and GeneticCode::print().

#define NB_BITS_GREEDY   2

Number of bits to code aggressiveness

Definition at line 34 of file GeneticCode.h.

Referenced by GeneticBehaviour::think().

#define NB_BITS_REASONABLE   1

Number of bits to code aggressiveness

Definition at line 37 of file GeneticCode.h.

Referenced by GeneticBehaviour::think().


Generated on Sat Feb 2 22:22:56 2008 for Teapot Colony Wars by  doxygen 1.5.4