Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Set patch-specifiec initial genotypes values. More...
#include <LCEquanti.h>
Public Member Functions | |
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... | |
Private Attributes | |
TProtoQuanti * | _QuantiProto |
vector< double > | _h2 |
TMatrix | _occurrences |
unsigned int | _next_occurrence |
bool | _is_permanent |
age_t | _age_flag |
vector< double >(TTQuantiSH::* | _get_VA_func_ptr )(Patch *, const age_idx) |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
ParamSet * | _paramSet |
The parameters container. More... | |
Set patch-specifiec initial genotypes values.
LCE_QuantiModifier::LCE_QuantiModifier | ( | ) |
References SimComponent::add_parameter(), BOOL, INT, MAT, setParameters(), and STR.
Referenced by clone().
|
inlinevirtual |
|
inlinevirtual |
Implements LifeCycleEvent.
|
inlinevirtual |
|
virtual |
Implements LifeCycleEvent.
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().
|
inlinevirtual |
Implements SimComponent.
|
inlinevirtual |
Implements SimComponent.
|
inlinevirtual |
Implements LifeCycleEvent.
|
inlinevirtual |
Implements LifeCycleEvent.
|
inlinevirtual |
Implements SimComponent.
References LifeCycleEvent::_LCELinkedTraitIndex, Patch::get(), Individual::setTraitValue(), and Patch::size().
Referenced by execute().
|
virtual |
Implements SimComponent.
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().
References _get_VA_func_ptr, _h2, _QuantiProto, TProtoQuanti::get_nb_traits(), TProtoQuanti::get_stater(), TTQuantiSH::getVg(), and TProtoQuanti::set_eVarianceSD().
Referenced by execute().
|
private |
Referenced by execute(), and setParameters().
|
private |
Referenced by setParameters(), and setVefromVa().
|
private |
Referenced by execute(), and setVefromVa().
|
private |
Referenced by execute(), and setParameters().
|
private |
Referenced by execute(), and setParameters().
|
private |
Referenced by execute(), and setParameters().
|
private |
Referenced by execute(), setParameters(), and setVefromVa().