Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
#include <ttquanti.h>
Public Member Functions | |
TTQuanti () | |
TTQuanti (const TTQuanti &T) | |
virtual | ~TTQuanti () |
virtual void | init () |
virtual void | init_sequence () |
virtual void | reset () |
virtual void | inherit (TTrait *mother, TTrait *father) |
virtual void | mutate () |
virtual void * | set_trait (void *value) |
virtual void | set_sequence (void **seq) |
virtual void | set_value () |
virtual void * | getValue () const |
virtual trait_t | get_type () const |
virtual void ** | get_sequence () const |
virtual double | get_allele_value (int loc, int all) |
virtual void | set_allele_value (unsigned int locus, unsigned int allele, double value) |
virtual void | show_up () |
virtual TTQuanti * | clone () |
virtual TTQuanti & | operator= (const TTrait &T) |
virtual bool | operator== (const TTrait &T) |
virtual bool | operator!= (const TTrait &T) |
virtual void | store_data (BinaryStorageBuffer *saver) |
virtual bool | retrieve_data (BinaryStorageBuffer *reader) |
void | set_proto (TProtoQuanti *proto) |
double | get_additive_genotype (unsigned int trait) |
double | get_full_genotype (unsigned int trait) |
void | set_allele (int locus, int allele, double value) |
void | set_phenotype (unsigned int trait, double value) |
![]() | |
virtual void | init ()=0 |
Called to allocate the trait's genotypic sequences. More... | |
virtual void | init_sequence ()=0 |
Called at the start of each replicate, sets the initial genotypes. More... | |
virtual void | reset ()=0 |
Called at the end of each simulation/replicate, deallocates sequence memory. More... | |
virtual void | inherit (TTrait *mother, TTrait *father)=0 |
Inheritance procedure, creates a new trait from mother's and father's traits. More... | |
virtual void | mutate ()=0 |
Mutation procedure, perform mutations on the genes sequence. More... | |
virtual void * | set_trait (void *value)=0 |
Called to set the phenotypic to a particular value or to give context-dependant value(s) to the trait. More... | |
virtual void | set_sequence (void **seq)=0 |
Called to set the sequence pointer to an existing trait. More... | |
virtual double | get_allele_value (int loc, int all)=0 |
Called to read one allele value at a particular locus. More... | |
virtual void | set_allele_value (unsigned int locus, unsigned int allele, double value)=0 |
Called to change the allelic value at a particular locus. More... | |
virtual void | set_value ()=0 |
Tells the trait to set its phenotype from genotype, should be used instead of getValue(). More... | |
virtual void * | getValue () const =0 |
Genotype to phenotype mapper. More... | |
virtual trait_t | get_type () const =0 |
type accessor. More... | |
virtual void ** | get_sequence () const =0 |
sequence accessor. More... | |
virtual void | show_up ()=0 |
Writes some info to stdout. More... | |
virtual TTrait * | clone ()=0 |
Returns a copy of itself. More... | |
virtual | ~TTrait () |
![]() | |
virtual void | store_data (BinaryStorageBuffer *saver)=0 |
Interface to store the component data (e.g. gene values) into a binary buffer. More... | |
virtual bool | retrieve_data (BinaryStorageBuffer *reader)=0 |
Interface to retrieve the same data from the binary buffer. More... | |
virtual | ~StorableComponent () |
Private Attributes | |
double ** | _sequence |
double * | _phenotypes |
TProtoQuanti * | _myProto |
|
inline |
|
inline |
|
inlinevirtual |
double TTQuanti::get_additive_genotype | ( | unsigned int | trait | ) |
References _myProto, _sequence, and TProtoQuanti::set_genotype_value_additive().
Referenced by TTQuantiSH::getVaNoDominance(), and TTQuantiFH::print().
Implements TTrait.
References _myProto, TProtoQuanti::_seq_length, and _sequence.
Referenced by TProtoQuanti::mutate_diallelic_HC(), and TProtoQuanti::mutate_noHC().
double TTQuanti::get_full_genotype | ( | unsigned int | trait | ) |
References _myProto, _sequence, and TProtoQuanti::_set_genotype_func_ptr.
Referenced by TTQuantiSH::getVaWithDominance(), TTQuantiFH::print(), and store_quanti_trait_values().
|
inlinevirtual |
Implements TTrait.
References _sequence.
Referenced by TTQuantiSH::getVaWithDominance(), TTQuantiFH::print(), and TProtoQuanti::set_trait_value_noVE().
|
inlinevirtual |
Implements TTrait.
References QUANT.
Referenced by operator==().
|
inlinevirtual |
Implements TTrait.
References _phenotypes.
Referenced by TTQuantiFH::print(), and store_quanti_trait_values().
Implements TTrait.
References _myProto, _sequence, FEM, TTrait::get_sequence(), TProtoQuanti::inherit(), and MAL.
|
inlinevirtual |
Implements TTrait.
References _myProto, TProtoQuanti::_nb_traits, _phenotypes, TProtoQuanti::_seq_length, _sequence, and reset().
Referenced by operator=(), and set_sequence().
|
inlinevirtual |
Implements TTrait.
References TProtoQuanti::_allele_model, TProtoQuanti::_allele_value, TProtoQuanti::_doInitMutation, TProtoQuanti::_getMutationValues, TProtoQuanti::_init_value, _myProto, TProtoQuanti::_nb_locus, TProtoQuanti::_nb_traits, _sequence, RAND::Gaussian(), and RAND::Uniform().
Referenced by LCE_QuantiInit::init_trait_value().
|
inlinevirtual |
|
virtual |
Implements TTrait.
Implements TTrait.
References _myProto, TProtoQuanti::_seq_length, _sequence, init(), and set_value().
|
virtual |
Implements TTrait.
References _myProto, TProtoQuanti::_nb_locus, TProtoQuanti::_nb_traits, TProtoQuanti::_seq_length, get_type(), and TTrait::get_type().
|
inlinevirtual |
Implements TTrait.
References _phenotypes, and _sequence.
Referenced by init(), and ~TTQuanti().
|
inlinevirtual |
Implements StorableComponent.
References _myProto, TProtoQuanti::_seq_length, _sequence, and BinaryStorageBuffer::read().
References _sequence.
Referenced by LCE_QuantiInit::init_allele_freq(), TProtoQuanti::mutate_diallelic_HC(), TProtoQuanti::mutate_HC(), and TProtoQuanti::mutate_noHC().
void TTQuanti::set_phenotype | ( | unsigned int | trait, |
double | value | ||
) |
References _phenotypes.
|
inline |
References _myProto.
Referenced by TProtoQuanti::hatch().
|
virtual |
Implements TTrait.
References _myProto, TProtoQuanti::_seq_length, _sequence, and init().
Referenced by TTQuantiFH::FHread().
|
inlinevirtual |
Implements TTrait.
|
inlinevirtual |
Implements TTrait.
References _myProto, TProtoQuanti::_nb_traits, _phenotypes, and TProtoQuanti::_set_trait_value_func_ptr.
Referenced by TTQuantiFH::FHread(), LCE_QuantiInit::init_allele_freq(), LCE_QuantiInit::init_trait_value(), and operator=().
|
virtual |
Implements TTrait.
References _myProto, TProtoQuanti::_nb_locus, TProtoQuanti::_nb_traits, _phenotypes, TProtoQuanti::_seq_length, _sequence, and message().
|
inlinevirtual |
Implements StorableComponent.
References _myProto, TProtoQuanti::_seq_length, _sequence, and BinaryStorageBuffer::store().
|
private |
|
private |
Referenced by getValue(), init(), reset(), set_phenotype(), set_value(), and show_up().
|
private |