|
| | 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) |
| |
| 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 () |
| |
| | 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 () |
| |
| | 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...
|
| |
| void LCE_PhenotypeExpression::execute |
( |
| ) |
|
|
virtual |
Implements LifeCycleEvent.
360 for(
unsigned int t = 0; t <
_num_trait; ++t) {
373 for(
unsigned int s = 0; s < stage_nb; ++s)
LifeCycleEvent * get_LCE(string name)
Search for component with "name" in the life cycle events list.
Definition: basicsimulation.cc:76
TMatrix _env_cue
A matrix to hold the environmental cues (e value).
Definition: LCEphenoexpression.h:42
void setIndPhenotype(Patch *patch, sex_t SEX, age_idx AGE)
Definition: LCEphenoexpression.cc:400
TMatrix _e_rate
A matrix to hold the per generation rate of change of the environmental cues.
Definition: LCEphenoexpression.h:48
Base class performing (viability) selection on an arbitrary trait.
Definition: LCEselection.h:51
Metapop * _popPtr
The ptr to the current Metapop.
Definition: lifecycleevent.h:81
Second class in the metapopulation design structure, between the Metapop and Individual classes.
Definition: metapop.h:432
static SimRunner * MainSim
Definition: simenv.h:42
A class to handle matrix in params, coerces matrix into a vector of same total size.
Definition: tmatrix.h:50
void copy(const TMatrix &mat)
Copy a matrix.
Definition: tmatrix.h:78
void plus(unsigned int i, unsigned int j, double value)
Adds a value to an element of the matrix.
Definition: tmatrix.h:256
@ FEM
Definition: types.h:37
@ MAL
Definition: types.h:37
age_idx
Array index of the age classes in the patch sizes and containers arrays.
Definition: types.h:41
@ OFFSx
Definition: types.h:42
References _do_change_cue, _e_copy_trait_optimum_value, _e_rate, _env_cue, _is_labile, _num_trait, LifeCycleEvent::_popPtr, 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(), and setIndPhenotype().
| bool LCE_PhenotypeExpression::setParameters |
( |
| ) |
|
|
virtual |
Implements SimComponent.
112 return error(
"phenotype_expression::the number of evolving n-o-r (g1) should be equal to the number of g0 linked traits.\n");
132 return error(
"phenotype_expression::the number of evolving g2-values should be equal to the number of g0 linked traits.\n");
144 warning(
"phenotype_expression::parameter \"pheno_plastic_g1_value\" is set but g1 evolves. Fixed g1 values will be ignored.\n");
152 return error(
"phenotype_expression::the number of slope values (g1) should be equal to the number of g0 linked traits.\n");
158 return error(
"phenotype_expression::the slope values (g1) of the modelled n-o-r are missing.\n");
167 warning(
"phenotype_expression::parameter \"pheno_plastic_g2_value\" is set but g2 evolves. Fixed g2 values will be ignored.\n");
175 return error(
"phenotype_expression::the number of reference values (g2) should be equal to the number of g0 linked traits.\n");
181 warning(
"phenotype_expression::reference values (g2) of the n-o-r modeled are set to 0 by default.\n");
254 if(
get_parameter(
"pheno_plastic_e_is_selection_optimum_value")->isSet()) {
TraitPrototype * getTraitPrototype(trait_t type)
Accessor to a TraitPrototype.
Definition: indfactory.cc:140
double get_env_cue_noise(unsigned int patch, unsigned int trait)
Definition: LCEphenoexpression.cc:423
void set_phenot_g1_g2_evol(unsigned int patch, TTQuanti *trait)
Definition: LCEphenoexpression.cc:471
bool check_g_index_matrix(Param *param, TMatrix &mat)
Definition: LCEphenoexpression.cc:298
void set_phenot_g1_evol(unsigned int patch, TTQuanti *trait)
Definition: LCEphenoexpression.cc:443
bool set_g_value_matrix(Param *param, TMatrix &mat)
Definition: LCEphenoexpression.cc:276
void set_phenot_no_evol(unsigned int patch, TTQuanti *trait)
Definition: LCEphenoexpression.cc:430
double get_env_cue_no_noise(unsigned int patch, unsigned int trait)
Definition: LCEphenoexpression.cc:416
void set_phenot_g2_evol(unsigned int patch, TTQuanti *trait)
Definition: LCEphenoexpression.cc:457
double getValue(string name)
Accessor the parameters value.
Definition: param.h:302
Param * get_param(string name)
Look for a param "name" in its parameters list.
Definition: param.cc:658
bool isSet()
Accessor to the status flag.
Definition: param.h:288
virtual double get_parameter_value(std::string name)
Param value getter.
Definition: simcomponent.h:143
virtual Param * get_parameter(std::string name)
Param getter.
Definition: simcomponent.h:139
TProtoQuanti.
Definition: ttquanti.h:409
void warning(const char *str,...)
Definition: output.cc:58
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, _is_labile, _num_trait, SimComponent::_paramSet, LifeCycleEvent::_popPtr, _QuantiProto, _set_phenotype_func, check_g_index_matrix(), error(), get_env_cue_no_noise(), get_env_cue_noise(), ParamSet::get_param(), SimComponent::get_parameter(), SimComponent::get_parameter_value(), ParamSet::getMatrix(), Metapop::getPatchNbr(), IndFactory::getTraitPrototype(), ParamSet::getValue(), ParamSet::isSet(), TMatrix::length(), TMatrix::reset(), set_env_cue(), set_g_value_matrix(), set_phenot_g1_evol(), set_phenot_g1_g2_evol(), set_phenot_g2_evol(), set_phenot_no_evol(), setSpatialMatrix(), and warning().
Referenced by LCE_PhenotypeExpression().