Nemo  2.4.2
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 ( )
130  : LifeCycleEvent("extinction",""), _Xtion_rate(0),
133 {
136  add_parameter("extinction_rate", DBL, 0, 1, 0, 1, updater);
137  add_parameter("extinction_threshold", DBL, 0, 1, 0, 1, updater);
138  add_parameter("extinction_size", INT, 0, 0, 0, 0, updater);
139  add_parameter("extinction_proportion", DBL, 0, 1, 0, 1, updater);
140  add_parameter("extinction_size_distribution", STR, 0, 0, 0, 0, updater);
141  add_parameter("extinction_size_dist_stdev", DBL, 0, 0, 0, 0, updater);
142  add_parameter("extinction_size_dist_shape", DBL, 0, 0, 0, 0, updater);
143 }
TMatrix * _harvest_proportion
Proportion of the patch size to remove.
Definition: LCEmisc.h:108
unsigned int(LCE_Patch_Extinction::* _rand_size_fct)(double)
Definition: LCEmisc.h:120
bool _by_proportion
Definition: LCEmisc.h:112
double _harvest_dist_stdev
Standard deviate to use with the Gaussian dist.
Definition: LCEmisc.h:114
virtual bool setParameters()
Definition: LCEmisc.cc:148
double _extinction_threshold
Patch extinction threshold in % of total size of the patch.
Definition: LCEmisc.h:118
bool _harvest_size_varies
Flags.
Definition: LCEmisc.h:112
bool _by_size
Definition: LCEmisc.h:112
TMatrix * _harvest_size
Number of individual to remove per patch.
Definition: LCEmisc.h:106
TMatrix * _Xtion_rate
Patch extinction probability.
Definition: LCEmisc.h:104
LifeCycleEvent(const char *name, const char *trait_link)
Cstor.
Definition: lifecycleevent.h:96
Implementation of the ParamUpdaterBase interface.
Definition: param.h:371
virtual void add_parameter(Param *param)
Interface to add a parameter to the set.
Definition: simcomponent.h:110
@ DBL
Definition: types.h:76
@ STR
Definition: types.h:76
@ INT
Definition: types.h:76

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
132  {
133  if(_Xtion_rate) delete _Xtion_rate;
134  if(_harvest_size) delete _harvest_size;
136  }

References _harvest_proportion, _harvest_size, and _Xtion_rate.

Member Function Documentation

◆ addAgeClass()

virtual age_t LCE_Patch_Extinction::addAgeClass ( )
inlinevirtual

Implements LifeCycleEvent.

153 {return 0;}

◆ clone()

virtual LifeCycleEvent* LCE_Patch_Extinction::clone ( )
inlinevirtual

Implements LifeCycleEvent.

146 {return new LCE_Patch_Extinction();}
LCE_Patch_Extinction()
Definition: LCEmisc.cc:130

References LCE_Patch_Extinction().

◆ do_flush()

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

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

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.

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

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 
)
356 {
357 
358  if( _by_size ) {
359 
361  return (this->*_rand_size_fct) (_harvest_size->get(0, patch->getID()));
362 
363  else return (unsigned int)_harvest_size->get(0, patch->getID());
364 
365  } else if( _by_proportion ) {
366 
367  return (unsigned int)(_harvest_proportion->get(0, patch->getID()) * patch->size(AGE));
368 
369  }
370 
371  return 0;
372 }

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.

149 {}

◆ loadStatServices()

virtual void LCE_Patch_Extinction::loadStatServices ( StatServices loader)
inlinevirtual

Implements SimComponent.

150 {}

◆ rand_exp()

unsigned int LCE_Patch_Extinction::rand_exp ( double  mean)
inlineprivate
125 {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
124 {return (unsigned int)abs(mean + RAND::Gaussian(_harvest_dist_stdev));}
static double Gaussian(double sigma)
Definition: Uniform.h:271

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
126 {return (unsigned int)RAND::LogNormal(mean, _harvest_dist_stdev);}
static double LogNormal(double zeta, double sigma)
Definition: Uniform.h:367

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
123 {return (unsigned int)RAND::Poisson(mean);}
static double Poisson(double mean)
From the Numerical Recieps.
Definition: Uniform.h:229

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
122 {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.

152 {return 0;}

◆ requiredAgeClass()

virtual age_t LCE_Patch_Extinction::requiredAgeClass ( )
inlinevirtual

Implements LifeCycleEvent.

154 {return 0;}

◆ resetParameterFromSource()

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

Implements SimComponent.

151 {return false;}

◆ set_matrix_param()

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

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.

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

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.2 by  doxygen 1.9.1

Catalogued on GSR