iLand
Public Member Functions | Public Attributes | List of all members
ABE::Schedule Class Reference

#include <activity.h>

Public Member Functions

 Schedule ()
 
 Schedule (QJSValue &js_value)
 
void clear ()
 
void setup (const QJSValue &js_value)
 
QString dump () const
 
double value (const FMStand *stand, const int specific_year=-1)
 value() evaluates the schedule for the given 'stand'. More...
 
double minValue (const double U=100.) const
 gives (fixed) earliest possible execution time More...
 
double maxValue (const double U=100.) const
 returns the latest possible execution time More...
 
double optimalValue (const double U=100.) const
 returns the "optimal" year, i.e. the first year when prob. to execute is highest. More...
 

Public Attributes

int tmin
 
int tmax
 
int topt
 
double tminrel
 
double tmaxrel
 
double toptrel
 
bool force_execution
 
int repeat_interval
 
int repeat_start
 
bool repeat
 
bool absolute
 

Constructor & Destructor Documentation

◆ Schedule() [1/2]

ABE::Schedule::Schedule ( )
inline

◆ Schedule() [2/2]

ABE::Schedule::Schedule ( QJSValue &  js_value)
inline

Member Function Documentation

◆ clear()

void ABE::Schedule::clear ( )
inline

◆ dump()

QString ABE::Schedule::dump ( ) const

◆ maxValue()

double ABE::Schedule::maxValue ( const double  U = 100.) const

returns the latest possible execution time

◆ minValue()

double ABE::Schedule::minValue ( const double  U = 100.) const

gives (fixed) earliest possible execution time

◆ optimalValue()

double ABE::Schedule::optimalValue ( const double  U = 100.) const

returns the "optimal" year, i.e. the first year when prob. to execute is highest.

◆ setup()

void ABE::Schedule::setup ( const QJSValue &  js_value)

◆ value()

double ABE::Schedule::value ( const FMStand stand,
const int  specific_year = -1 
)

value() evaluates the schedule for the given 'stand'.

return 0..1 (0: no fit, 1: perfect time). Special value -1: expired (i.e. current time past the maximum schedule time).

Member Data Documentation

◆ absolute

bool ABE::Schedule::absolute

◆ force_execution

bool ABE::Schedule::force_execution

◆ repeat

bool ABE::Schedule::repeat

◆ repeat_interval

int ABE::Schedule::repeat_interval

◆ repeat_start

int ABE::Schedule::repeat_start

◆ tmax

int ABE::Schedule::tmax

◆ tmaxrel

double ABE::Schedule::tmaxrel

◆ tmin

int ABE::Schedule::tmin

◆ tminrel

double ABE::Schedule::tminrel

◆ topt

int ABE::Schedule::topt

◆ toptrel

double ABE::Schedule::toptrel

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