Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Prototype of the evolving dispersal trait, defines the sex-specific trait type. More...
#include <ttdispersal.h>
Public Member Functions | |
TProtoDispersal (sex_t sex) | |
TProtoDispersal (const TProtoDispersal &TP) | |
virtual | ~TProtoDispersal () |
virtual void | init () |
virtual void | reset () |
virtual TTDispersal * | hatch () |
virtual TProtoDispersal * | clone () |
virtual trait_t | get_type () const |
virtual void | store_data (BinaryStorageBuffer *saver) |
virtual bool | retrieve_data (BinaryStorageBuffer *reader) |
virtual bool | setParameters () |
virtual void | loadFileServices (FileServices *loader) |
virtual void | loadStatServices (StatServices *loader) |
virtual bool | resetParameterFromSource (std::string param, SimComponent *cmpt) |
bool | setNonRandom () |
bool | setRandom () |
bool | get_init_mode () |
TMatrix * | get_init_dist_params () |
string | get_init_dist () |
![]() | |
virtual void | reset ()=0 |
Called at the end of a simulation to reset the Traits' prototypes (e.g. More... | |
virtual TTrait * | hatch ()=0 |
Creates the trait of which it is the prototype, called by IndFactory::makePrototype() . More... | |
virtual TraitPrototype * | clone ()=0 |
Returns a copy of itself. More... | |
virtual trait_t | get_type () const =0 |
Type accessor. More... | |
virtual void | set_index (int idx) |
Sets the traits index. More... | |
virtual int | get_index () |
Index getter. More... | |
![]() | |
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 () |
![]() | |
SimComponent () | |
virtual | ~SimComponent () |
virtual void | loadUpdaters (UpdaterServices *loader) |
Loads the parameters and component updater onto the updater manager. More... | |
virtual void | set_paramset (ParamSet *paramset) |
Sets the ParamSet member. More... | |
virtual void | set_paramset (std::string name, bool required, SimComponent *owner) |
Sets a new ParamSet and name it. More... | |
virtual void | set_paramsetFromCopy (const ParamSet &PSet) |
Reset the set of parameters from a another set. More... | |
virtual ParamSet * | get_paramset () |
ParamSet accessor. More... | |
virtual void | add_parameter (Param *param) |
Interface to add a parameter to the set. More... | |
virtual void | add_parameter (std::string Name, param_t Type, bool isRequired, bool isBounded, double low_bnd, double up_bnd) |
Interface to add a parameter to the set. More... | |
virtual void | add_parameter (std::string Name, param_t Type, bool isRequired, bool isBounded, double low_bnd, double up_bnd, ParamUpdaterBase *updater) |
Interface to add a parameter and its updater to the set. More... | |
virtual Param * | get_parameter (std::string name) |
Param getter. More... | |
virtual double | get_parameter_value (std::string name) |
Param value getter. More... | |
virtual string | get_name () |
Returnd the name of the ParamSet, i.e. More... | |
virtual bool | has_parameter (std::string name) |
Param getter. More... | |
Private Attributes | |
double | _mut_rate |
The allelic mutation rate. More... | |
double | _mut_mean |
Mean mutation step. More... | |
double | _init_rate_fem |
Initial allele for female dispersal. More... | |
double | _init_rate_mal |
Initial allele for male dispersal. More... | |
string | _init_dist |
TMatrix | _init_dist_param |
bool | _init_random |
sex_t | _gender |
The gender of the trait, will determine its type. More... | |
TTDispersalSH * | _stats |
The trait's type. More... | |
Additional Inherited Members | |
![]() | |
int | _index |
The trait index in the Individual traits table. More... | |
![]() | |
ParamSet * | _paramSet |
The parameters container. More... | |
Prototype of the evolving dispersal trait, defines the sex-specific trait type.
TProtoDispersal::TProtoDispersal | ( | sex_t | sex | ) |
References SimComponent::add_parameter(), DBL, MAT, SimComponent::set_paramset(), and STR.
TProtoDispersal::TProtoDispersal | ( | const TProtoDispersal & | TP | ) |
References SimComponent::_paramSet.
|
virtual |
|
inlinevirtual |
Implements TraitPrototype.
|
inline |
References _init_dist.
Referenced by TTDispersal::init_sequence().
|
inline |
References _init_dist_param.
Referenced by TTDispersal::init_sequence().
|
inline |
References _init_random.
Referenced by TTDispersal::init_sequence().
|
inlinevirtual |
|
virtual |
Implements TraitPrototype.
References _gender, _init_rate_fem, _init_rate_mal, _mut_mean, _mut_rate, TTDispersal::set_gender(), TTDispersal::set_init_rate_fem(), TTDispersal::set_init_rate_mal(), TTDispersal::set_mut_mean(), TTDispersal::set_mut_rate(), and TTDispersal::set_proto().
|
inlinevirtual |
|
inlinevirtual |
Implements SimComponent.
|
virtual |
Implements SimComponent.
References _stats, and StatServices::attach().
|
inlinevirtual |
Implements TraitPrototype.
|
inlinevirtual |
Implements SimComponent.
|
inlinevirtual |
Implements StorableComponent.
References _gender, and BinaryStorageBuffer::read().
bool TProtoDispersal::setNonRandom | ( | ) |
References _init_random, _init_rate_fem, _init_rate_mal, error(), SimComponent::get_parameter(), SimComponent::get_parameter_value(), Param::getValue(), and Param::isSet().
Referenced by setParameters().
|
virtual |
Implements SimComponent.
References _mut_mean, _mut_rate, SimComponent::get_parameter(), SimComponent::get_parameter_value(), Param::setArg(), Param::setIsSet(), setNonRandom(), setRandom(), and warning().
bool TProtoDispersal::setRandom | ( | ) |
References _init_dist, _init_dist_param, _init_random, error(), SimComponent::get_parameter(), Param::getArg(), Param::getMatrix(), and Param::isSet().
Referenced by setParameters().
|
inlinevirtual |
Implements StorableComponent.
References _gender, and BinaryStorageBuffer::store().
|
private |
The gender of the trait, will determine its type.
Referenced by get_type(), hatch(), retrieve_data(), and store_data().
|
private |
Referenced by get_init_dist(), and setRandom().
|
private |
Referenced by get_init_dist_params(), and setRandom().
|
private |
Referenced by get_init_mode(), setNonRandom(), and setRandom().
|
private |
Initial allele for female dispersal.
Referenced by hatch(), and setNonRandom().
|
private |
Initial allele for male dispersal.
Referenced by hatch(), and setNonRandom().
|
private |
Mean mutation step.
Referenced by hatch(), and setParameters().
|
private |
The allelic mutation rate.
Referenced by hatch(), and setParameters().
|
private |
The trait's type.
The trait's StatHandler.
Referenced by loadStatServices(), and ~TProtoDispersal().