20#ifndef BBGENERATIONS_H
21#define BBGENERATIONS_H
41 bool hasSisterBrood()
const {
return mNSisterBroods == mNFilialBroods && mNSisterBroods>0; }
51 BBGeneration(): start_day(-1), gen(0), is_sister_brood(false), value(0.) {}
52 BBGeneration(
int start,
bool is_sister,
int generation) { start_day=start; is_sister_brood=is_sister; value=0.; gen=generation; }
58 QVector<BBGeneration> mGenerations;
64 double mEffectiveBarkTemp[366];
BBGenerations calculates potential bark beetle generations based on climate data (including bark temp...
Definition: bbgenerations.h:28
int frostDaysLate() const
number of cold days (tmin < -15 degrees) in the second half of the year
Definition: bbgenerations.h:46
double calculateGenerations(const ResourceUnit *ru)
calculate the number of barbeetle generations for the given resource unit.
Definition: bbgenerations.cpp:37
bool hasSisterBrood() const
returns true, if the sister broods of the same generation were also developed (e.g.
Definition: bbgenerations.h:41
int sisterBroods() const
number of sister broods (reaching at least 60% of thermal development)
Definition: bbgenerations.h:35
int frostDaysEarly() const
number of cold days (tmin < -15 degrees) in the first half of the year
Definition: bbgenerations.h:44
BBGenerations()
Definition: bbgenerations.cpp:28
int filialBroods() const
number consecutive broods (reaching at least 60% of thermal development)
Definition: bbgenerations.h:37
ResourceUnit is the spatial unit that encapsulates a forest stand and links to several environmental ...
Definition: resourceunit.h:49