Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Trait used to study the dynamics of spread of Wolbachia, an endosymbiotic parasite causing cytoplasmic incompatibility. More...
#include <ttwolbachia.h>
Public Member Functions | |
TTWolbachia () | |
TTWolbachia (const TTWolbachia &T) | |
virtual | ~TTWolbachia () |
void | set_transmit_rate (double val) |
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 TTWolbachia * | clone () |
virtual TTWolbachia & | 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) |
![]() | |
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 | _transmit_rate |
bool | _is_infected |
Trait used to study the dynamics of spread of Wolbachia, an endosymbiotic parasite causing cytoplasmic incompatibility.
The trait state is given by a unique haploid "gene" with two alleles, 0 = uninfected and 1 = infected.
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements TTrait.
|
inlinevirtual |
Implements TTrait.
References WOLB.
Referenced by operator==().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements TTrait.
References _is_infected, _transmit_rate, and RAND::Uniform().
|
virtual |
Implements TTrait.
|
virtual |
Implements TTrait.
References _is_infected.
|
virtual |
Implements TTrait.
References get_type(), and TTrait::get_type().
|
inlinevirtual |
|
inlinevirtual |
Implements StorableComponent.
References _is_infected, and BinaryStorageBuffer::read().
|
inlinevirtual |
Implements TTrait.
|
inlinevirtual |
|
inline |
References _transmit_rate.
Referenced by TProtoWolbachia::hatch().
|
inlinevirtual |
Implements TTrait.
|
inlinevirtual |
Implements TTrait.
|
inlinevirtual |
Implements StorableComponent.
References _is_infected, and BinaryStorageBuffer::store().
|
private |
Referenced by get_allele_value(), getValue(), inherit(), init(), init_sequence(), mutate(), operator=(), reset(), retrieve_data(), set_allele_value(), set_trait(), and store_data().
|
private |
Referenced by mutate(), and set_transmit_rate().