iLand
biteclimate.h
Go to the documentation of this file.
1/********************************************************************************************
2** iLand - an individual based forest landscape and disturbance model
3** http://iland-model.org
4** Copyright (C) 2009- Werner Rammer, Rupert Seidl
5**
6** This program is free software: you can redistribute it and/or modify
7** it under the terms of the GNU General Public License as published by
8** the Free Software Foundation, either version 3 of the License, or
9** (at your option) any later version.
10**
11** This program is distributed in the hope that it will be useful,
12** but WITHOUT ANY WARRANTY; without even the implied warranty of
13** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14** GNU General Public License for more details.
15**
16** You should have received a copy of the GNU General Public License
17** along with this program. If not, see <http://www.gnu.org/licenses/>.
18********************************************************************************************/
19#ifndef BITECLIMATE_H
20#define BITECLIMATE_H
21
22#include <QJSValue>
23
24#include "bitewrapper.h"
25class ResourceUnit; // forward
26class Climate; // forward
27namespace BITE {
28
29
31{
32public:
34 void setup(QJSValue clim_vars, BITE::BiteWrapperCore &wrapper);
35
37 double value(int var_index, const ResourceUnit *ru) const;
38private:
39 double calculateGDD(const Climate *clim, double threshold_temp) const;
40 static QStringList mClimateVars;
41
42};
43
44} // namespace
45#endif // BITECLIMATE_H
Definition: biteclimate.h:31
BiteClimate()
Definition: biteclimate.cpp:37
double value(int var_index, const ResourceUnit *ru) const
retrieve the climate variable with the given index (raise an exception if invalid)
Definition: biteclimate.cpp:61
void setup(QJSValue clim_vars, BITE::BiteWrapperCore &wrapper)
Definition: biteclimate.cpp:42
Definition: bitewrapper.h:31
Climate handles climate input data and performs some basic related calculations on that data.
Definition: climate.h:66
ResourceUnit is the spatial unit that encapsulates a forest stand and links to several environmental ...
Definition: resourceunit.h:49
Definition: biteagent.cpp:32