File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
 |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Go to the documentation of this file.
29 #ifndef NLORCHARDCROP_H
30 #define NLORCHARDCROP_H
32 #define NLORCHARDCROP_BASE 21700
37 #define NL_ORCH_INSECT a_field->m_user[1]
38 #define NL_ORCH_ISECT_DAY a_field->m_user[2]
94 #endif // NLORCHARDCROP_H
CfgBool cfg_pest_orchard_on
Turn on pesticides for orchard.
Definition: LandscapeFarmingEnums.h:1005
Definition: NLOrchardCrop.h:44
Definition: NLOrchardCrop.h:49
bool m_lock
Definition: Farm.h:384
virtual bool ProductApplication(LE *a_field, double a_user, int a_days, double a_applicationrate, PlantProtectionProducts a_ppp, bool a_isgranularpesticide=false, int a_orcharddrifttype=0)
Apply test pesticide to a_field.
Definition: FarmFuncs.cpp:2267
NLOrchardCropToDo
Definition: NLOrchardCrop.h:40
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: NLOrchardCrop.cpp:39
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
Definition: NLOrchardCrop.h:41
bool DoIt_prob(double a_probability)
Return chance out of 0 to 1.
Definition: Farm.cpp:864
class Calendar * g_date
Definition: Calendar.cpp:37
int m_base_elements_no
Definition: Farm.h:505
int m_first_date
Definition: Farm.h:501
Definition: NLOrchardCrop.h:47
The base class for all crops.
Definition: Farm.h:495
#define NLORCHARDCROP_BASE
Definition: NLOrchardCrop.h:32
bool value() const
Definition: Configurator.h:164
Definition: LandscapeFarmingEnums.h:1009
Definition: NLOrchardCrop.h:50
NLOrchardCrop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: NLOrchardCrop.h:61
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: LandscapeFarmingEnums.h:271
Definition: NLOrchardCrop.h:48
Definition: NLOrchardCrop.h:57
long Date(void)
Definition: Calendar.h:57
Bool configurator entry class.
Definition: Configurator.h:155
Definition: LandscapeFarmingEnums.h:1003
long OldDays(void)
Definition: Calendar.h:60
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
Definition: Configurator.h:208
virtual bool CutOrch(LE *a_field, double a_user, int a_days)
Cut vegetation on orchard crop. //based on cut to silage - values from cutting function of orchard.
Definition: FarmFuncs.cpp:1666
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 a...
Definition: Farm.cpp:652
Farm * m_farm
Definition: Farm.h:498
Definition: NLOrchardCrop.h:45
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
std::vector< double > value() const
Definition: Configurator.h:219
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
#define NL_ORCH_ISECT_DAY
Definition: NLOrchardCrop.h:38
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: Elements.h:86
int m_last_date
Definition: Farm.h:503
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Definition: NLOrchardCrop.h:43
CfgInt cfg_ORCH_InsecticideDay
Provided to allow configuration control of the first insecticide spray in orchard crops - this change...
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
Integer configurator entry class.
Definition: Configurator.h:102
The base class for all farm types.
Definition: Farm.h:755
Double configurator entry class.
Definition: Configurator.h:126
Definition: NLOrchardCrop.h:52
#define NL_ORCH_INSECT
A flag used to indicate insecticide use.
Definition: NLOrchardCrop.h:37
int DayInYear(void)
Definition: Calendar.h:58
CfgArray_Double cfg_pest_product_amounts
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.
Definition: NLOrchardCrop.h:42
Definition: NLOrchardCrop.h:51
CfgInt cfg_ORCH_InsecticideMonth
Provided to allow configuration control of the first insecticide spray in orchard crops - this change...
void SetUpFarmCategoryInformation()
Definition: NLOrchardCrop.h:66
Definition: NLOrchardCrop.h:46
CfgFloat l_pest_insecticide_amount
FarmEvent * m_ev
Definition: Farm.h:500
Definition: MapErrorMsg.h:34
Definition: LandscapeFarmingEnums.h:1079
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
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