iLand
bitecolonization.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 BITECOLONIZATION_H
20#define BITECOLONIZATION_H
21
22#include "biteitem.h"
23#include "bitecellscript.h"
24
25namespace BITE {
26
27class BiteCell; // forward
28
30{
31 Q_OBJECT
32 //Q_PROPERTY(ScriptGrid* grid READ grid)
33public:
34
36 Q_INVOKABLE BiteColonization(QJSValue obj);
37 void setup(BiteAgent *parent_agent);
38 void afterSetup();
39
40 void runCell(BiteCell *cell, ABE::FMTreeList *treelist, ABE::FMSaplingList *saplist);
41protected:
42 QStringList allowedProperties();
43
44private:
45 Constraints mCellConstraints;
46 Constraints mTreeConstraints;
47 Constraints mSaplingConstraints;
48 DynamicExpression mDispersalFilter;
49 Events mEvents;
50 DynamicExpression mInitialAgentBiomass;
51 int iAgentBiomass;
52
53};
54
55} // end namespace
56#endif // BITECOLONIZATION_H
Definition: fmsaplinglist.h:12
The FMTreeList class implements low-level functionality for selecting and harvesting of trees.
Definition: fmtreelist.h:34
Definition: biteagent.h:71
Definition: bitecell.h:38
Definition: bitecolonization.h:30
void setup(BiteAgent *parent_agent)
Definition: bitecolonization.cpp:36
BiteColonization()
Definition: bitecolonization.cpp:26
void runCell(BiteCell *cell, ABE::FMTreeList *treelist, ABE::FMSaplingList *saplist)
Definition: bitecolonization.cpp:99
QStringList allowedProperties()
Definition: bitecolonization.cpp:171
void afterSetup()
called once after the full agent is set up
Definition: bitecolonization.cpp:92
Definition: biteitem.h:37
Definition: bitecellscript.h:149
Definition: bitecellscript.h:88
Definition: biteagent.cpp:32
DynamicExpression encapsulates an "expression" that can be either a iLand expression,...
Definition: bitecellscript.h:111