|
Nemo
2.4.0b
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
#include <LCEphenoexpression.h>
Inheritance diagram for LCE_PhenotypeExpression:
Collaboration diagram for LCE_PhenotypeExpression:Public Member Functions | |
| LCE_PhenotypeExpression () | |
| virtual | ~LCE_PhenotypeExpression () |
| bool | set_g_value_matrix (Param *param, TMatrix &mat) |
| bool | check_g_index_matrix (Param *param, TMatrix &mat) |
| bool | set_env_cue () |
| void | set_phenot_no_evol (unsigned int patch, TTQuanti *trait) |
| void | set_phenot_g1_evol (unsigned int patch, TTQuanti *trait) |
| void | set_phenot_g2_evol (unsigned int patch, TTQuanti *trait) |
| void | set_phenot_g1_g2_evol (unsigned int patch, TTQuanti *trait) |
| double | get_env_cue_no_noise (unsigned int patch, unsigned int trait) |
| double | get_env_cue_noise (unsigned int patch, unsigned int trait) |
| virtual void | execute () |
| void | setIndPhenotype (Patch *patch, sex_t SEX, age_idx AGE) |
| void | setIndPhenotype_labile (Patch *patch, sex_t SEX, age_idx AGE) |
| void | setIndLiability (Patch *patch, sex_t SEX, age_idx AGE) |
| void | setIndLiability_evolving (Patch *patch, sex_t SEX, age_idx AGE) |
| void | setIndLiability_sigmoid (Patch *patch, sex_t SEX, age_idx AGE) |
| void | setIndLiability_evolving_sigmoid (Patch *patch, sex_t SEX, age_idx AGE) |
| virtual LifeCycleEvent * | clone () |
| virtual bool | setParameters () |
| virtual void | loadFileServices (FileServices *loader) |
| virtual void | loadStatServices (StatServices *loader) |
| virtual bool | resetParameterFromSource (std::string param, SimComponent *cmpt) |
| virtual age_t | removeAgeClass () |
| virtual age_t | addAgeClass () |
| virtual age_t | requiredAgeClass () |
Public Member Functions inherited from LifeCycleEvent | |
| LifeCycleEvent (const char *name, const char *trait_link) | |
| Cstor. More... | |
| virtual | ~LifeCycleEvent () |
| virtual void | init (Metapop *popPtr) |
| Sets the pointer to the current Metapop and the trait link if applicable. More... | |
| virtual bool | attach_trait (string trait) |
| virtual void | set_paramset (std::string name, bool required, SimComponent *owner) |
| virtual void | set_event_name (std::string &name) |
| Set the name of the event (name of the ParamSet) and add the corresponding parameter to the set. More... | |
| virtual void | set_event_name (const char *name) |
| virtual string & | get_event_name () |
| Accessor to the LCE's name. More... | |
| virtual int | get_rank () |
| Accessor to the LCE rank in the life cycle. More... | |
| virtual void | set_pop_ptr (Metapop *popPtr) |
| Accessors for the population pointer. More... | |
| virtual Metapop * | get_pop_ptr () |
Public Member Functions inherited from SimComponent | |
| 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_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 | |
| unsigned int | _num_trait |
| Number of plastic phenotypes. More... | |
| TMatrix | _env_cue |
| A matrix to hold the environmental cues (e value). More... | |
| TMatrix | _e_noise |
| A matrix to hold the environmental noise (e reliability). More... | |
| TMatrix | _e_rate |
| A matrix to hold the per generation rate of change of the environmental cues. More... | |
| bool | _e_copy_trait_optimum_value |
| A flag to set whether environmental cue values are equal to and copied from the trait local optimum values from LCE_selection. More... | |
| TMatrix | _g0_linked_index |
| TMatrix | _g1_linked_index |
| TMatrix | _g2_linked_index |
| TMatrix | _g1_values |
| TMatrix | _g2_values |
| TMatrix | _e_values |
| bool | _g1_evolves |
| bool | _g2_evolves |
| bool | _do_change_cue |
| bool | _is_labile |
| bool | _has_plasticity |
| bool | _has_liability |
| unsigned int | _num_liability_trait |
| bool | _has_evolving_threshold |
| TMatrix | _liability_linked_index |
| TMatrix | _liability_threshold_linked_index |
| vector< vector< double > > | _liability_threshold |
| vector< vector< double > > | _liability_values |
| bool | _has_liability_sigmoid |
| TMatrix | _liability_steepness_linked_index |
| vector< double > | _liability_steepness_fixed |
| bool | _liability_steepness_allow_negative |
| void(LCE_PhenotypeExpression::* | _set_phenotype_func )(unsigned int, TTQuanti *) |
| double(LCE_PhenotypeExpression::* | _get_env_cue_func )(unsigned int, unsigned int) |
| void(LCE_PhenotypeExpression::* | _set_liability_func )(Patch *, sex_t, age_idx) |
| TProtoQuanti * | _QuantiProto |
| A pointer to the plastic trait prototype. More... | |
Additional Inherited Members | |
Protected Attributes inherited from LifeCycleEvent | |
| std::string | _event_name |
| The param name to be read in the init file. More... | |
| Metapop * | _popPtr |
| The ptr to the current Metapop. More... | |
| std::string | _LCELinkedTraitType |
| The name of the linked trait. More... | |
| int | _LCELinkedTraitIndex |
| The index in the individual's trait table of the linked trait. More... | |
Protected Attributes inherited from SimComponent | |
| ParamSet * | _paramSet |
| The parameters container. More... | |
| LCE_PhenotypeExpression::LCE_PhenotypeExpression | ( | ) |
References SimComponent::add_parameter(), BOOL, DBL, INT, MAT, set_env_cue(), and setParameters().
Referenced by clone().
|
inlinevirtual |
Implements LifeCycleEvent.
References _QuantiProto, error(), TMatrix::get(), TProtoQuanti::get_num_traits(), Param::getName(), TMatrix::length(), and TMatrix::minus().
Referenced by setParameters().
|
inlinevirtual |
Implements LifeCycleEvent.
References LCE_PhenotypeExpression().
|
virtual |
Implements LifeCycleEvent.
References _do_change_cue, _e_copy_trait_optimum_value, _e_rate, _env_cue, _has_liability, _has_plasticity, _is_labile, _num_trait, LifeCycleEvent::_popPtr, _set_liability_func, TMatrix::copy(), FEM, TMatrix::get(), ComponentManager::get_LCE(), Metapop::getCurrentGeneration(), Metapop::getNumAgeClasses(), Metapop::getPatch(), Metapop::getPatchNbr(), SIMenv::MainSim, MAL, OFFSx, TMatrix::plus(), set_env_cue(), setIndPhenotype(), and setIndPhenotype_labile().
| double LCE_PhenotypeExpression::get_env_cue_no_noise | ( | unsigned int | patch, |
| unsigned int | trait | ||
| ) |
References _env_cue, and TMatrix::get().
Referenced by setParameters().
| double LCE_PhenotypeExpression::get_env_cue_noise | ( | unsigned int | patch, |
| unsigned int | trait | ||
| ) |
References _e_noise, _env_cue, RAND::Gaussian(), and TMatrix::get().
Referenced by setParameters().
|
inlinevirtual |
Implements SimComponent.
|
inlinevirtual |
Implements SimComponent.
|
inlinevirtual |
Implements LifeCycleEvent.
|
inlinevirtual |
Implements LifeCycleEvent.
|
inlinevirtual |
Implements SimComponent.
| bool LCE_PhenotypeExpression::set_env_cue | ( | ) |
References _env_cue, _num_trait, SimComponent::_paramSet, LifeCycleEvent::_popPtr, ParamSet::getMatrix(), Metapop::getPatchNbr(), TMatrix::reset(), and setSpatialMatrix().
Referenced by execute(), LCE_PhenotypeExpression(), and setParameters().
References _QuantiProto, error(), TProtoQuanti::get_num_traits(), Param::getMatrix(), Param::getName(), Param::getValue(), Param::isMatrix(), TMatrix::ncols(), TMatrix::nrows(), and TMatrix::reset().
Referenced by setParameters().
| void LCE_PhenotypeExpression::set_phenot_g1_evol | ( | unsigned int | patch, |
| TTQuanti * | trait | ||
| ) |
References _g0_linked_index, _g1_linked_index, _g2_values, _get_env_cue_func, _num_trait, TMatrix::get(), TTQuanti::get_phenotype(), and TTQuanti::set_phenotype().
Referenced by setParameters().
| void LCE_PhenotypeExpression::set_phenot_g1_g2_evol | ( | unsigned int | patch, |
| TTQuanti * | trait | ||
| ) |
References _g0_linked_index, _g1_linked_index, _g2_linked_index, _get_env_cue_func, _num_trait, TMatrix::get(), TTQuanti::get_phenotype(), and TTQuanti::set_phenotype().
Referenced by setParameters().
| void LCE_PhenotypeExpression::set_phenot_g2_evol | ( | unsigned int | patch, |
| TTQuanti * | trait | ||
| ) |
References _g0_linked_index, _g1_values, _g2_linked_index, _get_env_cue_func, _num_trait, TMatrix::get(), TTQuanti::get_phenotype(), and TTQuanti::set_phenotype().
Referenced by setParameters().
| void LCE_PhenotypeExpression::set_phenot_no_evol | ( | unsigned int | patch, |
| TTQuanti * | trait | ||
| ) |
References _g0_linked_index, _g1_values, _g2_values, _get_env_cue_func, _num_trait, TMatrix::get(), TTQuanti::get_phenotype(), and TTQuanti::set_phenotype().
Referenced by setParameters().
References LifeCycleEvent::_LCELinkedTraitIndex, _liability_linked_index, _liability_threshold, _liability_values, _num_liability_trait, Patch::get(), TMatrix::get(), TTQuanti::get_phenotype(), Individual::getTrait(), TTQuanti::set_phenotype(), and Patch::size().
Referenced by setParameters().
References LifeCycleEvent::_LCELinkedTraitIndex, _liability_linked_index, _liability_threshold, _liability_threshold_linked_index, _liability_values, _num_liability_trait, Patch::get(), TMatrix::get(), TTQuanti::get_phenotype(), Individual::getTrait(), TTQuanti::set_phenotype(), and Patch::size().
Referenced by setParameters().
| void LCE_PhenotypeExpression::setIndLiability_evolving_sigmoid | ( | Patch * | patch, |
| sex_t | SEX, | ||
| age_idx | AGE | ||
| ) |
References LifeCycleEvent::_LCELinkedTraitIndex, _liability_linked_index, _liability_steepness_allow_negative, _liability_steepness_fixed, _liability_steepness_linked_index, _liability_threshold, _liability_threshold_linked_index, _liability_values, _num_liability_trait, Patch::get(), TMatrix::get(), TTQuanti::get_phenotype(), Individual::getTrait(), TTQuanti::set_phenotype(), and Patch::size().
Referenced by setParameters().
References LifeCycleEvent::_LCELinkedTraitIndex, _liability_linked_index, _liability_steepness_allow_negative, _liability_steepness_fixed, _liability_steepness_linked_index, _liability_threshold, _liability_values, _num_liability_trait, Patch::get(), TMatrix::get(), TTQuanti::get_phenotype(), Individual::getTrait(), TTQuanti::set_phenotype(), and Patch::size().
Referenced by setParameters().
References LifeCycleEvent::_LCELinkedTraitIndex, _set_phenotype_func, Patch::get(), Patch::getID(), Individual::getTrait(), and Patch::size().
Referenced by execute().
References LifeCycleEvent::_LCELinkedTraitIndex, _set_phenotype_func, Patch::get(), Patch::getID(), Individual::getTrait(), TTQuanti::reset_phenotype_to_genotypic_value(), and Patch::size().
Referenced by execute().
|
virtual |
Implements SimComponent.
References _do_change_cue, _e_copy_trait_optimum_value, _e_noise, _e_rate, _g0_linked_index, _g1_evolves, _g1_linked_index, _g1_values, _g2_evolves, _g2_linked_index, _g2_values, _get_env_cue_func, _has_evolving_threshold, _has_liability, _has_liability_sigmoid, _has_plasticity, _is_labile, _liability_linked_index, _liability_steepness_allow_negative, _liability_steepness_fixed, _liability_steepness_linked_index, _liability_threshold, _liability_threshold_linked_index, _liability_values, _num_liability_trait, _num_trait, SimComponent::_paramSet, LifeCycleEvent::_popPtr, _QuantiProto, _set_liability_func, _set_phenotype_func, check_g_index_matrix(), error(), TMatrix::get(), get_env_cue_no_noise(), get_env_cue_noise(), TProtoQuanti::get_num_traits(), ParamSet::get_param(), SimComponent::get_parameter(), SimComponent::get_parameter_value(), ParamSet::getMatrix(), Metapop::getPatchNbr(), IndFactory::getTraitPrototype(), ParamSet::getValue(), Param::getVariableMatrix(), ParamSet::isSet(), TMatrix::length(), TMatrix::reset(), TMatrix::set(), set_env_cue(), set_g_value_matrix(), set_phenot_g1_evol(), set_phenot_g1_g2_evol(), set_phenot_g2_evol(), set_phenot_no_evol(), setIndLiability(), setIndLiability_evolving(), setIndLiability_evolving_sigmoid(), setIndLiability_sigmoid(), setSpatialMatrix(), and warning().
Referenced by LCE_PhenotypeExpression().
|
private |
Referenced by execute(), and setParameters().
|
private |
A flag to set whether environmental cue values are equal to and copied from the trait local optimum values from LCE_selection.
Referenced by execute(), and setParameters().
|
private |
A matrix to hold the environmental noise (e reliability).
Referenced by get_env_cue_noise(), and setParameters().
|
private |
A matrix to hold the per generation rate of change of the environmental cues.
Referenced by execute(), and setParameters().
|
private |
|
private |
A matrix to hold the environmental cues (e value).
Referenced by execute(), get_env_cue_no_noise(), get_env_cue_noise(), and set_env_cue().
|
private |
Referenced by set_phenot_g1_evol(), set_phenot_g1_g2_evol(), set_phenot_g2_evol(), set_phenot_no_evol(), and setParameters().
|
private |
Referenced by setParameters().
|
private |
Referenced by set_phenot_g1_evol(), set_phenot_g1_g2_evol(), and setParameters().
|
private |
Referenced by set_phenot_g2_evol(), set_phenot_no_evol(), and setParameters().
|
private |
Referenced by setParameters().
|
private |
Referenced by set_phenot_g1_g2_evol(), set_phenot_g2_evol(), and setParameters().
|
private |
Referenced by set_phenot_g1_evol(), set_phenot_no_evol(), and setParameters().
|
private |
Referenced by set_phenot_g1_evol(), set_phenot_g1_g2_evol(), set_phenot_g2_evol(), set_phenot_no_evol(), and setParameters().
|
private |
Referenced by setParameters().
|
private |
Referenced by execute(), and setParameters().
|
private |
Referenced by setParameters().
|
private |
Referenced by execute(), and setParameters().
|
private |
Referenced by execute(), and setParameters().
|
private |
|
private |
Referenced by setIndLiability_evolving_sigmoid(), setIndLiability_sigmoid(), and setParameters().
|
private |
Referenced by setIndLiability_evolving_sigmoid(), setIndLiability_sigmoid(), and setParameters().
|
private |
Referenced by setIndLiability_evolving_sigmoid(), setIndLiability_sigmoid(), and setParameters().
|
private |
|
private |
Referenced by setIndLiability_evolving(), setIndLiability_evolving_sigmoid(), and setParameters().
|
private |
|
private |
|
private |
Number of plastic phenotypes.
Referenced by execute(), set_env_cue(), set_phenot_g1_evol(), set_phenot_g1_g2_evol(), set_phenot_g2_evol(), set_phenot_no_evol(), and setParameters().
|
private |
A pointer to the plastic trait prototype.
Referenced by check_g_index_matrix(), set_g_value_matrix(), and setParameters().
|
private |
Referenced by execute(), and setParameters().
|
private |
Referenced by setIndPhenotype(), setIndPhenotype_labile(), and setParameters().
1.9.1 -- Nemo is hosted on