42 explicit BiteItem(QObject *parent =
nullptr);
48 virtual QString
info();
53 QString
name()
const {
return mName; }
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
ENotification
Definition: bitecell.h:71
Definition: biteitem.h:37
QString description() const
Definition: biteitem.h:56
void setName(QString name)
Definition: biteitem.h:54
QJSValue thisJSObj()
Definition: biteitem.h:74
bool verbose()
Definition: biteitem.cpp:113
void checkProperties(QJSValue obj)
Definition: biteitem.cpp:99
virtual QStringList allowedProperties()
Definition: biteitem.cpp:92
virtual void beforeRun()
for initializations, called every year
Definition: biteitem.cpp:68
bool runCells() const
true if the item runs cell by cell
Definition: biteitem.h:51
BiteItem(QObject *parent=nullptr)
Definition: biteitem.cpp:24
virtual QString info()
Definition: biteitem.cpp:52
virtual void runCell(BiteCell *cell, ABE::FMTreeList *treelist, ABE::FMSaplingList *saplist)
Definition: biteitem.cpp:78
virtual void run()
Definition: biteitem.cpp:73
QJSValue mObj
the JS value used to setup the item
Definition: biteitem.h:75
QJSValue mThis
the JS representation of the item
Definition: biteitem.h:76
virtual void setup(BiteAgent *agent)
Definition: biteitem.cpp:35
virtual void notify(BiteCell *cell, BiteCell::ENotification what)
Definition: biteitem.cpp:57
BiteAgent * agent() const
Definition: biteitem.h:44
QString name() const
Definition: biteitem.h:53
virtual void afterSetup()
called once after the full agent is set up
Definition: biteitem.cpp:63
BiteAgent * agent
Definition: biteitem.h:40
void setRunCells(bool rc)
Definition: biteitem.h:77
int cellSize() const
Definition: biteitem.cpp:86
QString name
Definition: biteitem.h:39
Definition: biteagent.cpp:32