Nemo  2.4.0
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
LCE_Patch_Extinction Class Reference

Randomly removes individuals from the patches according to the extinction rate parameter. More...

#include <LCEmisc.h>

+ Inheritance diagram for LCE_Patch_Extinction:
+ Collaboration diagram for LCE_Patch_Extinction:

Public Member Functions

 LCE_Patch_Extinction ()
 
virtual ~LCE_Patch_Extinction ()
 
bool set_matrix_param (TMatrix *mat, string name)
 
void do_flush (Patch *patch)
 
void do_remove (age_idx AGE, Patch *patch)
 
unsigned int get_harvest_size (age_idx AGE, Patch *patch)
 
virtual bool setParameters ()
 
virtual void execute ()
 
virtual LifeCycleEventclone ()
 
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 ()
 
- Public Member Functions inherited from LifeCycleEvent
 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 Metapopget_pop_ptr ()
 
- Public Member Functions inherited from SimComponent
 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 ParamSetget_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 Paramget_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 rand_uniform (double max)
 
unsigned int rand_poisson (double mean)
 
unsigned int rand_gaussian (double mean)
 
unsigned int rand_exp (double mean)
 
unsigned int rand_lognormal (double mean)
 

Private Attributes

TMatrix_Xtion_rate
 Patch extinction probability. More...
 
TMatrix_harvest_size
 Number of individual to remove per patch. More...
 
TMatrix_harvest_proportion
 Proportion of the patch size to remove. More...
 
string _harvest_distribution
 Name of the distribution to use. More...
 
bool _harvest_size_varies
 Flags. More...
 
bool _by_size
 
bool _by_proportion
 
double _harvest_dist_stdev
 Standard deviate to use with the Gaussian dist. More...
 
double _harvest_dist_shape
 shape variable to use with the gamma dist. More...
 
double _extinction_threshold
 Patch extinction threshold in % of total size of the patch. More...
 
unsigned int(LCE_Patch_Extinction::* _rand_size_fct )(double)
 

Additional Inherited Members

- Protected Attributes inherited from LifeCycleEvent
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...
 
- Protected Attributes inherited from SimComponent
ParamSet_paramSet
 The parameters container. More...
 

Detailed Description

Randomly removes individuals from the patches according to the extinction rate parameter.

Sets the patches extinction flag accordingly.

Constructor & Destructor Documentation

◆ LCE_Patch_Extinction()

LCE_Patch_Extinction::LCE_Patch_Extinction ( )
131  : LifeCycleEvent("extinction",""), _Xtion_rate(0),
134 {
137  add_parameter("extinction_rate", DBL, 0, 1, 0, 1, updater);
138  add_parameter("extinction_threshold", DBL, 0, 1, 0, 1, updater);
139  add_parameter("extinction_size", INT, 0, 0, 0, 0, updater);
140  add_parameter("extinction_proportion", DBL, 0, 1, 0, 1, updater);
141  add_parameter("extinction_size_distribution", STR, 0, 0, 0, 0, updater);
142  add_parameter("extinction_size_dist_stdev", DBL, 0, 0, 0, 0, updater);
143  add_parameter("extinction_size_dist_shape", DBL, 0, 0, 0, 0, updater);
144 }
TMatrix * _harvest_proportion
Proportion of the patch size to remove.
Definition: LCEmisc.h:109
unsigned int(LCE_Patch_Extinction::* _rand_size_fct)(double)
Definition: LCEmisc.h:121
bool _by_proportion
Definition: LCEmisc.h:113
double _harvest_dist_stdev
Standard deviate to use with the Gaussian dist.
Definition: LCEmisc.h:115
virtual bool setParameters()
Definition: LCEmisc.cc:149
double _extinction_threshold
Patch extinction threshold in % of total size of the patch.
Definition: LCEmisc.h:119
bool _harvest_size_varies
Flags.
Definition: LCEmisc.h:113
bool _by_size
Definition: LCEmisc.h:113
TMatrix * _harvest_size
Number of individual to remove per patch.
Definition: LCEmisc.h:107
TMatrix * _Xtion_rate
Patch extinction probability.
Definition: LCEmisc.h:105
LifeCycleEvent(const char *name, const char *trait_link)
Cstor.
Definition: lifecycleevent.h:97
Implementation of the ParamUpdaterBase interface.
Definition: param.h:362
virtual void add_parameter(Param *param)
Interface to add a parameter to the set.
Definition: simcomponent.h:111
@ DBL
Definition: types.h:77
@ STR
Definition: types.h:77
@ INT
Definition: types.h:77

