iLand
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
BarkBeetleCell Class Reference

The BarkBeetleCell is the basic unit (10m pixels) of the bark beetle module. More...

#include <barkbeetlemodule.h>

Public Types

enum  DeadTrees { NoDeadTrees =0 , StormDamage =10 , SinkInVicinity =5 , BeetleTrapTree =8 }
 

Public Member Functions

 BarkBeetleCell ()
 
void clear ()
 
void reset ()
 full reset of the pixel More...
 
bool isHost () const
 
bool isPotentialHost () const
 
void setInfested (bool is_infested)
 sets the 'infested' state (true: the cell is newly infested, false: the cell stops being infested, e.g. by winter mortality) More...
 
void finishedSpread (int iteration)
 called after beetles spread out from the cell. The cell is marked as 'killed', and trees will be killed later (barkbeetleKill()). More...
 
bool isNeutralized () const
 return true if either storm damaged trees or trap trees are on the pixel or in the Moore neighborhood of the cell More...
 

Static Public Member Functions

static void resetCounters ()
 

Public Attributes

float backgroundInfestationProbability
 background prob. of infestation per 10m cell More...
 
bool infested
 
bool killed
 
float dbh
 
float tree_stress
 
float p_colonize
 
int n
 
int n_total
 
int killedYear
 
float outbreakYear
 
float packageOutbreakYear
 
int n_events
 
float sum_volume_killed
 
DeadTrees deadtrees
 

Static Public Attributes

static int total_infested = 0
 
static int max_iteration = 0
 

Detailed Description

The BarkBeetleCell is the basic unit (10m pixels) of the bark beetle module.

Cells can be infested (i.e. beetles attacked/killed all spruce trees within its perimeter), and new beetle (packages) spread from the cell to infest new cells.

Member Enumeration Documentation

◆ DeadTrees

Enumerator
NoDeadTrees 
StormDamage 
SinkInVicinity 
BeetleTrapTree 

Constructor & Destructor Documentation

◆ BarkBeetleCell()

BarkBeetleCell::BarkBeetleCell ( )
inline

Member Function Documentation

◆ clear()

void BarkBeetleCell::clear ( )
inline

◆ finishedSpread()

void BarkBeetleCell::finishedSpread ( int  iteration)
inline

called after beetles spread out from the cell. The cell is marked as 'killed', and trees will be killed later (barkbeetleKill()).

◆ isHost()

bool BarkBeetleCell::isHost ( ) const
inline

◆ isNeutralized()

bool BarkBeetleCell::isNeutralized ( ) const
inline

return true if either storm damaged trees or trap trees are on the pixel or in the Moore neighborhood of the cell

◆ isPotentialHost()

bool BarkBeetleCell::isPotentialHost ( ) const
inline

◆ reset()

void BarkBeetleCell::reset ( )
inline

full reset of the pixel

◆ resetCounters()

static void BarkBeetleCell::resetCounters ( )
inlinestatic

◆ setInfested()

void BarkBeetleCell::setInfested ( bool  is_infested)
inline

sets the 'infested' state (true: the cell is newly infested, false: the cell stops being infested, e.g. by winter mortality)

Member Data Documentation

◆ backgroundInfestationProbability

float BarkBeetleCell::backgroundInfestationProbability

background prob. of infestation per 10m cell

◆ dbh

float BarkBeetleCell::dbh

◆ deadtrees

DeadTrees BarkBeetleCell::deadtrees

◆ infested

bool BarkBeetleCell::infested

◆ killed

bool BarkBeetleCell::killed

◆ killedYear

int BarkBeetleCell::killedYear

◆ max_iteration

int BarkBeetleCell::max_iteration = 0
static

◆ n

int BarkBeetleCell::n

◆ n_events

int BarkBeetleCell::n_events

◆ n_total

int BarkBeetleCell::n_total

◆ outbreakYear

float BarkBeetleCell::outbreakYear

◆ p_colonize

float BarkBeetleCell::p_colonize

◆ packageOutbreakYear

float BarkBeetleCell::packageOutbreakYear

◆ sum_volume_killed

float BarkBeetleCell::sum_volume_killed

◆ total_infested

int BarkBeetleCell::total_infested = 0
static

◆ tree_stress

float BarkBeetleCell::tree_stress

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