iLand
fomewrapper.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 FOMEWRAPPER_H
20#define FOMEWRAPPER_H
21
22#include "expressionwrapper.h"
23
24namespace ABE {
25class FMStand;
26
27
33{
34public:
35 FOMEWrapper(): mStand(0) {}
36 FOMEWrapper(const FMStand *stand): mStand(stand) {}
37 virtual const QStringList getVariablesList();
38 virtual double value(const int variableIndex);
39
40private:
41 void buildVarList();
42 double valueActivity(const int variableIndex);
43 double valueStand(const int variableIndex);
44 double valueSite(const int variableIndex);
45 const FMStand *mStand;
46};
47
48} // namespace
49
50#endif // FOMEWRAPPER_H
FMStand encapsulates a forest stand for the forest management engine.
Definition: fmstand.h:49
FOMEWrapper provides the context for the Forest Management Engine This wrapper blends activties,...
Definition: fomewrapper.h:33
FOMEWrapper()
Definition: fomewrapper.h:35
virtual const QStringList getVariablesList()
Definition: fomewrapper.cpp:59
virtual double value(const int variableIndex)
Definition: fomewrapper.cpp:66
FOMEWrapper(const FMStand *stand)
Definition: fomewrapper.h:36
ExpressionWrapper is the base class for exposing C++ elements to the built-in Expression engine.
Definition: expressionwrapper.h:27
virtual int variableIndex(const QString &variableName)
Definition: expressionwrapper.cpp:66
Definition: abegrid.h:22