References SimComponent::add_parameter(), DBL, INT, setParameters(), and STR.

Referenced by clone().

+ Here is the caller graph for this function:

◆ ~LCE_Patch_Extinction()

virtual LCE_Patch_Extinction::~LCE_Patch_Extinction ( )
inlinevirtual
133  {
134  if(_Xtion_rate) delete _Xtion_rate;
135  if(_harvest_size) delete _harvest_size;
137  }

References _harvest_proportion, _harvest_size, and _Xtion_rate.

Member Function Documentation

◆ addAgeClass()

virtual age_t LCE_Patch_Extinction::addAgeClass ( )
inlinevirtual

Implements LifeCycleEvent.

154 {return 0;}

◆ clone()

virtual LifeCycleEvent* LCE_Patch_Extinction::clone ( )
inlinevirtual

Implements LifeCycleEvent.

147 {return new LCE_Patch_Extinction();}
LCE_Patch_Extinction()
Definition: LCEmisc.cc:131

References LCE_Patch_Extinction().

◆ do_flush()

void LCE_Patch_Extinction::do_flush ( Patch patch)
319 {
320  patch->flush(_popPtr);
321  patch->set_isExtinct(true);
322  patch->set_age(0);
323 }
Metapop * _popPtr
The ptr to the current Metapop.
Definition: lifecycleevent.h:80
void set_isExtinct(bool status)
Definition: metapop.h:475
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:686
void set_age(unsigned int a)
Definition: metapop.h:476

References LifeCycleEvent::_popPtr, Patch::flush(), Patch::set_age(), and Patch::set_isExtinct().

Referenced by execute().

+ Here is the caller graph for this function:

◆ do_remove()

