20#ifndef BARKBEETLEPLUGIN_H
21#define BARKBEETLEPLUGIN_H
33 #if QT_VERSION >= 0x050000
34 Q_PLUGIN_METADATA(IID
"at.ac.boku.iland.barkbeetleplugin" FILE
"barkbeetleplugin.json")
The BarkBeetleModule class is the main class of the bark beetle module.
Definition: barkbeetlemodule.h:135
void run(int iteration=0)
main function to execute the bark beetle module (iteration can be non-0 when called from Javascript)
Definition: barkbeetlemodule.cpp:222
void setup()
general setup
Definition: barkbeetlemodule.cpp:69
void yearBegin()
called automatically
Definition: barkbeetlemodule.cpp:362
void treeDeath(const Tree *tree)
function that is called whenever a tree dies somewhere in iLand
Definition: barkbeetlemodule.cpp:265
Definition: barkbeetleplugin.h:31
BarkBeetlePlugin()
Definition: barkbeetleplugin.cpp:52
BarkBeetleModule * barkBeetleModule()
Definition: barkbeetleplugin.h:62
void setup()
setup after the main iLand model frame is created
Definition: barkbeetleplugin.cpp:61
void setupResourceUnit(const ResourceUnit *ru)
setup resource unit specific parameters
Definition: barkbeetleplugin.h:50
QString name()
a unique name of the plugin
Definition: barkbeetleplugin.cpp:36
void setupScripting(QJSEngine *engine)
setup additional javascript related features
Definition: barkbeetleplugin.cpp:75
void treeDeath(const Tree *tree, const int removal_type)
function is called whenever a tree dies in iLand (in order to track storm damage)
Definition: barkbeetleplugin.h:55
QString description()
some additional description. This info is shown in the GUI and is printed to the log file.
Definition: barkbeetleplugin.cpp:46
void run()
main function that once a year (after growth)
Definition: barkbeetleplugin.h:59
QString version()
a version identification
Definition: barkbeetleplugin.cpp:41
void yearBegin()
function executes at the beginning of a year (e.g., cleanup)
Definition: barkbeetleplugin.h:58
Definition: plugin_interface.h:35
ResourceUnit is the spatial unit that encapsulates a forest stand and links to several environmental ...
Definition: resourceunit.h:49
Definition: plugin_interface.h:52
Definition: plugin_interface.h:80
A tree is the basic simulation entity of iLand and represents a single tree.
Definition: tree.h:44