#include <genes.h>
Inheritance diagram for InterGene:
Public Methods | |
InterGene (const GeneticID &name=NULL, const GeneticID &trg=NULL) | |
virtual void | init () |
virtual Genstruct * | replicate () const |
virtual void | copy (const Genstruct &other) |
virtual bool | execute (const GeneticMsg &msg) const |
virtual void | print (TextOStream &out) const |
virtual bool | pointMutate (const MutationRate &k) |
Executing this gene automatically executes another gene.
Definition at line 771 of file genes.h.
|
Standard constructor.
Definition at line 780 of file genes.h. Referenced by replicate(). |
|
Implementation for Genstruct.
Reimplemented from Gene. Definition at line 589 of file genes.cc. References Genstruct::copyGenstr(). |
|
Transmits a sad order to execute a gene. The receiver of the message reads in the upper left corner of the message. It should then execute itself. It's good that objects don't have feelings. (Hmm, they don't?) Reimplemented from Genstruct. Definition at line 585 of file genes.cc. References Individual::execute(), and GeneticMsg::host. |
|
Implementation for Genstruct. The initialization command is not passed through to the referred gene. Reimplemented from Genstruct. |
|
Mutates the structure.
Reimplemented from Genstruct. |
|
Recursively prints the genome to the given stream. This is most cool. Reimplemented from Genstruct. Definition at line 594 of file genes.cc. References Genstruct::id. |
|
Clones a copy of self, RECURSIVELY. It's funny how simple reproduction is nowadays. Reimplemented from Genstruct. Definition at line 790 of file genes.h. References InterGene(). |