ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
PLWinterRape.h
Go to the documentation of this file.
1 
16 //
17 // PLWinterRape.h
18 //
19 
20 
21 #ifndef PLWinterRape_H
22 #define PLWinterRape_H
23 
24 #define PLWinterRape_BASE 20100
25 
28 #define PL_WR_FERTI_P1 a_field->m_user[1]
29 #define PL_WR_FERTI_S1 a_field->m_user[2]
30 #define PL_WR_STUBBLE_PLOUGH a_field->m_user[3]
31 #define PL_WR_DECIDE_TO_GR a_field->m_user[4]
32 
38 typedef enum {
39  pl_wr_start = 1, // Compulsory, must always be 1 (one).
41  pl_wr_ferti_p1, // 20101
70  pl_wr_ferti_p7, //201030
88  pl_wr_ferti_s10, //20148
90 
91 
100 class PLWinterRape: public Crop
101 {
102  public:
103  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
105  {
106  // When we start it off, the first possible date for a farm operation is 15th August
107  // This information is used by other crops when they decide how much post processing of
108  // the management is allowed after harvest before the next crop starts.
109  m_first_date=g_date->DayInYear( 20,8 );
110  }
111 };
112 
113 #endif // PLWinterRape_H
114 
pl_wr_fungicide2
Definition: PLWinterRape.h:75
pl_wr_autumn_roll
Definition: PLWinterRape.h:50
pl_wr_ferti_s1
Definition: PLWinterRape.h:42
pl_wr_autumn_harrow1
Definition: PLWinterRape.h:44
pl_wr_ferti_p1
Definition: PLWinterRape.h:41
pl_wr_ferti_p3
Definition: PLWinterRape.h:52
pl_wr_ferti_p7
Definition: PLWinterRape.h:70
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
pl_wr_ferti_s6
Definition: PLWinterRape.h:69
pl_wr_herbicide2
Definition: PLWinterRape.h:58
pl_wr_insecticide5
Definition: PLWinterRape.h:79
pl_wr_ferti_p6
Definition: PLWinterRape.h:68
pl_wr_ferti_p9
Definition: PLWinterRape.h:85
PLWinterRape
PLWinterRape class .
Definition: PLWinterRape.h:100
pl_wr_preseeding_cultivator
Definition: PLWinterRape.h:54
pl_wr_ferti_p5
Definition: PLWinterRape.h:66
pl_wr_insecticide4
Definition: PLWinterRape.h:78
pl_wr_start
Definition: PLWinterRape.h:39
pl_wr_ferti_p8
Definition: PLWinterRape.h:72
PLWinterRape::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: PLWinterRape.cpp:64
pl_wr_fungicide1
Definition: PLWinterRape.h:59
Crop::m_first_date
int m_first_date
Definition: farm.h:540
pl_wr_autumn_harrow3
Definition: PLWinterRape.h:55
pl_wr_molluscicide
Definition: PLWinterRape.h:63
Crop
The base class for all crops.
Definition: farm.h:534
PLWinterRapeToDo
PLWinterRapeToDo
Definition: PLWinterRape.h:38
pl_wr_insecticide1
Definition: PLWinterRape.h:60
pl_wr_insecticide2
Definition: PLWinterRape.h:61
pl_wr_ferti_p10
Definition: PLWinterRape.h:87
pl_wr_sleep_all_day
Definition: PLWinterRape.h:40
pl_wr_harvest
Definition: PLWinterRape.h:82
pl_wr_herbicide4
Definition: PLWinterRape.h:81
pl_wr_autumn_harrow2
Definition: PLWinterRape.h:45
pl_wr_insecticide6
Definition: PLWinterRape.h:80
pl_wr_ferti_s7
Definition: PLWinterRape.h:71
pl_wr_autumn_sow
Definition: PLWinterRape.h:56
pl_wr_fungicide3
Definition: PLWinterRape.h:76
pl_wr_ferti_s3
Definition: PLWinterRape.h:53
pl_wr_stubble_cultivator_heavy
Definition: PLWinterRape.h:51
PLWinterRape::PLWinterRape
PLWinterRape()
Definition: PLWinterRape.h:104
pl_wr_herbicide3
Definition: PLWinterRape.h:74
pl_wr_ferti_s8
Definition: PLWinterRape.h:73
pl_wr_stubble_plough
Definition: PLWinterRape.h:43
pl_wr_stubble_harrow
Definition: PLWinterRape.h:46
pl_wr_ferti_s4
Definition: PLWinterRape.h:65
pl_wr_ferti_s10
Definition: PLWinterRape.h:88
pl_wr_ferti_p2
Definition: PLWinterRape.h:47
Farm
The base class for all farm types.
Definition: farm.h:767
pl_wr_herbicide1
Definition: PLWinterRape.h:57
pl_wr_fungicide4
Definition: PLWinterRape.h:77
PLWinterRape_BASE
#define PLWinterRape_BASE
Definition: PLWinterRape.h:24
pl_wr_ferti_s5
Definition: PLWinterRape.h:67
pl_wr_straw_chopping
Definition: PLWinterRape.h:83
pl_wr_autumn_plough
Definition: PLWinterRape.h:49
pl_wr_ferti_p4
Definition: PLWinterRape.h:64
pl_wr_ferti_s2
Definition: PLWinterRape.h:48
pl_wr_hay_bailing
Definition: PLWinterRape.h:84
pl_wr_ferti_s9
Definition: PLWinterRape.h:86
pl_wr_insecticide3
Definition: PLWinterRape.h:62