ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
PLBeet.h
Go to the documentation of this file.
1 
16 //
17 // PLBeet.h
18 //
19 
20 
21 #ifndef PLBEET_H
22 #define PLBEET_H
23 
24 #define PLBEET_BASE 21000
25 
28 #define PL_BE_FERTI_P1 a_field->m_user[1]
29 #define PL_BE_FERTI_S1 a_field->m_user[2]
30 #define PL_BE_STUBBLE_PLOUGH a_field->m_user[3]
31 #define PL_BE_WINTER_PLOUGH a_field->m_user[4]
32 #define PL_BE_SPRING_FERTI a_field->m_user[5]
33 #define PL_BE_WATER_DATE a_field->m_user[6]
34 #define PL_BE_HERBI_DATE a_field->m_user[7]
35 #define PL_BE_HERBI1 a_field->m_user[8]
36 #define PL_BE_HERBI3 a_field->m_user[9]
37 
38 
44 typedef enum {
45  pl_be_start = 1, // Compulsory, must always be 1 (one).
87 } PLBeetToDo;
88 
89 
98 class PLBeet: 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 20th October
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 // PLBEET_H
112 
pl_be_heavy_cultivator
Definition: PLBeet.h:64
pl_be_ferti_s8
Definition: PLBeet.h:86
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
pl_be_ferti_s5
Definition: PLBeet.h:63
pl_be_ferti_p2
Definition: PLBeet.h:53
pl_be_herbicide3
Definition: PLBeet.h:75
pl_be_stubble_plough
Definition: PLBeet.h:49
pl_be_ferti_p5
Definition: PLBeet.h:62
pl_be_watering3
Definition: PLBeet.h:72
pl_be_ferti_s3
Definition: PLBeet.h:56
pl_be_stubble_harrow
Definition: PLBeet.h:52
pl_be_ferti_p4
Definition: PLBeet.h:60
Crop::m_first_date
int m_first_date
Definition: farm.h:540
PLBEET_BASE
#define PLBEET_BASE
Definition: PLBeet.h:24
pl_be_ferti_p6
Definition: PLBeet.h:80
pl_be_autumn_harrow1
Definition: PLBeet.h:50
Crop
The base class for all crops.
Definition: farm.h:534
pl_be_ferti_s4
Definition: PLBeet.h:61
pl_be_herbicide1
Definition: PLBeet.h:73
pl_be_ferti_p1
Definition: PLBeet.h:47
pl_be_thinning
Definition: PLBeet.h:69
pl_be_winter_stubble_cultivator_heavy
Definition: PLBeet.h:58
PLBeetToDo
PLBeetToDo
Definition: PLBeet.h:44
pl_be_ferti_s6
Definition: PLBeet.h:81
pl_be_watering1
Definition: PLBeet.h:70
pl_be_ferti_p3
Definition: PLBeet.h:55
pl_be_preseeding_cultivator_sow
Definition: PLBeet.h:66
pl_be_ferti_s2
Definition: PLBeet.h:54
pl_be_sleep_all_day
Definition: PLBeet.h:46
pl_be_fungicide2
Definition: PLBeet.h:78
pl_be_spring_sow
Definition: PLBeet.h:67
pl_be_ferti_s1
Definition: PLBeet.h:48
pl_be_spring_harrow
Definition: PLBeet.h:59
pl_be_herbicide2
Definition: PLBeet.h:74
pl_be_harrow_before_emergence
Definition: PLBeet.h:68
pl_be_start
Definition: PLBeet.h:45
pl_be_winter_plough
Definition: PLBeet.h:57
pl_be_insecticide
Definition: PLBeet.h:79
pl_be_ferti_s7
Definition: PLBeet.h:83
pl_be_preseeding_cultivator
Definition: PLBeet.h:65
PLBeet::PLBeet
PLBeet()
Definition: PLBeet.h:102
PLBeet
PLBeet class .
Definition: PLBeet.h:98
pl_be_ferti_p8
Definition: PLBeet.h:85
Farm
The base class for all farm types.
Definition: farm.h:767
pl_be_herbicide4
Definition: PLBeet.h:76
pl_be_ferti_p7
Definition: PLBeet.h:82
pl_be_harvest
Definition: PLBeet.h:84
pl_be_watering2
Definition: PLBeet.h:71
pl_be_fungicide1
Definition: PLBeet.h:77
PLBeet::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: PLBeet.cpp:64
pl_be_autumn_harrow2
Definition: PLBeet.h:51