iLand
|
The ActThinning class implements a very general interface to thinning activties. More...
#include <actthinning.h>
Public Types | |
enum | ThinningType { Invalid , FromBelow , FromAbove , Custom , Selection } |
![]() | |
enum | Phase { Invalid , Tending , Thinning , Regeneration , All } |
Public Member Functions | |
ActThinning (FMSTP *parent) | |
QString | type () const |
void | setup (QJSValue value) |
setup of the activity (events, schedule, constraints). additional setup in derived classes. More... | |
bool | evaluate (FMStand *stand) |
executes the evaluation of the forest stand. More... | |
bool | execute (FMStand *stand) |
executes the action (usually defined in derived classes) using the context of 'stand'. More... | |
![]() | |
Activity (const FMSTP *parent) | |
virtual | ~Activity () |
const FMSTP * | program () const |
QString | name () const |
name of the activity as provided by JS More... | |
int | index () const |
index of the activity within the STP More... | |
int | earliestSchedule (const double U=100.) const |
get earlist possible scheduled year (relative to rotation begin) More... | |
int | latestSchedule (const double U=100.) const |
get latest possible scheduled year (relative to rotation begin) More... | |
int | optimalSchedule (const double U=100.) const |
get optimal scheduled year (relative to rotation begin) More... | |
bool | isRepeatingActivity () const |
virtual double | scheduleProbability (FMStand *stand, const int specific_year=-1) |
returns a value > 0 if the activity coult be scheduled now More... | |
virtual double | execeuteProbability (FMStand *stand) |
returns a probability for the activity to be executed (ie all constraints are fulfilled) return value is 0 if the activity can not be executed (maximum result is 1) More... | |
virtual void | evaluateDyanamicExpressions (FMStand *stand) |
function that evaluates "bound" dynamic expressions More... | |
virtual QStringList | info () |
dumps some information for debugging More... | |
Additional Inherited Members | |
![]() | |
static Activity * | createActivity (const QString &type, FMSTP *stp) |
Activity factory - create activities for given 'type'. More... | |
![]() | |
Schedule & | schedule () |
Constraints & | constraints () |
Events & | events () |
ActivityFlags & | standFlags (FMStand *stand=0) |
![]() | |
ActivityFlags | mBaseActivity |
![]() | |
static QStringList | mAllowedProperties = QStringList() << "schedule" << "constraint" << "type" |
The ActThinning class implements a very general interface to thinning activties.
ABE::ActThinning::ActThinning | ( | FMSTP * | parent | ) |
|
virtual |
executes the evaluation of the forest stand.
returns true, when the stand should enter the scheduler.
Reimplemented from ABE::Activity.
|
virtual |
executes the action (usually defined in derived classes) using the context of 'stand'.
Reimplemented from ABE::Activity.
|
virtual |
setup of the activity (events, schedule, constraints). additional setup in derived classes.
Reimplemented from ABE::Activity.
|
virtual |
Reimplemented from ABE::Activity.