Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Dispersal event with constant dispersal rates. More...
#include <LCEdisperse.h>
Public Member Functions | |
LCE_Disperse_ConstDisp () | |
virtual | ~LCE_Disperse_ConstDisp () |
bool | setParameters (string prefix) |
void | Migrate () |
void | Migrate_propagule () |
void | MigratePatch (sex_t SEX, unsigned int LocalPatch) |
void | MigratePatch_AbsorbingBorder (sex_t SEX, unsigned int LocalPatch) |
void | MigratePatchByNumber (sex_t SEX, unsigned int LocalPatch) |
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 Attributes | |
void(LCE_Disperse_ConstDisp::* | doMigration )(void) |
void(LCE_Disperse_ConstDisp::* | doPatchMigration )(sex_t SEX, unsigned int local_patch) |
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 constant dispersal rates.
Sets and uses the dispersal matrices according to the dispersal model chosen. Dispersal models implemented so far are:
LCE_Disperse_ConstDisp::LCE_Disperse_ConstDisp | ( | ) |
References LCE_Disperse_base::addParameters(), and setParameters().
Referenced by clone().
|
inlinevirtual |
|
inlinevirtual |
Implements LifeCycleEvent.
Reimplemented in LCE_SeedDisp.
References LCE_Disperse_ConstDisp().
|
virtual |
Implements LifeCycleEvent.
References LCE_Disperse_base::_npatch, LifeCycleEvent::_popPtr, ADULTS, doMigration, fatal(), Metapop::getPatch(), Metapop::getPatchNbr(), message(), Patch::nbEmigrant, OFFSPRG, LCE_Disperse_base::reset_counters(), Metapop::size(), and LCE_Disperse_base::updateDispMatrix().
void LCE_Disperse_ConstDisp::Migrate | ( | ) |
References LCE_Disperse_base::_npatch, LifeCycleEvent::_popPtr, doPatchMigration, FEM, Patch::get_isExtinct(), Metapop::getPatch(), MAL, Patch::nbKolonisers, PDISPx, Patch::size(), and LCE_Disperse_base::swapPostDisp().
Referenced by Migrate_propagule(), and setParameters().
void LCE_Disperse_ConstDisp::Migrate_propagule | ( | ) |
References Migrate(), and LCE_Disperse_base::setIsland_PropagulePool_Matrix().
Referenced by setParameters().
References LCE_Disperse_base::_npatch, LifeCycleEvent::_popPtr, LCE_Disperse_base::getMigrationPatchForward(), Metapop::getPatch(), Metapop::move(), Patch::nbEmigrant, Patch::nbImigrant, Patch::nbPhilopat, OFFSx, PDISPx, and Patch::size().
Referenced by setParameters().
References LCE_Disperse_base::_npatch, LifeCycleEvent::_popPtr, Patch::get(), LCE_Disperse_base::getMigrationPatchForward(), Metapop::getPatch(), Metapop::move(), Patch::nbEmigrant, Patch::nbImigrant, Patch::nbPhilopat, OFFSx, PDISPx, IndFactory::recycle(), Patch::remove(), and Patch::size().
Referenced by setParameters().
References LCE_Disperse_base::_npatch, LifeCycleEvent::_popPtr, LCE_Disperse_base::_reducedDispMat, LCE_Disperse_base::_reducedDispMatProba, Metapop::getPatch(), Metapop::move(), Patch::nbEmigrant, Patch::nbImigrant, Patch::nbPhilopat, OFFSx, PDISPx, Patch::size(), and RAND::Uniform().
Referenced by setParameters().
|
inlinevirtual |
Implements SimComponent.
Reimplemented in LCE_SeedDisp.
References setParameters().
Referenced by LCE_Disperse_ConstDisp(), setParameters(), and LCE_SeedDisp::setParameters().
bool LCE_Disperse_ConstDisp::setParameters | ( | string | prefix | ) |
References doMigration, doPatchMigration, error(), SimComponent::get_parameter_value(), LCE_Disperse_base::getDispersalModel(), LCE_Disperse_base::isByNumber(), Migrate(), Migrate_propagule(), MigratePatch(), MigratePatch_AbsorbingBorder(), MigratePatchByNumber(), and LCE_Disperse_base::setBaseParameters().
|
private |
Referenced by execute(), and setParameters().
|
private |
Referenced by Migrate(), and setParameters().