Utilities
Parameters
Experiment ━━ Genus ━━ Species ━━ Organism ━━ Genotype ━━ Chromosome ━━ Node
┗━━━━ Phenotype
┗━━━━━ Link
An Organism
corresponds to an individual agent whose behavior is encoded by its Genotype
, and expressed by its Phenotype
.
Species* species
Points to the Species
to which the Organism
belongs.
taxon_group group
Specifies whether the Organism
belongs to the DOMINANT
or CONTESTANT
group within its Species
.
Genotype* genotype
Points to the Organism
's Genotype
.
Phenotype* phenotype
Points to the Organism
's Phenotype
.
unsigned int age
The Organism
's age measured in generational cycles.
double score
The Organism
's fitness score.
Organism(Species* species_, Graph graph_)
Constructs an Organism
from a minimal input graph_
, associating it to the referenced input Species
.
Organism(Organism* organism_)
Constructs a deep copy of the referenced input Organism
, associating it to the same Species
.
Organism(Graph graph_)
Constructs a replica of an Organism
whose Genotype
is encoded by the input graph_
.
~Organism()
Destructs the Organism
, as well as its Genotype
and Phenotype
.
Organism* mutate()
Produces an offspring Organism
through MUTATION
.
Organism* assimilate(Organism* organism_)
Produces an offspring Organism
through ASSIMILATION
.
std::vector<std::vector<std::vector<double>>> react()
Prompts the Organism
to react to its Experiment
's stimuli
.
std::vector<std::vector<std::vector<double>>> react(std::vector<std::vector<std::vector<double>>> stimuli_)
Prompts the Organism
to react to the input stimuli_
.
Graph graph() const
Generates a Graph
encapsulating the Organism
's Genotype
properties.