iLand
Public Member Functions | List of all members

The ActGeneral class is an all-purpose activity and implements no specific forest management activity. More...

#include <actgeneral.h>

Inheritance diagram for ABE::ActGeneral:
ABE::Activity

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...
 
- Public Member Functions inherited from ABE::Activity
 Activity (const FMSTP *parent)
 
virtual ~Activity ()
 
const FMSTPprogram () 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

- Public Types inherited from ABE::Activity
enum  Phase {
  Invalid , Tending , Thinning , Regeneration ,
  All
}
 
- Static Public Member Functions inherited from ABE::Activity
static ActivitycreateActivity (const QString &type, FMSTP *stp)
 Activity factory - create activities for given 'type'. More...
 
- Protected Member Functions inherited from ABE::Activity
Scheduleschedule ()
 
Constraintsconstraints ()
 
Eventsevents ()
 
ActivityFlagsstandFlags (FMStand *stand=0)
 
- Protected Attributes inherited from ABE::Activity
ActivityFlags mBaseActivity
 
- Static Protected Attributes inherited from ABE::Activity
static QStringList mAllowedProperties = QStringList() << "schedule" << "constraint" << "type"
 

Detailed Description

The ActGeneral class is an all-purpose activity and implements no specific forest management activity.

Constructor & Destructor Documentation

◆ ActGeneral()

ABE::ActGeneral::ActGeneral ( FMSTP parent)
inline

Member Function Documentation

◆ execute()

bool ABE::ActGeneral::execute ( FMStand stand)
virtual

executes the action (usually defined in derived classes) using the context of 'stand'.

Reimplemented from ABE::Activity.

◆ info()

QStringList ABE::ActGeneral::info ( )
virtual

dumps some information for debugging

Reimplemented from ABE::Activity.

◆ setup()

void ABE::ActGeneral::setup ( QJSValue  value)
virtual

setup of the activity (events, schedule, constraints). additional setup in derived classes.

Reimplemented from ABE::Activity.

◆ type()

QString ABE::ActGeneral::type ( ) const
inlinevirtual

Reimplemented from ABE::Activity.


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