![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
A small class to generate pest incidence information. More...
#include <Landscape.h>
Public Member Functions | |
PestIncidenceManager (double a_max, double a_min) | |
Generates maximum and minimum pest indicidence levels More... | |
double | GetIncidenceLevel () |
Returns the current pesticide incidence level, the mean of minimum and maximum incidence level. More... | |
void | RecalculateIncidence () |
Assigns a random number between 0 and 1.0 as the current incidence level. More... | |
Protected Attributes | |
double | m_current_incidence |
Returns the current pesticide incidence level, the mean of minimum and maximum incidence level in the GetIncidenceLevel or a random number between 0 and 1.0 in the RecalculateIncidence. More... | |
double | m_max_incidence |
Returns the maximum pesticide incidence level. More... | |
double | m_min_incidence |
Returns the minimum pesticide incidence level. More... | |
double | m_range |
Returns the range of pesticide incidence level, the subtraction of minimum from the maximum level. More... | |
A small class to generate pest incidence information.
PestIncidenceManager::PestIncidenceManager | ( | double | a_max, |
double | a_min | ||
) |
Generates maximum and minimum pest indicidence levels
This class is a stub for expansion to more detailed versions. The initial version is simply a random number between 0 and 1 but more complex versions and file read information should be added.
|
inline |
Returns the current pesticide incidence level, the mean of minimum and maximum incidence level.
References m_current_incidence.
void PestIncidenceManager::RecalculateIncidence | ( | ) |
Assigns a random number between 0 and 1.0 as the current incidence level.
References g_rand_uni_fnc().
|
protected |
Returns the current pesticide incidence level, the mean of minimum and maximum incidence level in the GetIncidenceLevel or a random number between 0 and 1.0 in the RecalculateIncidence.
Referenced by GetIncidenceLevel().
|
protected |
Returns the maximum pesticide incidence level.
|
protected |
Returns the minimum pesticide incidence level.
|
protected |
Returns the range of pesticide incidence level, the subtraction of minimum from the maximum level.