iLand
|
The ActGeneral class is an all-purpose activity and implements no specific forest management activity. More...
#include <actgeneral.h>
Public Member Functions | |
ActGeneral (FMSTP *parent) | |
QString | type () const |
QStringList | info () |
dumps some information for debugging More... | |
void | setup (QJSValue value) |
setup of the activity (events, schedule, constraints). additional setup in derived classes. 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 bool | evaluate (FMStand *stand) |
executes the evaluation of the forest stand. More... | |
virtual void | evaluateDyanamicExpressions (FMStand *stand) |
function that evaluates "bound" dynamic expressions More... | |
Additional Inherited Members | |
![]() | |
enum | Phase { Invalid , Tending , Thinning , Regeneration , All } |
![]() | |
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 ActGeneral class is an all-purpose activity and implements no specific forest management activity.
|
inline |
|
virtual |
executes the action (usually defined in derived classes) using the context of 'stand'.
Reimplemented from ABE::Activity.
|
virtual |
dumps some information for debugging
Reimplemented from ABE::Activity.
|
virtual |
setup of the activity (events, schedule, constraints). additional setup in derived classes.
Reimplemented from ABE::Activity.
|
inlinevirtual |
Reimplemented from ABE::Activity.