36 QString
type()
const {
return "planting"; }
37 void setup(QJSValue value);
45 struct SPlantingItem {
46 SPlantingItem(): species(0), fraction(0.), height(0.05), age(1), clear(false), grouped(false), group_type(-1), n(0), offset(0), spacing(0) {}
58 bool setup(QJSValue value);
61 QVector<SPlantingItem> mItems;
64 static QStringList mAllowedProperties;
The ActPlanting class implements artificial regeneration (i.e., planting of trees).
Definition: actplanting.h:33
static void runSinglePlantingItem(FMStand *stand, QJSValue value)
Definition: actplanting.cpp:209
bool execute(FMStand *stand)
executes the action (usually defined in derived classes) using the context of 'stand'.
Definition: actplanting.cpp:174
void setup(QJSValue value)
setup of the activity (events, schedule, constraints). additional setup in derived classes.
Definition: actplanting.cpp:136
QString type() const
Definition: actplanting.h:36
ActPlanting(FMSTP *parent)
Definition: actplanting.cpp:125
QStringList info()
dumps some information for debugging
Definition: actplanting.cpp:191
Activity is the base class for management activities.
Definition: activity.h:162
friend class FMStand
Definition: activity.h:218
The FMSTP class encapsulates a stand treatment program, which is defined in Javascript.
Definition: fmstp.h:39
FMStand encapsulates a forest stand for the forest management engine.
Definition: fmstand.h:49
The class contains data available at ResourceUnit x Species scale.
Definition: resourceunitspecies.h:34
The behavior and general properties of tree species.
Definition: species.h:75