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
BEMaizeCC.h
Go to the documentation of this file.
1 
12 //
13 // BEMaizeCC.h
14 //
15 
16 
17 #ifndef BEMAIZECC_H
18 #define BEMAIZECC_H
19 
20 #define BEMAIZECC_BASE 25250
21 
24 #define BE_MCC_START_FERTI a_field->m_user[1]
25 
31 typedef enum {
32  BE_mcc_start = 1, // Compulsory, must always be 1 (one).
52 
53 
62 class BEMaizeCC: public Crop
63 {
64  public:
65  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
66  BEMaizeCC(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape* a_L) : Crop(a_tov, a_toc, a_L)
67  {
68  // When we start it off, the first possible date for a farm operation is 5th November
69  // This information is used by other crops when they decide how much post processing of
70  // the management is allowed after harvest before the next crop starts.
71  m_first_date=g_date->DayInYear( 31,10 );
72  m_forcespringpossible = true;
73  }
74 };
75 
76 #endif // BEMAIZE_H
77 
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
Calendar::GetYearNumber
int GetYearNumber(void)
Definition: Calendar.h:72
BE_mcc_ferti_s1
Definition: BEMaizeCC.h:39
tov_BECatchPeaCrop
Definition: LandscapeFarmingEnums.h:291
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
BE_mcc_preseeding_cultivator
Definition: BEMaizeCC.h:42
BE_mcc_stubble_harrow2
Definition: BEMaizeCC.h:35
BE_mcc_spring_plough1
Definition: BEMaizeCC.h:40
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
BEMAIZECC_BASE
#define BEMAIZECC_BASE
Definition: BEMaizeCC.h:20
Crop
The base class for all crops.
Definition: Farm.h:495
BE_mcc_winter_plough2
Definition: BEMaizeCC.h:37
BE_mcc_straw_chopping
Definition: BEMaizeCC.h:49
BE_mcc_ferti_p1
Definition: BEMaizeCC.h:38
BE_mcc_ferti_p2
Definition: BEMaizeCC.h:45
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
BE_mcc_spring_sow_with_ferti
Definition: BEMaizeCC.h:43
BEMaizeCC
BEMaize class .
Definition: BEMaizeCC.h:62
Calendar::Date
long Date(void)
Definition: Calendar.h:57
BE_mcc_spring_sow
Definition: BEMaizeCC.h:44
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
BEMaizeCC::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: BEMaizeCC.cpp:56
BE_mcc_ferti_s2
Definition: BEMaizeCC.h:46
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
BEMaizeCCToDo
BEMaizeCCToDo
Definition: BEMaizeCC.h:31
BE_mcc_harvest
Definition: BEMaizeCC.h:48
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
tov_Undefined
Definition: LandscapeFarmingEnums.h:610
LE::SetVegType
virtual void SetVegType(TTypesOfVegetation)
Definition: Elements.h:175
TTypesOfCrops
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
tof_OptimisingFarm
Definition: LandscapeFarmingEnums.h:696
LE
Definition: Elements.h:86
BE_mcc_sleep_all_day
Definition: BEMaizeCC.h:33
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
BE_mcc_spring_plough2
Definition: BEMaizeCC.h:41
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
tov_BEMaizeCC
Definition: LandscapeFarmingEnums.h:304
Farm
The base class for all farm types.
Definition: Farm.h:755
BE_mcc_herbicide1
Definition: BEMaizeCC.h:47
BE_mcc_wait
Definition: BEMaizeCC.h:50
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
BE_MCC_START_FERTI
#define BE_MCC_START_FERTI
A flag used to indicate autumn ploughing status.
Definition: BEMaizeCC.h:24
BE_mcc_start
Definition: BEMaizeCC.h:32
Crop::m_forcespringpossible
bool m_forcespringpossible
Used to signal that the crop can be forced to start in spring.
Definition: Farm.h:508
BE_mcc_stubble_harrow1
Definition: BEMaizeCC.h:34
PROG_START
#define PROG_START
Definition: Farm.h:69
BEMaizeCC::BEMaizeCC
BEMaizeCC(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: BEMaizeCC.h:66
BE_mcc_winter_plough1
Definition: BEMaizeCC.h:36
WARN_BUG
Definition: MapErrorMsg.h:34