Removes all adults from the patches and randomly moves the offspring to the adults age class.
More...
|
| | LCE_Aging () |
| |
| virtual | ~LCE_Aging () |
| |
| virtual bool | setParameters () |
| |
| virtual void | execute () |
| |
| virtual LCE_Aging * | clone () |
| |
| 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...
|
| |
Removes all adults from the patches and randomly moves the offspring to the adults age class.
Patch regulation is performed at the same time, leaving the patch at carrying capacity (if enough offspring individuals were present). This is the only LCE that actually removes the adults from the patches. Also checks whether the patch is filled and sets the extinction flag accordingly.
| void LCE_Aging::execute |
( |
| ) |
|
|
virtual |
Implements LifeCycleEvent.
51 unsigned int nbInd = 0;
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 size(age_t AGE)
Returns the size of the container of the appropriate age class(es) for both sexes.
Definition: metapop.h:498
void set_isExtinct(bool status)
Definition: metapop.h:476
void move(sex_t SEX, age_idx from, age_idx to, unsigned int at)
Moves an individual from an age class to an other one.
Definition: metapop.h:611
void flush(sex_t SEX, age_idx AGE, Metapop *pop)
Removes all individual pointers of the appropriate sex and age class and flush them into the recyclin...
Definition: metapop.h:685
void set_age(unsigned int a)
Definition: metapop.h:477
unsigned int get_KFem()
Definition: metapop.h:484
unsigned int get_KMal()
Definition: metapop.h:485
unsigned int get_age()
Definition: metapop.h:487
static double Uniform()
Generates a random number from [0.0, 1.0[ uniformly distributed.
Definition: Uniform.h:124
void message(const char *message,...)
Definition: output.cc:40
@ FEM
Definition: types.h:37
@ MAL
Definition: types.h:37
#define OFFSPRG
Offspring age class flag.
Definition: types.h:50
@ OFFSx
Definition: types.h:42
@ ADLTx
Definition: types.h:42
References LifeCycleEvent::_popPtr, ADLTx, ADULTS, FEM, Patch::flush(), Patch::get_age(), Patch::get_KFem(), Patch::get_KMal(), Metapop::getPatch(), Metapop::getPatchNbr(), MAL, message(), Patch::move(), OFFSPRG, OFFSx, Patch::set_age(), Patch::set_isExtinct(), Metapop::size(), Patch::size(), and RAND::Uniform().