#include <genes.h>
Inheritance diagram for Gene:
Public Methods | |
Gene () | |
void | setMutability (double val) |
double | getMutability () const |
virtual void | addPrivateGenes (Gentainer &g, const StringMap ¶ms) |
virtual void | copy (const Genstruct &other) |
virtual const Genstruct * | getGene (const GeneticID &nam) const |
virtual void | check () const |
Protected Methods | |
virtual int | calc_len () const |
Protected Attributes | |
double | mutability |
Actually it's not so atomic at physical level, since it can contain even lower level structures, but in logical level it should be atomic.
The class should be abstract, but is not because Array doesn't allow that.
Definition at line 54 of file genes.h.
|
Default constructor, FORBIDDEN! Exists only because of RTTI system.
|
|
Implementation for Genstruct.
Reimplemented from Genstruct. |
|
Actually calculates the true length of the genome (recursively).
Reimplemented from Genstruct. Reimplemented in BitFloatGene, and BitIntGene. |
|
Implementation for Object.
Reimplemented from Genstruct. Reimplemented in AnyFloatGene, FloatGene, BitFloatGene, AnyIntGene, IntGene, and BitIntGene. Definition at line 82 of file genes.h. References Genstruct::check(). Referenced by AnyIntGene::check(), and AnyFloatGene::check(). |
|
Implementation for Genstruct.
Reimplemented from Genstruct. Reimplemented in BinaryGene, AnyFloatGene, FloatGene, BitFloatGene, AnyIntGene, IntGene, BitIntGene, and InterGene. Definition at line 70 of file genes.cc. References Genstruct::copyGenstr(), and mutability. Referenced by AnyIntGene::copy(), AnyFloatGene::copy(), and BinaryGene::copy(). |
|
Implementation for Genstruct.
Reimplemented from Genstruct. Definition at line 79 of file genes.h. References Genstruct::id. |
|
Returns the mutation coefficient.
Definition at line 68 of file genes.h. References mutability. |
|
Sets the mutation coefficient.
Definition at line 65 of file genes.h. References mutability. |
|
A coefficient for the mutation propability OR distribution function. Its semantics are dependent on the specific gene subclass. Definition at line 89 of file genes.h. Referenced by copy(), getMutability(), BinaryGene::operator>>(), IntGene::pointMutate(), FloatGene::pointMutate(), BinaryGene::pointMutate(), and setMutability(). |