ALMaSS Vole ODDox  1.1
The vole model description following ODdox protocol
PLSpringWheat.h
Go to the documentation of this file.
1 
16 //
17 // PLSpringWheat.h
18 //
19 
20 
21 #ifndef PLSPRINGWHEAT_H
22 #define PLSPRINGWHEAT_H
23 
24 #define PLSPRINGWHEAT_BASE 20500
25 
28 #define PL_SW_FERTI_P1 a_field->m_user[1]
29 #define PL_SW_FERTI_S1 a_field->m_user[2]
30 #define PL_SW_STUBBLE_PLOUGH a_field->m_user[3]
31 #define PL_SW_FERTI_P4 a_field->m_user[4]
32 #define PL_SW_FERTI_S4 a_field->m_user[5]
33 #define PL_SW_SPRING_FERTI a_field->m_user[6]
34 #define PL_SW_DECIDE_TO_GR a_field->m_user[7]
35 
41 typedef enum {
42  pl_sw_start = 1, // Compulsory, must always be 1 (one).
44  pl_sw_ferti_p1, // 20501
53  pl_sw_ferti_s3, // 20510
88 
89 
98 class PLSpringWheat: public Crop
99 {
100  public:
101  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
103  {
104  // When we start it off, the first possible date for a farm operation is 5th November
105  // This information is used by other crops when they decide how much post processing of
106  // the management is allowed after harvest before the next crop starts.
107  m_first_date=g_date->DayInYear( 5,11 );
108  }
109 };
110 
111 #endif // PLSPRINGWHEAT_H
112 
pl_sw_preseeding_cultivator
Definition: PLSpringWheat.h:63
PLSPRINGWHEAT_BASE
#define PLSPRINGWHEAT_BASE
Definition: PLSpringWheat.h:24
pl_sw_ferti_p11
Definition: PLSpringWheat.h:85
pl_sw_heavy_cultivator
Definition: PLSpringWheat.h:62
pl_sw_sleep_all_day
Definition: PLSpringWheat.h:43
pl_sw_ferti_p10
Definition: PLSpringWheat.h:83
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
pl_sw_ferti_s1
Definition: PLSpringWheat.h:45
pl_sw_ferti_p8
Definition: PLSpringWheat.h:76
pl_sw_growth_regulator2
Definition: PLSpringWheat.h:73
pl_sw_spring_sow
Definition: PLSpringWheat.h:65
pl_sw_straw_chopping
Definition: PLSpringWheat.h:81
pl_sw_harvest
Definition: PLSpringWheat.h:80
PLSpringWheatToDo
PLSpringWheatToDo
Definition: PLSpringWheat.h:41
pl_sw_ferti_p3
Definition: PLSpringWheat.h:52
pl_sw_hay_bailing
Definition: PLSpringWheat.h:82
pl_sw_herbicide1
Definition: PLSpringWheat.h:66
pl_sw_ferti_s11
Definition: PLSpringWheat.h:86
pl_sw_ferti_p6
Definition: PLSpringWheat.h:60
pl_sw_ferti_s5
Definition: PLSpringWheat.h:59
pl_sw_ferti_s9
Definition: PLSpringWheat.h:79
pl_sw_ferti_p4
Definition: PLSpringWheat.h:55
Crop::m_first_date
int m_first_date
Definition: farm.h:540
pl_sw_ferti_s4
Definition: PLSpringWheat.h:56
Crop
The base class for all crops.
Definition: farm.h:534
pl_sw_spring_harrow
Definition: PLSpringWheat.h:57
pl_sw_winter_plough
Definition: PLSpringWheat.h:54
pl_sw_ferti_s3
Definition: PLSpringWheat.h:53
pl_sw_insecticide1
Definition: PLSpringWheat.h:70
PLSpringWheat::PLSpringWheat
PLSpringWheat()
Definition: PLSpringWheat.h:102
pl_sw_fungicide3
Definition: PLSpringWheat.h:69
pl_sw_ferti_p5
Definition: PLSpringWheat.h:58
pl_sw_autumn_harrow2
Definition: PLSpringWheat.h:48
pl_sw_ferti_p7
Definition: PLSpringWheat.h:74
pl_sw_growth_regulator1
Definition: PLSpringWheat.h:72
pl_sw_stubble_plough
Definition: PLSpringWheat.h:46
PLSpringWheat::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: PLSpringWheat.cpp:64
pl_sw_ferti_p1
Definition: PLSpringWheat.h:44
pl_sw_fungicide1
Definition: PLSpringWheat.h:67
pl_sw_preseeding_cultivator_sow
Definition: PLSpringWheat.h:64
pl_sw_ferti_s7
Definition: PLSpringWheat.h:75
pl_sw_fungicide2
Definition: PLSpringWheat.h:68
Farm
The base class for all farm types.
Definition: farm.h:767
pl_sw_ferti_s8
Definition: PLSpringWheat.h:77
pl_sw_stubble_harrow
Definition: PLSpringWheat.h:49
pl_sw_ferti_p9
Definition: PLSpringWheat.h:78
pl_sw_ferti_p2
Definition: PLSpringWheat.h:50
pl_sw_ferti_s10
Definition: PLSpringWheat.h:84
pl_sw_insecticide2
Definition: PLSpringWheat.h:71
PLSpringWheat
PLSpringWheat class .
Definition: PLSpringWheat.h:98
pl_sw_autumn_harrow1
Definition: PLSpringWheat.h:47
pl_sw_start
Definition: PLSpringWheat.h:42
pl_sw_ferti_s6
Definition: PLSpringWheat.h:61
pl_sw_ferti_s2
Definition: PLSpringWheat.h:51