iLand
|
The BarkBeetleModule class is the main class of the bark beetle module. More...
#include <barkbeetlemodule.h>
Public Member Functions | |
BarkBeetleModule () | |
~BarkBeetleModule () | |
void | setup () |
general setup More... | |
void | setup (const ResourceUnit *ru) |
setup for a specific resource unit More... | |
void | loadParameters (bool do_reset=true) |
load params from XML More... | |
void | clearGrids () |
reset the state of the internal grids (used for javascript based tests) More... | |
void | loadAllVegetation () |
scan the state of the vegetation of the full landscape More... | |
void | run (int iteration=0) |
main function to execute the bark beetle module (iteration can be non-0 when called from Javascript) More... | |
void | treeDeath (const Tree *tree) |
function that is called whenever a tree dies somewhere in iLand More... | |
void | yearBegin () |
called automatically More... | |
int | manualYearBegin () |
call from script (from script) More... | |
int | internalYear () const |
void | setSimulate (bool do_simulate) |
bool | simulate () const |
void | setEnabled (bool do_set_enabled) |
bool | enabled () const |
Static Public Member Functions | |
static double | cellsize () |
Friends | |
class | BarkBeetleScript |
class | BarkBeetleOut |
The BarkBeetleModule class is the main class of the bark beetle module.
BarkBeetleModule is the main class for the bark beetle module.
The module simulates the spruce bark beetle (Ips typographus) spatially explicit on the landscape. The number of possible bark beetle generations is calculated based on climate data (BBGenerations)
It calculates the development of generations, the spread and attack of beetles. It operates on a 10m grid.
BarkBeetleModule::BarkBeetleModule | ( | ) |
BarkBeetleModule::~BarkBeetleModule | ( | ) |
|
inlinestatic |
void BarkBeetleModule::clearGrids | ( | ) |
reset the state of the internal grids (used for javascript based tests)
|
inline |
|
inline |
void BarkBeetleModule::loadAllVegetation | ( | ) |
scan the state of the vegetation of the full landscape
void BarkBeetleModule::loadParameters | ( | bool | do_reset = true | ) |
load params from XML
|
inline |
call from script (from script)
void BarkBeetleModule::run | ( | int | iteration = 0 | ) |
main function to execute the bark beetle module (iteration can be non-0 when called from Javascript)
|
inline |
|
inline |
void BarkBeetleModule::setup | ( | ) |
general setup
void BarkBeetleModule::setup | ( | const ResourceUnit * | ru | ) |
setup for a specific resource unit
|
inline |
void BarkBeetleModule::treeDeath | ( | const Tree * | tree | ) |
function that is called whenever a tree dies somewhere in iLand
void BarkBeetleModule::yearBegin | ( | ) |
called automatically
|
friend |
|
friend |