![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
#include <PesticideToxicity.h>
Public Member Functions | |
PesticideStore () | |
void | addPesticide (double eating_amount, double amount_per_square, double(Landscape::*a_supply_pest_func_pointer)(int, int, PlantProtectionProducts), int loc_x, int loc_y) |
The function to add pesticide based on the eating amount and the amount of food per square meter. More... | |
void | addPesticide (double a_mount, PlantProtectionProducts a_type) |
The function to add pesticide based on the given amount and the given type. More... | |
virtual void | reset (void) |
The function to reset the pesticide to zero. More... | |
std::vector< double > * | supplyPesticide (void) |
The function to return the pesticide amount array. More... | |
double | supplyPesticide (PlantProtectionProducts a_type) |
The function to return the pesticide amount. More... | |
double | supplyTotalPesticide (void) |
The function to return the total pesticide amount. More... | |
void | doDecay (void) |
The default fuction to decay the pesticide body burden. More... | |
virtual void | tick (int a_step_counter_in_a_day) |
The function to update pesticide contamination every time step. More... | |
Static Public Member Functions | |
static void | setLandscapePointer (Landscape *a_landscape) |
The function to set the static landscape pointer. More... | |
Protected Attributes | |
std::vector< double > | m_pest_amount_vec |
The vector to store the pesticide amount for each pesticide. More... | |
Static Protected Attributes | |
static Landscape * | m_ALandscape = nullptr |
The static landscape pointer. More... | |
PesticideStore::PesticideStore | ( | ) |
References l_pest_enable_pesticide_engine, l_pest_NoPPPs, m_pest_amount_vec, CfgInt::value(), and CfgBool::value().
|
inline |
The function to add pesticide based on the given amount and the given type.
References m_pest_amount_vec.
void PesticideStore::addPesticide | ( | double | eating_amount, |
double | amount_per_square, | ||
double(Landscape::*)(int, int, PlantProtectionProducts) | a_supply_pest_func_pointer, | ||
int | loc_x, | ||
int | loc_y | ||
) |
The function to add pesticide based on the eating amount and the amount of food per square meter.
References l_pest_NoPPPs, m_ALandscape, m_pest_amount_vec, and CfgInt::value().
Referenced by PesticideToxicity::eatingFromStorePest(), and Osmia_Female::st_ReproductiveBehaviour().
void PesticideStore::doDecay | ( | void | ) |
The default fuction to decay the pesticide body burden.
References l_pest_NoPPPs, l_pest_zero_threshold, m_pest_amount_vec, pest_decay_rate_animal, CfgInt::value(), CfgFloat::value(), and CfgArray_Double::value().
Referenced by PesticideToxicity::PesticideToxicity(), and tick().
|
virtual |
The function to reset the pesticide to zero.
Reimplemented in PesticideToxicity.
References l_pest_NoPPPs, m_pest_amount_vec, and CfgInt::value().
|
inlinestatic |
The function to set the static landscape pointer.
References m_ALandscape.
Referenced by Population_Manager_Base::Population_Manager_Base().
|
inline |
|
inline |
The function to return the pesticide amount array.
References m_pest_amount_vec.
Referenced by PesticideToxicity::eatingFromStorePest().
|
inline |
The function to return the total pesticide amount.
References m_pest_amount_vec.
Referenced by Osmia_Female::BeginStep().
|
virtual |
The function to update pesticide contamination every time step.
References doDecay(), l_pest_enable_pesticide_engine, and CfgBool::value().
|
staticprotected |
The static landscape pointer.
Referenced by addPesticide(), PesticideToxicity::doContact(), PesticideToxicity::doOverspray(), and setLandscapePointer().
|
protected |
The vector to store the pesticide amount for each pesticide.
Referenced by addPesticide(), PesticideToxicity::doContact(), doDecay(), PesticideToxicity::doOverspray(), PesticideToxicity::doToxicity(), PesticideToxicity::eatingFromStorePest(), PesticideStore(), reset(), PesticideToxicity::reset(), PesticideToxicity::SetPesticideVector(), supplyPesticide(), PesticideToxicity::supplyPesticide(), PesticideToxicity::supplyPesticideVector(), and supplyTotalPesticide().