Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Dispersal event with an evolving dispersal rate given by the "disp" trait. More...
#include <LCEdisperse.h>
Public Member Functions | |
LCE_Disperse_EvolDisp () | |
virtual | ~LCE_Disperse_EvolDisp () |
Implementations | |
virtual bool | setParameters () |
virtual void | execute () |
virtual LifeCycleEvent * | clone () |
![]() | |
LCE_Disperse_base () | |
virtual | ~LCE_Disperse_base () |
Deallocates the disp matrix. More... | |
bool | setBaseParameters (string prefix) |
void | setParamPrefix (string pref) |
void | addParameters (string prefix, ParamUpdaterBase *updater) |
void | setIndentityDispMatrix (TMatrix *mat) |
unsigned int | getMigrationPatchForward (sex_t SEX, unsigned int LocalPatch) |
unsigned int | getMigrationPatchBackward (sex_t SEX, unsigned int LocalPatch) |
void | setPropaguleTargets () |
void | swapPostDisp () |
void | reset_counters () |
void | set_isForward (bool val) |
bool | checkForwardDispersalMatrix (TMatrix *mat) |
bool | checkBackwardDispersalMatrix (TMatrix *mat) |
void | allocateDispMatrix (sex_t sex, unsigned int dim) |
bool | updateDispMatrix () |
bool | setDispMatrix () |
bool | setReducedMatricesBySex (sex_t SEX, Param &connectivity, Param &rate) |
bool | setReducedDispMatrix () |
The reduced dispersal matrix contains the indices of the patches to which each patch is connected. More... | |
bool | setIsland_MigrantPool_Matrix () |
bool | setIsland_PropagulePool_Matrix () |
bool | setSteppingStone1DMatrix () |
bool | setLatticeMatrix () |
Sets the dispersal matrices for the Lattice dispersal model. More... | |
bool | setBasicLatticeMatrix (int rows, int cols, double phi_mal, double phi_fem, double disp_mal, double disp_fem) |
bool | setLatticeTorrusMatrix (int rows, int cols, double disp_mal, double disp_fem, TMatrix *grid) |
bool | setLatticeAbsorbingMatrix () |
bool | setLatticeReflectingMatrix (int rows, int cols, TMatrix *grid) |
bool | isForward () |
bool | isByNumber () |
unsigned int | getDispersalModel () |
double | getPropaguleProb () |
unsigned int | getPropaguleTarget (unsigned int home) |
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 Member Functions | |
unsigned int | Migrate_Island (unsigned int home) |
unsigned int | Migrate_Island_Propagule (unsigned int home) |
unsigned int | Migrate_SteppingStone1D (unsigned int home) |
unsigned int | Migrate_Lattice (unsigned int home) |
void | exec_evolmale () |
void | exec_evolfemale () |
void | exec_evol2sex () |
void | evoldisp (sex_t SEX, int trait_link, double cost) |
void | fixdisp (sex_t SEX, double rate, double cost) |
Private Attributes | |
double | _fem_cost |
double | _mal_cost |
double | _fixed_disp_rate |
unsigned int(LCE_Disperse_EvolDisp::* | getAimedPatch )(unsigned int) |
void(LCE_Disperse_EvolDisp::* | exec )() |
int | _fdisp_trait_link |
int | _mdisp_trait_link |
Additional Inherited Members | |
![]() | |
unsigned int | _npatch |
Number of patches in the population. More... | |
vector< vector< double > > | _reducedDispMat [2] |
Matrix containing the indexes of the patches connected to each patch. More... | |
vector< vector< double > > | _reducedDispMatProba [2] |
Matrix containing the probability to migrate to/from the connected patches. More... | |
![]() | |
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... | |
Dispersal event with an evolving dispersal rate given by the "disp" trait.
The dispersal models implemented so far are:
LCE_Disperse_EvolDisp::LCE_Disperse_EvolDisp | ( | ) |
References SimComponent::add_parameter(), LCE_Disperse_base::addParameters(), DBL, setParameters(), and STR.
Referenced by clone().
|
inlinevirtual |
|
inlinevirtual |
References LCE_Disperse_base::_npatch, LifeCycleEvent::_popPtr, Patch::get(), getAimedPatch, Metapop::getPatch(), Individual::getTraitValue(), Patch::move(), Metapop::move(), Patch::nbEmigrant, Patch::nbImigrant, Patch::nbPhilopat, OFFSx, PDISPx, IndFactory::recycle(), Patch::remove(), Patch::size(), and RAND::Uniform().
Referenced by exec_evol2sex(), exec_evolfemale(), and exec_evolmale().
|
private |
References _fdisp_trait_link, _fem_cost, _mal_cost, _mdisp_trait_link, evoldisp(), FEM, and MAL.
Referenced by setParameters().
|
private |
References _fdisp_trait_link, _fem_cost, _fixed_disp_rate, _mal_cost, evoldisp(), FEM, fixdisp(), and MAL.
Referenced by setParameters().
|
private |
References _fem_cost, _fixed_disp_rate, _mal_cost, _mdisp_trait_link, evoldisp(), FEM, fixdisp(), and MAL.
Referenced by setParameters().
|
virtual |
Implements LifeCycleEvent.
References LCE_Disperse_base::_npatch, LifeCycleEvent::_popPtr, exec, Patch::get_isExtinct(), LCE_Disperse_base::getDispersalModel(), Metapop::getPatch(), Metapop::getPatchNbr(), message(), Patch::nbKolonisers, OFFSPRG, PDISPx, LCE_Disperse_base::reset_counters(), LCE_Disperse_base::setPropaguleTargets(), Metapop::size(), Patch::size(), and LCE_Disperse_base::swapPostDisp().
|
private |
References LCE_Disperse_base::_npatch, LifeCycleEvent::_popPtr, Patch::get(), getAimedPatch, Metapop::getPatch(), Patch::move(), Metapop::move(), Patch::nbEmigrant, Patch::nbImigrant, Patch::nbPhilopat, OFFSx, PDISPx, IndFactory::recycle(), Patch::remove(), Patch::size(), and RAND::Uniform().
Referenced by exec_evolfemale(), and exec_evolmale().
References LCE_Disperse_base::_npatch, and RAND::Uniform().
Referenced by setParameters().
References LCE_Disperse_base::_npatch, LCE_Disperse_base::getPropaguleProb(), LCE_Disperse_base::getPropaguleTarget(), and RAND::Uniform().
Referenced by setParameters().
References LCE_Disperse_base::_reducedDispMat, and RAND::Uniform().
Referenced by setParameters().
References LCE_Disperse_base::_npatch, and RAND::RandBool().
Referenced by setParameters().
|
virtual |
Implements SimComponent.
References LCE_Disperse_base::_disp_model, LCE_Disperse_base::_disp_propagule_prob, _fdisp_trait_link, _fem_cost, _fixed_disp_rate, _mal_cost, _mdisp_trait_link, LCE_Disperse_base::_npatch, SimComponent::_paramSet, LifeCycleEvent::_popPtr, LCE_Disperse_base::_prefix, LCE_Disperse_base::_reducedDispMat, error(), exec, exec_evol2sex(), exec_evolfemale(), exec_evolmale(), FEM, SimComponent::get_parameter(), getAimedPatch, ParamSet::getArg(), LCE_Disperse_base::getDispersalModel(), Metapop::getPatchNbr(), IndFactory::getTraitIndex(), ParamSet::getValue(), Param::getVariableMatrix(), ParamSet::isSet(), Migrate_Island(), Migrate_Island_Propagule(), Migrate_Lattice(), Migrate_SteppingStone1D(), LCE_Disperse_base::setLatticeMatrix(), and LCE_Disperse_base::setReducedDispMatrix().
Referenced by LCE_Disperse_EvolDisp().
|
private |
Referenced by exec_evol2sex(), exec_evolfemale(), and setParameters().
|
private |
Referenced by exec_evol2sex(), exec_evolfemale(), exec_evolmale(), and setParameters().
|
private |
Referenced by exec_evolfemale(), exec_evolmale(), and setParameters().
|
private |
Referenced by exec_evol2sex(), exec_evolfemale(), exec_evolmale(), and setParameters().
|
private |
Referenced by exec_evol2sex(), exec_evolmale(), and setParameters().
|
private |
Referenced by execute(), and setParameters().
Referenced by evoldisp(), fixdisp(), and setParameters().