40 BiteCell() : mRU(nullptr), mIsActive(false), mIsSpreading(false), mIndex(-1), mYearsLiving(0), mCumYearsLiving(0), mTreesLoaded(false), mSaplingsLoaded(false), mArea(0.f) {}
43 int index()
const {
return mIndex;}
47 bool isValid()
const {
return mRU!=
nullptr; }
50 void setActive(
bool activate) { mIsActive = activate; }
77 void largeCellSetup(QPointF pos);
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
void setSaplingsLoaded(bool loaded)
Definition: bitecell.h:56
void setActive(bool activate)
Definition: bitecell.h:50
BiteCell()
Definition: bitecell.h:40
BiteAgent * agent() const
Definition: bitecell.h:44
void finalize()
Definition: bitecell.cpp:87
ENotification
Definition: bitecell.h:71
@ CellColonized
Definition: bitecell.h:71
@ CellDied
Definition: bitecell.h:71
@ CellImpacted
Definition: bitecell.h:71
@ CellSpread
Definition: bitecell.h:71
int yearLastSpread() const
Definition: bitecell.h:63
bool areSaplingsLoaded() const
Definition: bitecell.h:60
int loadSaplings(ABE::FMSaplingList *saplinglist)
Definition: bitecell.cpp:128
void notify(ENotification what)
Definition: bitecell.cpp:99
int index() const
index within the agent grid
Definition: bitecell.h:43
void setTreesLoaded(bool loaded)
Definition: bitecell.h:55
int yearsLiving() const
Definition: bitecell.h:62
void checkSaplingsLoaded(ABE::FMSaplingList *saplist)
Definition: bitecell.cpp:63
double climateVar(int var_index) const
Definition: bitecell.cpp:71
bool isActive() const
Definition: bitecell.h:49
void checkTreesLoaded(ABE::FMTreeList *treelist)
Definition: bitecell.cpp:54
bool areTreesLoaded() const
Definition: bitecell.h:59
int cumYearsLiving() const
Definition: bitecell.h:64
bool isValid() const
Definition: bitecell.h:47
void setSpreading(bool activate)
Definition: bitecell.h:53
bool isSpreading() const
Definition: bitecell.h:52
void die()
Definition: bitecell.cpp:79
void setup(int cellidx, QPointF pos, BiteAgent *agent)
Definition: bitecell.cpp:33
QString info()
Definition: bitecell.cpp:49
int loadTrees(ABE::FMTreeList *treelist)
Definition: bitecell.cpp:110
ResourceUnit is the spatial unit that encapsulates a forest stand and links to several environmental ...
Definition: resourceunit.h:49
A tree is the basic simulation entity of iLand and represents a single tree.
Definition: tree.h:44
Definition: biteagent.cpp:32