ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
PLWinterRye.h
Go to the documentation of this file.
1 
16 //
17 // PLWinterRye.h
18 //
19 
20 
21 #ifndef PLWINTERRYE_H
22 #define PLWINTERRYE_H
23 
24 #define PLWINTERRYE_BASE 20400
25 
28 #define PL_WRYE_FERTI_P1 a_field->m_user[1]
29 #define PL_WRYE_FERTI_S1 a_field->m_user[2]
30 #define PL_WRYE_STUBBLE_PLOUGH a_field->m_user[3]
31 
37 typedef enum {
38  pl_wrye_start = 1, // Compulsory, must always be 1 (one).
40  pl_wrye_ferti_p1, // 20401
59  pl_wrye_ferti_s4, // 20420
69  pl_wrye_ferti_s9, // 20430
81 
82 
91 class PLWinterRye: public Crop
92 {
93  public:
94  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
96  {
97  // When we start it off, the first possible date for a farm operation is 15th September
98  // This information is used by other crops when they decide how much post processing of
99  // the management is allowed after harvest before the next crop starts.
100  m_first_date=g_date->DayInYear( 15,9 );
101  }
102 };
103 
104 #endif // PLWINTERRYE_H
105 
pl_wrye_ferti_s1
Definition: PLWinterRye.h:41
pl_wrye_ferti_s7
Definition: PLWinterRye.h:65
pl_wrye_growth_regulator1
Definition: PLWinterRye.h:72
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
pl_wrye_autumn_harrow1
Definition: PLWinterRye.h:43
pl_wrye_ferti_s4
Definition: PLWinterRye.h:59
pl_wrye_ferti_p9
Definition: PLWinterRye.h:68
pl_wrye_ferti_p7
Definition: PLWinterRye.h:64
pl_wrye_ferti_p8
Definition: PLWinterRye.h:66
pl_wrye_ferti_p11
Definition: PLWinterRye.h:78
pl_wrye_harvest
Definition: PLWinterRye.h:73
pl_wrye_ferti_s2
Definition: PLWinterRye.h:47
Crop::m_first_date
int m_first_date
Definition: farm.h:540
pl_wrye_autumn_sow
Definition: PLWinterRye.h:55
pl_wrye_sleep_all_day
Definition: PLWinterRye.h:39
pl_wrye_autumn_harrow2
Definition: PLWinterRye.h:44
Crop
The base class for all crops.
Definition: farm.h:534
pl_wrye_autumn_plough
Definition: PLWinterRye.h:48
pl_wrye_preseeding_cultivator_sow
Definition: PLWinterRye.h:54
pl_wrye_ferti_p6
Definition: PLWinterRye.h:62
pl_wrye_stubble_harrow
Definition: PLWinterRye.h:45
pl_wrye_ferti_p4
Definition: PLWinterRye.h:58
pl_wrye_ferti_s5
Definition: PLWinterRye.h:61
pl_wrye_ferti_s11
Definition: PLWinterRye.h:79
PLWinterRye::PLWinterRye
PLWinterRye()
Definition: PLWinterRye.h:95
pl_wrye_stubble_cultivator_heavy
Definition: PLWinterRye.h:50
pl_wrye_ferti_s6
Definition: PLWinterRye.h:63
pl_wrye_start
Definition: PLWinterRye.h:38
pl_wrye_herbicide2
Definition: PLWinterRye.h:70
pl_wrye_herbicide1
Definition: PLWinterRye.h:56
pl_wrye_ferti_s3
Definition: PLWinterRye.h:52
pl_wrye_fungicide1
Definition: PLWinterRye.h:57
pl_wrye_fungicide2
Definition: PLWinterRye.h:71
pl_wrye_stubble_plough
Definition: PLWinterRye.h:42
PLWinterRye::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: PLWinterRye.cpp:64
PLWINTERRYE_BASE
#define PLWINTERRYE_BASE
Definition: PLWinterRye.h:24
pl_wrye_straw_chopping
Definition: PLWinterRye.h:74
pl_wrye_ferti_p2
Definition: PLWinterRye.h:46
pl_wrye_ferti_s8
Definition: PLWinterRye.h:67
Farm
The base class for all farm types.
Definition: farm.h:767
pl_wrye_preseeding_cultivator
Definition: PLWinterRye.h:53
PLWinterRye
PLWinterRye class .
Definition: PLWinterRye.h:91
PLWinterRyeToDo
PLWinterRyeToDo
Definition: PLWinterRye.h:37
pl_wrye_hay_bailing
Definition: PLWinterRye.h:75
pl_wrye_ferti_p1
Definition: PLWinterRye.h:40
pl_wrye_ferti_p3
Definition: PLWinterRye.h:51
pl_wrye_ferti_p5
Definition: PLWinterRye.h:60
pl_wrye_ferti_s10
Definition: PLWinterRye.h:77
pl_wrye_autumn_roll
Definition: PLWinterRye.h:49
pl_wrye_ferti_p10
Definition: PLWinterRye.h:76
pl_wrye_ferti_s9
Definition: PLWinterRye.h:69