|
| | LCE_QuantiModifier () |
| |
| virtual | ~LCE_QuantiModifier () |
| |
| virtual void | execute () |
| |
| void | setVefromVa (Patch *patch, age_idx AGE) |
| |
| 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...
|
| |
Set patch-specifiec initial genotypes values.
| void LCE_QuantiModifier::execute |
( |
| ) |
|
|
virtual |
Implements LifeCycleEvent.
TMatrix _occurrences
Definition: LCEquanti.h:81
vector< double > _h2
Definition: LCEquanti.h:79
void setIndPhenotype(Patch *patch, sex_t SEX, age_idx AGE)
Definition: LCEquanti.cc:386
void setVefromVa(Patch *patch, age_idx AGE)
Definition: LCEquanti.cc:363
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
unsigned int ncols() const
Definition: tmatrix.h:216
double get(unsigned int i, unsigned int j) const
Accessor to element at row i and column j.
Definition: tmatrix.h:193
void set_trait_value_func_ptr(bool withVe)
Definition: ttquanti.cc:698
vector< double > get_heritability()
Definition: ttquanti.h:425
@ FEM
Definition: types.h:37
@ MAL
Definition: types.h:37
#define ADULTS
Adults age class flag (breeders).
Definition: types.h:54
#define OFFSPRG
Offspring age class flag.
Definition: types.h:50
@ OFFSx
Definition: types.h:42
@ ADLTx
Definition: types.h:42
References _age_flag, _h2, _is_permanent, _next_occurrence, _occurrences, LifeCycleEvent::_popPtr, _QuantiProto, ADLTx, ADULTS, FEM, TMatrix::get(), TProtoQuanti::get_heritability(), Metapop::getCurrentGeneration(), Metapop::getPatch(), Metapop::getPatchNbr(), MAL, TMatrix::ncols(), OFFSPRG, OFFSx, TProtoQuanti::set_trait_value_func_ptr(), setIndPhenotype(), and setVefromVa().
| bool LCE_QuantiModifier::setParameters |
( |
| ) |
|
|
virtual |
Implements SimComponent.
273 return error(
"LCE quanti_modifier:: multiple generations must be provided in a 1D array, with a single row\n");
281 std::for_each(flag.begin(), flag.end(), [](
char& c){c = ::tolower(c);});
283 if (flag ==
"adults" || flag ==
"adult" || flag ==
"4") {
287 }
else if (flag ==
"offsprings" || flag ==
"offspring" || flag ==
"1" ) {
291 }
else if (flag ==
"all" || flag ==
"7") {
297 fatal(
"LCE quanti_modifier:: targeted age class must be specified as \"adults\", \"offspring\", or \"all\" (%s)\n", flag.c_str());
TraitPrototype * getTraitPrototype(trait_t type)
Accessor to a TraitPrototype.
Definition: indfactory.cc:140
bool isMatrix()
Checks if the argument is of matrix type.
Definition: param.h:172
string getArg()
Definition: param.h:138
void getMatrix(TMatrix *mat)
Sets the matrix from the argument string if the parameter is set and of matrix type.
Definition: param.cc:378
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
void reset(unsigned int rows, unsigned int cols)
Re-allocate the existing matrix with assigned rows and cols dimensions and all elements to 0.
Definition: tmatrix.h:161
unsigned int nrows() const
Definition: tmatrix.h:213
TProtoQuanti.
Definition: ttquanti.h:409
unsigned int get_dominance_model()
Definition: ttquanti.h:461
vector< double > getVaNoDominance(Patch *curPop, const age_idx AGE)
Definition: ttquanti.cc:5625
vector< double > getVaWithDominance(Patch *curPop, const age_idx AGE)
computation of the additive genetic variance from the average excess of each allele exact under rando...
Definition: ttquanti.cc:5724
void fatal(const char *str,...)
Definition: output.cc:96
int error(const char *str,...)
Definition: output.cc:77
#define ALL
All ages age class flag.
Definition: types.h:56
References _age_flag, _get_VA_func_ptr, _is_permanent, _next_occurrence, _occurrences, LifeCycleEvent::_popPtr, _QuantiProto, ADULTS, ALL, error(), fatal(), TProtoQuanti::get_dominance_model(), SimComponent::get_parameter(), SimComponent::get_parameter_value(), Param::getArg(), Param::getMatrix(), IndFactory::getTraitPrototype(), TTQuantiSH::getVaNoDominance(), TTQuantiSH::getVaWithDominance(), Param::isMatrix(), TMatrix::nrows(), OFFSPRG, and TMatrix::reset().
Referenced by LCE_QuantiModifier().