![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
#include <GeneticMaterial.h>
Public Member Functions | |
GeneticMaterial1616 () | |
void | SetAllele (unsigned int locus, uint32 value, unsigned int Chromo) |
uint32 | GetAllele (unsigned int locus, unsigned int Chromo) |
void | PrintChromosome (char *C, unsigned int Chromosome) |
void | SetGeneticFlag () |
void | SetDirectFlag () |
void | UnsetGeneticFlag () |
void | UnsetDirectFlag () |
uint32 | GetGeneticFlag () |
uint32 | GetDirectFlag () |
int | HomozygosityCount () |
int | HeterozygosityCount () |
void | Recombine (GeneticMaterial1616 *Gene1, GeneticMaterial1616 *Gene2) |
void | Initiation (AlleleFreq1616 *Al) |
void | Mutation_1 () |
void | Mutation_2 () |
void | Mutation_3 () |
Protected Attributes | |
uint32 | Chromosome [4] |
GeneticMaterial1616::GeneticMaterial1616 | ( | ) |
References Chromosome.
uint32 GeneticMaterial1616::GetAllele | ( | unsigned int | locus, |
unsigned int | Chromo | ||
) |
References Chromosome, g_msg, and MapErrorMsg::Warn().
Referenced by GetDirectFlag(), GetGeneticFlag(), HeterozygosityCount(), HomozygosityCount(), Mutation_2(), Mutation_3(), PrintChromosome(), and Recombine().
uint32 GeneticMaterial1616::GetDirectFlag | ( | ) |
References GetAllele().
uint32 GeneticMaterial1616::GetGeneticFlag | ( | ) |
References GetAllele().
int GeneticMaterial1616::HeterozygosityCount | ( | ) |
References GetAllele().
int GeneticMaterial1616::HomozygosityCount | ( | ) |
References GetAllele().
void GeneticMaterial1616::Initiation | ( | AlleleFreq1616 * | Al | ) |
The method called to intialise genes on initiation of the simulation.
Gene frequencies are based on an external text file input read in on construction.
References g_random_fnc(), SetAllele(), and AlleleFreq1616::SupplyAN().
void GeneticMaterial1616::Mutation_1 | ( | ) |
void GeneticMaterial1616::Mutation_2 | ( | ) |
Move one allele + and 16 becomes 0
References g_rand_uni_fnc(), g_random_fnc(), GetAllele(), MutationChance, and SetAllele().
void GeneticMaterial1616::Mutation_3 | ( | ) |
Move one allele one up or down
References g_rand_uni_fnc(), g_random_fnc(), GetAllele(), MutationChance, and SetAllele().
void GeneticMaterial1616::PrintChromosome | ( | char * | C, |
unsigned int | Chromosome | ||
) |
References GetAllele().
void GeneticMaterial1616::Recombine | ( | GeneticMaterial1616 * | Gene1, |
GeneticMaterial1616 * | Gene2 | ||
) |
References g_random_fnc(), GetAllele(), and SetAllele().
void GeneticMaterial1616::SetAllele | ( | unsigned int | locus, |
uint32 | value, | ||
unsigned int | Chromo | ||
) |
References Chromosome, g_msg, and MapErrorMsg::Warn().
Referenced by Initiation(), Mutation_1(), Mutation_2(), Mutation_3(), Recombine(), SetDirectFlag(), SetGeneticFlag(), UnsetDirectFlag(), and UnsetGeneticFlag().
void GeneticMaterial1616::SetDirectFlag | ( | ) |
References SetAllele().
void GeneticMaterial1616::SetGeneticFlag | ( | ) |
References SetAllele().
void GeneticMaterial1616::UnsetDirectFlag | ( | ) |
References SetAllele().
void GeneticMaterial1616::UnsetGeneticFlag | ( | ) |
References SetAllele().
|
protected |
Referenced by GeneticMaterial1616(), GetAllele(), and SetAllele().