Loading [MathJax]/extensions/ams.js
 |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Go to the documentation of this file.
21 #ifndef BEPOTATOESSPRING_H
22 #define BEPOTATOESSPRING_H
24 #define BEPOTATOESSPRING_BASE 26500
28 #define BE_POTS_HERBI a_field->m_user[1]
29 #define BE_POTS_FUNGI1 a_field->m_user[2]
30 #define BE_POTS_FUNGI2 a_field->m_user[3]
31 #define BE_POTS_FUNGI3 a_field->m_user[4]
32 #define BE_POTS_FUNGI4 a_field->m_user[5]
33 #define BE_POTS_FUNGI5 a_field->m_user[6]
101 #endif // BEPOTATOESSPRING_H
int GetMDates(int a, int b)
Definition: Elements.h:405
Definition: BEPotatoesSpring.h:73
CfgBool cfg_pest_potatoes_on
Turn on pesticides for potatoes.
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
virtual bool SpringPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the spring on a_field.
Definition: FarmFuncs.cpp:421
Definition: BEPotatoesSpring.h:50
bool IsStockFarmer(void)
Definition: Farm.h:961
Definition: BEPotatoesSpring.h:60
bool m_lock
Definition: Farm.h:384
Definition: BEPotatoesSpring.h:52
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
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
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
int GetYearNumber(void)
Definition: Calendar.h:72
bool m_first_year
Definition: Farm.h:386
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
TTypesOfVegetation GetPreviousTov(int a_index)
Definition: Farm.h:966
CfgInt cfg_POT_InsecticideMonth
Provided to allow configuration control of the first insecticide spray in potatoes crops - this chang...
Definition: BEPotatoesSpring.h:61
TTypesOfFarm GetType(void)
Definition: Farm.h:956
Definition: BEPotatoesSpring.h:63
Definition: BEPotatoesSpring.h:48
int m_first_date
Definition: Farm.h:501
int m_startday
Definition: Farm.h:385
CfgInt cfg_POT_InsecticideDay
Provided to allow configuration control of the first insecticide spray in potatoes crops - this chang...
#define BEPOTATOESSPRING_BASE
Definition: BEPotatoesSpring.h:24
Definition: BEPotatoesSpring.h:67
Definition: BEPotatoesSpring.h:54
#define BE_POTS_FUNGI2
Definition: BEPotatoesSpring.h:30
The base class for all crops.
Definition: Farm.h:495
Definition: BEPotatoesSpring.h:51
bool value() const
Definition: Configurator.h:164
BEPotatoesSpring(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: BEPotatoesSpring.h:92
Definition: BEPotatoesSpring.h:43
Definition: BEPotatoesSpring.h:72
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: BEPotatoesSpring.h:44
long Date(void)
Definition: Calendar.h:57
Definition: BEPotatoesSpring.h:66
int GetSoilType()
Definition: Elements.h:302
#define BE_POTS_FUNGI3
Definition: BEPotatoesSpring.h:31
Bool configurator entry class.
Definition: Configurator.h:155
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
int GetRotIndex(void)
Definition: Elements.h:373
Definition: BEPotatoesSpring.h:68
TTypesOfVegetation m_next_tov
Definition: Farm.h:390
Farm * m_farm
Definition: Farm.h:498
LE * m_field
Definition: Farm.h:499
Definition: BEPotatoesSpring.h:75
std::vector< double > value() const
Definition: Configurator.h:219
Definition: BEPotatoesSpring.h:65
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: BEPotatoesSpring.h:74
virtual bool BiocideTreat(LE *a_field, double a_user, int a_days)
Apply Biocide to a_field.
Definition: FarmFuncs.cpp:2175
Definition: BEPotatoesSpring.h:69
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: BEPotatoesSpring.h:57
Definition: LandscapeFarmingEnums.h:696
Definition: Elements.h:86
CfgFloat l_pest_insecticide_amount
#define BE_POTS_FUNGI4
Definition: BEPotatoesSpring.h:32
Definition: BEPotatoesSpring.h:41
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
CfgArray_Double cfg_pest_product_amounts
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.
Definition: BEPotatoesSpring.h:42
Definition: BEPotatoesSpring.h:49
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
Definition: BEPotatoesSpring.h:55
Definition: BEPotatoesSpring.h:46
The base class for all farm types.
Definition: Farm.h:755
Definition: BEPotatoesSpring.h:47
#define BE_POTS_FUNGI1
Definition: BEPotatoesSpring.h:29
BEPotatoesSpringToDo
Definition: BEPotatoesSpring.h:40
Definition: LandscapeFarmingEnums.h:300
static int m_date_modifier
Holds a value that shifts test pesticide use by this many days in crops modified to use it.
Definition: Farm.h:514
Double configurator entry class.
Definition: Configurator.h:126
Definition: BEPotatoesSpring.h:59
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
The one and only method for a crop management plan. All farm actions go through here.
Definition: BEPotatoesSpring.cpp:64
#define BE_POTS_FUNGI5
Definition: BEPotatoesSpring.h:33
Definition: BEPotatoesSpring.h:76
Definition: BEPotatoesSpring.h:45
BEPotatoesSpring class .
Definition: BEPotatoesSpring.h:88
Farm * GetOwner(void)
Definition: Elements.h:256
int DayInYear(void)
Definition: Calendar.h:58
#define BE_POTS_HERBI
A flag used to indicate autumn ploughing status.
Definition: BEPotatoesSpring.h:28
Definition: BEPotatoesSpring.h:64
Definition: BEPotatoesSpring.h:56
Definition: BEPotatoesSpring.h:53
Definition: BEPotatoesSpring.h:58
void SetMConstants(int a, int c)
Definition: Elements.h:408
Definition: BEPotatoesSpring.h:71
FarmEvent * m_ev
Definition: Farm.h:500
Definition: BEPotatoesSpring.h:70
Definition: MapErrorMsg.h:34
Definition: LandscapeFarmingEnums.h:1079
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: BEPotatoesSpring.h:62