37 QString
type()
const {
return "salvage"; }
38 void setup(QJSValue value);
49 void checkStandAfterDisturbance(
FMStand *stand);
50 int floodFillHelper(
Grid<int> &grid, QPoint start,
int old_color,
int color);
51 int neighborFinderHelper(
Grid<int> &grid, QVector<int> &neighbors,
int stand_id);
52 int replaceValueHelper(
Grid<int> &grid,
int old_value,
int new_value);
56 int mMaxPreponeActivity;
57 double mThresholdMinimal;
58 double mThresholdSplit;
59 double mThresholdClear;
61 QJSValue mJSConditionFunc;
The ActSalvage class handles salvage logging after disturbances.
Definition: actsalvage.h:33
bool evaluateRemove(Tree *tree) const
return true, if the (disturbed) tree should be harvested by the salvage activity
Definition: actsalvage.cpp:132
bool checkSanitation(FMStand *stand)
Definition: actsalvage.cpp:161
bool execute(FMStand *stand)
executes the action (usually defined in derived classes) using the context of 'stand'.
Definition: actsalvage.cpp:87
QStringList info()
dumps some information for debugging
Definition: actsalvage.cpp:123
QString type() const
Definition: actsalvage.h:37
bool barkbeetleAttack(FMStand *stand, double generations, int infested_px_ha)
Definition: actsalvage.cpp:149
~ActSalvage()
Definition: actsalvage.cpp:55
void setup(QJSValue value)
setup of the activity (events, schedule, constraints). additional setup in derived classes.
Definition: actsalvage.cpp:61
ActSalvage(FMSTP *parent)
Definition: actsalvage.cpp:43
Activity is the base class for management activities.
Definition: activity.h:162
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
An expression engine for mathematical expressions provided as strings.
Definition: expression.h:29
Grid class (template).
Definition: grid.h:44
A tree is the basic simulation entity of iLand and represents a single tree.
Definition: tree.h:44