void LCE_Patch_Extinction::do_remove ( age_idx  AGE,
Patch patch 
)
328 {
329  unsigned int remove_size;
330  sex_t sex;
331 
332  //check if probability of event is set, and if removal will happen
333  if(_Xtion_rate) if( RAND::Uniform() > _Xtion_rate->get(0, patch->getID()) ) return;
334 
335  if(patch->size(AGE) != 0) {
336 
337  remove_size = get_harvest_size(AGE, patch);
338 
339  for(unsigned int i = 0; i < remove_size; ++i) {
340 
341  sex = (sex_t)RAND::RandBool();
342 
343  if(patch->size(sex, AGE) != 0)
344  _popPtr->recycle( patch->remove( sex, AGE, (unsigned int)RAND::Uniform(patch->size(sex, AGE)) ) );
345  else //we already know here that the patch is not empty
346  _popPtr->recycle( patch->remove( (sex_t)!sex, AGE, (unsigned int)RAND::Uniform(patch->size( (sex_t)!sex, AGE) ) ) );
347 
348  if(patch->size(AGE) == 0) break;
349  }
350  // cout<<"--removed "<<remove_size<<" individuals in age class "<<AGE<<", patch "<< patch->getID()<<" size = "<<patch->size(AGE)<<endl;
351  }
352 }
void recycle(Individual *ind)
Put an individual in the recycling pool.
Definition: indfactory.h:61
unsigned int get_harvest_size(age_idx AGE, Patch *patch)
Definition: LCEmisc.cc:356
Individual * remove(sex_t SEX, age_idx AGE, unsigned int at)
Removes the individual sitting at the given index in the appropriate container.
Definition: metapop.h:587
unsigned int size(age_t AGE)
Returns the size of the container of the appropriate age class(es) for both sexes.
Definition: metapop.h:497
unsigned int getID()
Definition: metapop.h:480
static double Uniform()
Generates a random number from [0.0, 1.0[ uniformly distributed.
Definition: Uniform.h:126
static bool RandBool()
Returns a random boolean.
Definition: Uniform.h:164
double get(unsigned int i, unsigned int j) const
Accessor to element at row i and column j.
Definition: tmatrix.h:192
sex_t
Sex types, males are always 0 and females 1!!
Definition: types.h:35

References LifeCycleEvent::_popPtr, _Xtion_rate, TMatrix::get(), get_harvest_size(), Patch::getID(), RAND::RandBool(), IndFactory::recycle(), Patch::remove(), Patch::size(), and RAND::Uniform().

Referenced by execute().

+ Here is the caller graph for this function:

◆ execute()

void LCE_Patch_Extinction::execute ( )
virtual

Implements LifeCycleEvent.

284 {
285 #ifdef _DEBUG_
286  message("LCE_Patch_Extinction::execute ");
287  unsigned int cnt = 0;
288 #endif
289  Patch *patch;
290  for(unsigned int i = 0; i < _popPtr->getPatchNbr(); i++) {
291 
292  patch = _popPtr->getPatch(i);
293 
294  if(_by_size || _by_proportion) {
295  do_remove(OFFSx, patch);
296  do_remove(ADLTx, patch);
297  } else if(_Xtion_rate)
298  if( RAND::Uniform() < _Xtion_rate->get(0, i) )
299  do_flush(patch);
300 
301  if(_extinction_threshold != -1) {
302  if( _extinction_threshold < 1 && (double)patch->size(ALL)/patch->get_K() < _extinction_threshold )
303  do_flush(patch);
304  else if( patch->size(ALL) < _extinction_threshold )
305  do_flush(patch);
306  }
307 #ifdef _DEBUG_
308  cnt += (patch->get_isExtinct());
309 #endif
310  }
311 #ifdef _DEBUG_
312  message("(%i extinct patches)\n",cnt);
313 #endif
314 }
void do_remove(age_idx AGE, Patch *patch)
Definition: LCEmisc.cc:327
void do_flush(Patch *patch)
Definition: LCEmisc.cc:318
unsigned int getPatchNbr()
Definition: metapop.h:275
Patch * getPatch(unsigned int i)
Patch accessor, return the ith+1 patch in the metapop.
Definition: metapop.h:256
Second class in the metapopulation design structure, between the Metapop and Individual classes.
Definition: metapop.h:431
unsigned int get_K()
Definition: metapop.h:481
bool get_isExtinct()
Definition: metapop.h:485
void message(const char *message,...)
Definition: output.cc:39
#define ALL
All ages age class flag.
Definition: types.h:55
@ OFFSx
Definition: types.h:41
@ ADLTx
Definition: types.h:41

References _by_proportion, _by_size, _extinction_threshold, LifeCycleEvent::_popPtr, _Xtion_rate, ADLTx, ALL, do_flush(), do_remove(), TMatrix::get(), Patch::get_isExtinct(), Patch::get_K(), Metapop::getPatch(), Metapop::getPatchNbr(), message(), OFFSx, Patch::size(), and RAND::Uniform().

◆ get_harvest_size()

unsigned int LCE_Patch_Extinction::get_harvest_size ( age_idx  AGE,
Patch patch 
)
357 {
358 
359  if( _by_size ) {
360 
362  return (this->*_rand_size_fct) (_harvest_size->get(0, patch->getID()));
363 
364  else return (unsigned int)_harvest_size->get(0, patch->getID());
365 
366  } else if( _by_proportion ) {
367 
368  return (unsigned int)(_harvest_proportion->get(0, patch->getID()) * patch->size(AGE));
369 
370  }
371 
372  return 0;
373 }

References _by_proportion, _by_size, _harvest_proportion, _harvest_size, _harvest_size_varies, _rand_size_fct, TMatrix::get(), Patch::getID(), and Patch::size().

Referenced by do_remove().

+ Here is the caller graph for this function:

◆ loadFileServices()

virtual void LCE_Patch_Extinction::loadFileServices ( FileServices loader)
inlinevirtual

Implements SimComponent.

150 {}

◆ loadStatServices()

virtual void LCE_Patch_Extinction::loadStatServices ( StatServices loader)
inlinevirtual

Implements SimComponent.

151 {}

◆ rand_exp()

unsigned int LCE_Patch_Extinction::rand_exp ( double  mean)
inlineprivate
126 {return (unsigned int)(-1.0 * mean * log(1.0-RAND::Uniform()));}

References RAND::Uniform().

Referenced by setParameters().

+ Here is the caller graph for this function:

◆ rand_gaussian()

unsigned int LCE_Patch_Extinction::rand_gaussian ( double  mean)
inlineprivate
125 {return (unsigned int)abs(mean + RAND::Gaussian(_harvest_dist_stdev));}
static double Gaussian(double sigma)
Definition: Uniform.h:261

References _harvest_dist_stdev, and RAND::Gaussian().

Referenced by setParameters().

+ Here is the caller graph for this function:

◆ rand_lognormal()

unsigned int LCE_Patch_Extinction::rand_lognormal ( double  mean)
inlineprivate
127 {return (unsigned int)RAND::LogNormal(mean, _harvest_dist_stdev);}
static double LogNormal(double zeta, double sigma)
Definition: Uniform.h:357

References _harvest_dist_stdev, and RAND::LogNormal().

Referenced by setParameters().

+ Here is the caller graph for this function:

◆ rand_poisson()

unsigned int LCE_Patch_Extinction::rand_poisson ( double  mean)
inlineprivate
124 {return (unsigned int)RAND::Poisson(mean);}
static double Poisson(double mean)
From the Numerical Recieps.
Definition: Uniform.h:219

References RAND::Poisson().

Referenced by setParameters().

+ Here is the caller graph for this function:

◆ rand_uniform()

unsigned int LCE_Patch_Extinction::rand_uniform ( double  max)
inlineprivate
123 {return RAND::Uniform((unsigned int)max);}

References RAND::Uniform().

Referenced by setParameters().

+ Here is the caller graph for this function:

◆ removeAgeClass()

virtual age_t LCE_Patch_Extinction::removeAgeClass ( )
inlinevirtual

Implements LifeCycleEvent.

153 {return 0;}

◆ requiredAgeClass()

virtual age_t LCE_Patch_Extinction::requiredAgeClass ( )
inlinevirtual

Implements LifeCycleEvent.

155 {return 0;}

◆ resetParameterFromSource()

virtual bool LCE_Patch_Extinction::resetParameterFromSource ( std::string  param,
SimComponent cmpt 
)
inlinevirtual

Implements SimComponent.

152 {return false;}

◆ set_matrix_param()

bool LCE_Patch_Extinction::set_matrix_param ( TMatrix mat,
string  name 
)
255 {
256  double value;
257  Param* param = get_parameter(name);
258 
259  if(param->isMatrix()) {
260 
261  param->getMatrix(mat);
262 
263  if(mat->getNbRows() > 1) {
264  error("The \"%s\" matrix must be a one-dimensional array.\n", name.c_str());
265  return false;
266  }
267 
268  if(mat->getNbCols() != _popPtr->getPatchNbr()) {
269  error("The length of the \"%s\" array must be equal to the number of patches.\n", name.c_str());
270  return false;
271  }
272 
273  } else {
274  value = param->getValue();
275  mat->reset(1, _popPtr->getPatchNbr());
276  mat->assign(value);
277  }
278  return true;
279 }
This structure stores one parameter, its definition and its string argument.
Definition: param.h:53
double getValue()
Returns the argument value according to its type.
Definition: param.cc:367
bool isMatrix()
Checks if the argument is of matrix type.
Definition: param.h:171
void getMatrix(TMatrix *mat)
Sets the matrix from the argument string if the parameter is set and of matrix type.
Definition: param.cc:377
virtual Param * get_parameter(std::string name)
Param getter.
Definition: simcomponent.h:138
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:160
unsigned int getNbRows() const
Gives the number of rows.
Definition: tmatrix.h:211
unsigned int getNbCols() const
Gives the number of columns.
Definition: tmatrix.h:214
void assign(double val)
Assigns a value to all element of the matrix.
Definition: tmatrix.h:154
int error(const char *str,...)
Definition: output.cc:78

References LifeCycleEvent::_popPtr, TMatrix::assign(), error(), SimComponent::get_parameter(), Param::getMatrix(), TMatrix::getNbCols(), TMatrix::getNbRows(), Metapop::getPatchNbr(), Param::getValue(), Param::isMatrix(), and TMatrix::reset().

Referenced by setParameters().

+ Here is the caller graph for this function:

◆ setParameters()

bool LCE_Patch_Extinction::setParameters ( )
virtual

Implements SimComponent.

150 {
151 
152  if(get_parameter("extinction_rate")->isSet()) {
153 
154  if(!_Xtion_rate) _Xtion_rate = new TMatrix();
155 
156  if(!set_matrix_param(_Xtion_rate, "extinction_rate")) return false;
157 
158  } else {
159  if(_Xtion_rate) delete _Xtion_rate;
160  _Xtion_rate = 0;
161  }
162 
163  if(get_parameter("extinction_size")->isSet()) {
164 
165  if(!_harvest_size) _harvest_size = new TMatrix();
166 
167  if(!set_matrix_param(_harvest_size, "extinction_size")) return false;
168 
169  _by_size = true;
170 
171  } else {
172  if(_harvest_size) delete _harvest_size;
173  _harvest_size = 0;
174  _by_size = false;
175  }
176 
177  if(get_parameter("extinction_proportion")->isSet()) {
179 
180  if(!set_matrix_param(_harvest_proportion, "extinction_proportion")) return false;
181 
182  _by_proportion = true;
183 
184  } else {
187  _by_proportion = false;
188  }
189 
190  _extinction_threshold = get_parameter_value("extinction_threshold");
191 
192  if( !_Xtion_rate && !_by_size && !_by_proportion) {
193  error("Please give one of the following parameter: \"extinction_rate\", \"extinction_size\", or \"extinction_proportion\".\n");
194  return false;
195  }
196  else if(_by_size && _by_proportion) {
197  warning("Both \"extinction_size\" and \"extinction_proportion\" are set, using sizes only.\n");
198  _by_proportion = false;
199  }
200 
201  if(get_parameter("extinction_size_distribution")->isSet()) {
202 
203  if(!_by_size) {
204  error("\"extinction_size_distribution\" is set but the \"extinction_size\" parameter is not!\n");
205  return false;
206  }
207 
208  _harvest_distribution = _paramSet->getArg("extinction_size_distribution");
209  _harvest_size_varies = true;
210  _harvest_dist_stdev = get_parameter_value("extinction_size_dist_stdev");
211 
212  if(_harvest_distribution.compare("poisson") == 0)
213 
215 
216  else if(_harvest_distribution.compare("uniform") == 0)
217 
219 
220  else if(_harvest_distribution.compare("normal") == 0) {
221 
223 
224  if(_harvest_dist_stdev == -1) {
225  error("Standard deviation of the normal distribution for the harvesting size distribution is missing!\n");
226  return false;
227  }
228 
229  } else if(_harvest_distribution.compare("lognormal") == 0) {
230 
232 
233  if(_harvest_dist_stdev == -1) {
234  error("Standard deviation of the lognormal distribution for the harvesting size distribution is missing!\n");
235  return false;
236  }
237 
238  } else if(_harvest_distribution.compare("exponential") == 0)
239 
241 
242  else {
243  error("Distribution \"%s\" is not a valid option for \"harvest_size_distribution\"\n",
244  _harvest_distribution.c_str());
245  return false;
246  }
247 
248  }
249  return true;
250 }
unsigned int rand_exp(double mean)
Definition: LCEmisc.h:126
unsigned int rand_lognormal(double mean)
Definition: LCEmisc.h:127
unsigned int rand_uniform(double max)
Definition: LCEmisc.h:123
string _harvest_distribution
Name of the distribution to use.
Definition: LCEmisc.h:111
unsigned int rand_poisson(double mean)
Definition: LCEmisc.h:124
bool set_matrix_param(TMatrix *mat, string name)
Definition: LCEmisc.cc:254
unsigned int rand_gaussian(double mean)
Definition: LCEmisc.h:125
string getArg(string name)
Accessor to the parameters argument string.
Definition: param.h:299
virtual double get_parameter_value(std::string name)
Param value getter.
Definition: simcomponent.h:142
ParamSet * _paramSet
The parameters container.
Definition: simcomponent.h:47
A class to handle matrix in params, coerces matrix into a vector of same total size.
Definition: tmatrix.h:49
void warning(const char *str,...)
Definition: output.cc:57

References _by_proportion, _by_size, _extinction_threshold, _harvest_dist_stdev, _harvest_distribution, _harvest_proportion, _harvest_size, _harvest_size_varies, SimComponent::_paramSet, _rand_size_fct, _Xtion_rate, error(), SimComponent::get_parameter(), SimComponent::get_parameter_value(), ParamSet::getArg(), rand_exp(), rand_gaussian(), rand_lognormal(), rand_poisson(), rand_uniform(), set_matrix_param(), and warning().

Referenced by LCE_Patch_Extinction().

+ Here is the caller graph for this function:

Member Data Documentation

◆ _by_proportion

bool LCE_Patch_Extinction::_by_proportion
private

◆ _by_size

bool LCE_Patch_Extinction::_by_size
private

◆ _extinction_threshold

double LCE_Patch_Extinction::_extinction_threshold
private

Patch extinction threshold in % of total size of the patch.

Referenced by execute(), and setParameters().

◆ _harvest_dist_shape

double LCE_Patch_Extinction::_harvest_dist_shape
private

shape variable to use with the gamma dist.

◆ _harvest_dist_stdev

double LCE_Patch_Extinction::_harvest_dist_stdev
private

Standard deviate to use with the Gaussian dist.

Referenced by rand_gaussian(), rand_lognormal(), and setParameters().

◆ _harvest_distribution

string LCE_Patch_Extinction::_harvest_distribution
private

Name of the distribution to use.

Referenced by setParameters().

◆ _harvest_proportion

TMatrix* LCE_Patch_Extinction::_harvest_proportion
private

Proportion of the patch size to remove.

Referenced by get_harvest_size(), setParameters(), and ~LCE_Patch_Extinction().

◆ _harvest_size

TMatrix* LCE_Patch_Extinction::_harvest_size
private

Number of individual to remove per patch.

Referenced by get_harvest_size(), setParameters(), and ~LCE_Patch_Extinction().

◆ _harvest_size_varies

bool LCE_Patch_Extinction::_harvest_size_varies
private

Flags.

Referenced by get_harvest_size(), and setParameters().

◆ _rand_size_fct

unsigned int(LCE_Patch_Extinction:: * LCE_Patch_Extinction::_rand_size_fct) (double)
private

Referenced by get_harvest_size(), and setParameters().

◆ _Xtion_rate

TMatrix* LCE_Patch_Extinction::_Xtion_rate
private

Patch extinction probability.

Referenced by do_remove(), execute(), setParameters(), and ~LCE_Patch_Extinction().


The documentation for this class was generated from the following files:

Generated for Nemo v2.4.0 by  doxygen 1.9.1 -- Nemo is hosted on  Download Nemo

Locations of visitors to this page
Catalogued on GSR