iLand
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
BITE::BiteItem Class Reference

#include <biteitem.h>

Inheritance diagram for BITE::BiteItem:
BITE::BiteBiomass BITE::BiteColonization BITE::BiteDispersal BITE::BiteDistribution BITE::BiteImpact BITE::BiteLifeCycle BITE::BiteOutputItem

Public Slots

virtual void afterSetup ()
 called once after the full agent is set up More...
 
virtual void beforeRun ()
 for initializations, called every year More...
 
virtual void run ()
 
virtual void runCell (BiteCell *cell, ABE::FMTreeList *treelist, ABE::FMSaplingList *saplist)
 

Public Member Functions

 BiteItem (QObject *parent=nullptr)
 
Q_INVOKABLE BiteItem (QJSValue obj)
 
BiteAgentagent () const
 
virtual void setup (BiteAgent *agent)
 
virtual QString info ()
 
bool runCells () const
 true if the item runs cell by cell More...
 
QString name () const
 
void setName (QString name)
 
QString description () const
 
virtual void notify (BiteCell *cell, BiteCell::ENotification what)
 

Protected Member Functions

int cellSize () const
 
virtual QStringList allowedProperties ()
 
void checkProperties (QJSValue obj)
 
QJSValue thisJSObj ()
 
void setRunCells (bool rc)
 
bool verbose ()
 

Protected Attributes

QJSValue mObj
 the JS value used to setup the item More...
 
QJSValue mThis
 the JS representation of the item More...
 

Properties

QString name
 
BiteAgentagent
 

Constructor & Destructor Documentation

◆ BiteItem() [1/2]

BITE::BiteItem::BiteItem ( QObject *  parent = nullptr)
explicit

◆ BiteItem() [2/2]

BITE::BiteItem::BiteItem ( QJSValue  obj)

Member Function Documentation

◆ afterSetup

void BITE::BiteItem::afterSetup ( )
virtualslot

called once after the full agent is set up

Reimplemented in BITE::BiteColonization.

◆ agent()

BiteAgent * BITE::BiteItem::agent ( ) const
inline

◆ allowedProperties()

QStringList BITE::BiteItem::allowedProperties ( )
protectedvirtual

◆ beforeRun

void BITE::BiteItem::beforeRun ( )
virtualslot

for initializations, called every year

◆ cellSize()

int BITE::BiteItem::cellSize ( ) const
protected

◆ checkProperties()

void BITE::BiteItem::checkProperties ( QJSValue  obj)
protected

◆ description()

QString BITE::BiteItem::description ( ) const
inline

◆ info()

QString BITE::BiteItem::info ( )
virtual

◆ name()

QString BITE::BiteItem::name ( ) const
inline

◆ notify()

void BITE::BiteItem::notify ( BiteCell cell,
BiteCell::ENotification  what 
)
virtual

Reimplemented in BITE::BiteBiomass, and BITE::BiteLifeCycle.

◆ run

void BITE::BiteItem::run ( )
virtualslot

Reimplemented in BITE::BiteLifeCycle.

◆ runCell

void BITE::BiteItem::runCell ( BiteCell cell,
ABE::FMTreeList treelist,
ABE::FMSaplingList saplist 
)
virtualslot

Reimplemented in BITE::BiteColonization.

◆ runCells()

bool BITE::BiteItem::runCells ( ) const
inline

true if the item runs cell by cell

◆ setName()

void BITE::BiteItem::setName ( QString  name)
inline

◆ setRunCells()

void BITE::BiteItem::setRunCells ( bool  rc)
inlineprotected

◆ setup()

void BITE::BiteItem::setup ( BiteAgent agent)
virtual

◆ thisJSObj()

QJSValue BITE::BiteItem::thisJSObj ( )
inlineprotected

◆ verbose()

bool BITE::BiteItem::verbose ( )
protected

Member Data Documentation

◆ mObj

QJSValue BITE::BiteItem::mObj
protected

the JS value used to setup the item

◆ mThis

QJSValue BITE::BiteItem::mThis
protected

the JS representation of the item

Property Documentation

◆ agent

BiteAgent* BITE::BiteItem::agent
read

◆ name

QString BITE::BiteItem::name
readwrite

The documentation for this class was generated from the following files: