Loading [MathJax]/extensions/ams.js
 |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
#include <PTOliveGroveSuperIntensive.h>
|
TTypesOfVegetation | m_tov |
|
void | SimpleEvent (long a_date, int a_todo, bool a_lock) |
| Adds an event to this crop management. More...
|
|
void | SimpleEvent_ (long a_date, int a_todo, bool a_lock, Farm *a_farm, LE *a_field) |
| Adds an event to this crop management without relying on member variables. More...
|
|
bool | StartUpCrop (int a_spring, std::vector< std::vector< int >> a_flexdates, int a_todo) |
|
Holds the translation between the farm operation enum for each cropand the farm management category associated with it More...
|
|
bool | AphidDamage (LE *a_field) |
| Compares aphid numbers per m2 with a threshold to return true if threshold is exceeded. More...
|
|
Farm * | m_farm |
|
LE * | m_field |
|
FarmEvent * | m_ev |
|
int | m_first_date |
|
int | m_count |
|
int | m_last_date |
|
int | m_ddegstoharvest |
|
int | m_base_elements_no |
|
Landscape * | m_OurLandscape |
|
bool | m_forcespringpossible = false |
| Used to signal that the crop can be forced to start in spring. More...
|
|
TTypesOfCrops | m_toc |
| The Crop type in terms of the TTypesOfCrops list (smaller list than tov, no country designation) More...
|
|
int | m_CropClassification |
| Contains information on whether this is a winter crop, spring crop, or catch crop that straddles the year boundary (0,1,2) More...
|
|
vector< FarmManagementCategory > | m_ManagementCategories |
| Holds the translation between the farm operation enum for each crop and the farm management category associated with it. More...
|
|
static int | m_date_modifier = 0 |
| Holds a value that shifts test pesticide use by this many days in crops modified to use it. More...
|
|
◆ PTOliveGroveSuperIntensive()
◆ Do()
bool PTOliveGroveSuperIntensive::Do |
( |
Farm * |
a_farm, |
|
|
LE * |
a_field, |
|
|
FarmEvent * |
a_ev |
|
) |
| |
|
virtual |
Reimplemented from Crop.
61 if (d1 < g_date->Date()) { d1 += 365; }
152 if (a_farm->DoIt_prob(0.25)) {
272 "Unknown event type! ",
"");
References LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::FP_NPK(), Farm::FungicideTreat(), g_date, g_msg, Farm::Harvest(), Farm::HerbicideTreat(), Farm::InsecticideTreat(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_first_date, FarmEvent::m_first_year, FarmEvent::m_todo, Calendar::OldDays(), Farm::Pruning(), pt_ol_s_i_fert_1, pt_ol_s_i_fert_10, pt_ol_s_i_fert_2, pt_ol_s_i_fert_3, pt_ol_s_i_fert_4, pt_ol_s_i_fert_5, pt_ol_s_i_fert_6, pt_ol_s_i_fert_7, pt_ol_s_i_fert_8, pt_ol_s_i_fert_9, pt_ol_s_i_fungi_1, pt_ol_s_i_harvest, pt_ol_s_i_herb_1, pt_ol_s_i_herb_2, pt_ol_s_i_herb_3, pt_ol_s_i_herb_4, pt_ol_s_i_herb_5, pt_ol_s_i_herb_6, pt_ol_s_i_herb_7, pt_ol_s_i_pest_1, pt_ol_s_i_pest_2, pt_ol_s_i_pest_3, pt_ol_s_i_pest_4, pt_ol_s_i_pest_5, pt_ol_s_i_pruning, pt_ol_s_i_shredding, pt_ol_s_i_start, pt_ol_s_i_water, Farm::Shredding(), Crop::SimpleEvent_(), MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().
◆ SetUpFarmCategoryInformation()
void PTOliveGroveSuperIntensive::SetUpFarmCategoryInformation |
( |
| ) |
|
|
inline |
References fmc_Fertilizer, fmc_Fungicide, fmc_Harvest, fmc_Herbicide, fmc_Insecticide, fmc_Others, fmc_Watering, Crop::m_base_elements_no, Crop::m_ManagementCategories, pt_ol_s_i_foobar, and PTOLIVEGROVESUPERINTENSIVE_BASE.
Referenced by PTOliveGroveSuperIntensive().
The documentation for this class was generated from the following files:
Definition: PTOliveGroveSuperIntensive.h:58
Definition: LandscapeFarmingEnums.h:1005
virtual bool HerbicideTreat(LE *a_field, double a_user, int a_days)
Apply herbicide to a_field.
Definition: FarmFuncs.cpp:2025
Definition: PTOliveGroveSuperIntensive.h:49
Definition: PTOliveGroveSuperIntensive.h:67
Definition: PTOliveGroveSuperIntensive.h:53
virtual bool Harvest(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field.
Definition: FarmFuncs.cpp:1364
Definition: PTOliveGroveSuperIntensive.h:56
Definition: PTOliveGroveSuperIntensive.h:63
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
virtual bool FP_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:645
bool m_first_year
Definition: Farm.h:386
class Calendar * g_date
Definition: Calendar.cpp:37
Definition: LandscapeFarmingEnums.h:1006
int m_base_elements_no
Definition: Farm.h:505
Definition: PTOliveGroveSuperIntensive.h:73
int m_first_date
Definition: Farm.h:501
Definition: PTOliveGroveSuperIntensive.h:51
virtual bool FungicideTreat(LE *a_field, double a_user, int a_days)
Apply fungicide to a_field.
Definition: FarmFuncs.cpp:2101
Definition: PTOliveGroveSuperIntensive.h:57
Definition: PTOliveGroveSuperIntensive.h:48
Definition: PTOliveGroveSuperIntensive.h:75
Definition: LandscapeFarmingEnums.h:1004
void SetUpFarmCategoryInformation()
Definition: PTOliveGroveSuperIntensive.h:87
Definition: PTOliveGroveSuperIntensive.h:61
long Date(void)
Definition: Calendar.h:57
Definition: PTOliveGroveSuperIntensive.h:59
Definition: PTOliveGroveSuperIntensive.h:70
Definition: PTOliveGroveSuperIntensive.h:62
Definition: LandscapeFarmingEnums.h:1003
Definition: PTOliveGroveSuperIntensive.h:69
Definition: LandscapeFarmingEnums.h:1011
#define PTOLIVEGROVESUPERINTENSIVE_BASE
Definition: PTOliveGroveSuperIntensive.h:44
long OldDays(void)
Definition: Calendar.h:60
Definition: PTOliveGroveSuperIntensive.h:72
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
Definition: PTOliveGroveSuperIntensive.h:55
Definition: PTOliveGroveSuperIntensive.h:71
Definition: PTOliveGroveSuperIntensive.h:66
Farm * m_farm
Definition: Farm.h:498
LE * m_field
Definition: Farm.h:499
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
int m_todo
Definition: Farm.h:388
virtual bool InsecticideTreat(LE *a_field, double a_user, int a_days)
Apply insecticide to a_field.
Definition: FarmFuncs.cpp:2135
Definition: PTOliveGroveSuperIntensive.h:52
virtual bool Water(LE *a_field, double a_user, int a_days)
Carry out a watering on a_field.
Definition: FarmFuncs.cpp:1330
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Definition: PTOliveGroveSuperIntensive.h:50
Definition: PTOliveGroveSuperIntensive.h:68
Definition: PTOliveGroveSuperIntensive.h:65
virtual bool Shredding(LE *a_field, double a_user, int a_days)
Shredding (destruction of the pruning residues with a shredders using hammer mower) applied on a_fiel...
Definition: FarmFuncs.cpp:1912
Definition: PTOliveGroveSuperIntensive.h:46
Definition: LandscapeFarmingEnums.h:1012
virtual bool Pruning(LE *a_field, double a_user, int a_days)
Pruning applied on a_field - details needs to be added (e.g., impact on biomass, influence/impacts in...
Definition: FarmFuncs.cpp:1897
int DayInYear(void)
Definition: Calendar.h:58
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
FarmEvent * m_ev
Definition: Farm.h:500
Definition: MapErrorMsg.h:34
Definition: PTOliveGroveSuperIntensive.h:60
Definition: LandscapeFarmingEnums.h:1007
Definition: PTOliveGroveSuperIntensive.h:54
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
Definition: PTOliveGroveSuperIntensive.h:74
void SimpleEvent_(long a_date, int a_todo, bool a_lock, Farm *a_farm, LE *a_field)
Adds an event to this crop management without relying on member variables.
Definition: Farm.cpp:751
Definition: PTOliveGroveSuperIntensive.h:64