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
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BEBeetSpring.h
Go to the documentation of this file.
1 
16 //
17 // BEBeetSpring.h
18 //
19 
20 
21 #ifndef BEBEETSPRING_H
22 #define BEBEETSPRING_H
23 
24 #define BEBEETSPRING_BASE 26200
25 
28 #define BE_BES_HERBI1 a_field->m_user[1]
29 #define BE_BES_FUNGI1 a_field->m_user[2]
30 
31 
37 typedef enum {
38  BE_bes_start = 1, // Compulsory, must always be 1 (one).
56 
57 
66 class BEBeetSpring: public Crop
67 {
68  public:
69  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
70  BEBeetSpring(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape* a_L) : Crop(a_tov, a_toc, a_L)
71  {
72  // When we start it off, the first possible date for a farm operation is 20th October
73  // This information is used by other crops when they decide how much post processing of
74  // the management is allowed after harvest before the next crop starts.
76  }
77 };
78 
79 #endif // BEBEETSPRING_H
80 
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
BE_bes_spring_plough
Definition: BEBeetSpring.h:40
BEBEETSPRING_BASE
#define BEBEETSPRING_BASE
Definition: BEBeetSpring.h:24
FarmEvent::m_forcespring
bool m_forcespring
Definition: Farm.h:392
l_pest_insecticide_amount
CfgFloat l_pest_insecticide_amount
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
Farm::SpringPlough
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
tov_BEBeetSpring
Definition: LandscapeFarmingEnums.h:290
BE_bes_herbicide2
Definition: BEBeetSpring.h:48
BE_bes_harvest
Definition: BEBeetSpring.h:54
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
BE_BES_HERBI1
#define BE_BES_HERBI1
A flag used to indicate autumn ploughing status.
Definition: BEBeetSpring.h:28
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
BE_bes_spring_sow
Definition: BEBeetSpring.h:44
Calendar::GetYearNumber
int GetYearNumber(void)
Definition: Calendar.h:72
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
cfg_pest_product_3_amount
CfgFloat cfg_pest_product_3_amount
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
Farm::GetPreviousTov
TTypesOfVegetation GetPreviousTov(int a_index)
Definition: Farm.h:966
Farm::GetType
TTypesOfFarm GetType(void)
Definition: Farm.h:956
BEBeetSpring::Do
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: BEBeetSpring.cpp:64
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
BE_bes_start
Definition: BEBeetSpring.h:38
BE_bes_ferti_s1
Definition: BEBeetSpring.h:42
Crop
The base class for all crops.
Definition: Farm.h:495
BEBeetSpring
BEBeetSpring class .
Definition: BEBeetSpring.h:66
BE_bes_fungicide1
Definition: BEBeetSpring.h:51
BE_bes_ferti_s2
Definition: BEBeetSpring.h:46
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
BE_bes_herbicide1
Definition: BEBeetSpring.h:47
Calendar::Date
long Date(void)
Definition: Calendar.h:57
BE_bes_ferti_p1
Definition: BEBeetSpring.h:41
LE::GetSoilType
int GetSoilType()
Definition: Elements.h:302
CfgBool
Bool configurator entry class.
Definition: Configurator.h:155
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
BE_bes_sleep_all_day
Definition: BEBeetSpring.h:39
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
LE::GetRotIndex
int GetRotIndex(void)
Definition: Elements.h:373
BE_bes_fungicide2
Definition: BEBeetSpring.h:52
FarmEvent::m_next_tov
TTypesOfVegetation m_next_tov
Definition: Farm.h:390
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
BE_bes_preseeding_cultivator
Definition: BEBeetSpring.h:43
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
LE::GetGreenBiomass
virtual double GetGreenBiomass(void)
Definition: Elements.h:160
BE_bes_herbicide4
Definition: BEBeetSpring.h:50
TTypesOfCrops
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
tof_OptimisingFarm
Definition: LandscapeFarmingEnums.h:696
LE
Definition: Elements.h:86
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
cfg_pest_beet_on
CfgBool cfg_pest_beet_on
Turn on pesticides for beet.
BE_bes_fungicide3
Definition: BEBeetSpring.h:53
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
CfgInt
Integer configurator entry class.
Definition: Configurator.h:102
BE_bes_ferti_p2
Definition: BEBeetSpring.h:45
Farm
The base class for all farm types.
Definition: Farm.h:755
CfgFloat
Double configurator entry class.
Definition: Configurator.h:126
cfg_BE_InsecticideMonth
CfgInt cfg_BE_InsecticideMonth
Provided to allow configuration control of the first insecticide spray in beet crops - this changes t...
LE::GetOwner
Farm * GetOwner(void)
Definition: Elements.h:256
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
cfg_BE_InsecticideDay
CfgInt cfg_BE_InsecticideDay
Provided to allow configuration control of the first insecticide spray in beet crops - this changes t...
BE_BES_FUNGI1
#define BE_BES_FUNGI1
Definition: BEBeetSpring.h:29
BEBeetSpring::BEBeetSpring
BEBeetSpring(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: BEBeetSpring.h:70
BE_bes_herbicide3
Definition: BEBeetSpring.h:49
LE::SetMConstants
void SetMConstants(int a, int c)
Definition: Elements.h:408
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
BEBeetSpringToDo
BEBeetSpringToDo
Definition: BEBeetSpring.h:37
WARN_BUG
Definition: MapErrorMsg.h:34
Crop::SimpleEvent_
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