ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
PLCarrots.h
Go to the documentation of this file.
1 
16 //
17 // PLCarrots.h
18 //
19 
20 
21 #ifndef PLCarrots_H
22 #define PLCarrots_H
23 
24 #define PLCarrots_BASE 21300
25 
28 #define PL_CA_STUBBLE_PLOUGH a_field->m_user[1]
29 #define PL_CA_WEEDING a_field->m_user[2]
30 #define PL_CA_HERBI a_field->m_user[3]
31 
37 typedef enum {
38  pl_ca_start = 1, // Compulsory, must always be 1 (one).
65 
66 
75 class PLCarrots: public Crop
76 {
77  public:
78  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
80  {
81  // When we start it off, the first possible date for a farm operation is 20th October
82  // This information is used by other crops when they decide how much post processing of
83  // the management is allowed after harvest before the next crop starts.
84  m_first_date=g_date->DayInYear( 5,11 );
85  }
86 };
87 
88 #endif // PLCarrots_H
89 
pl_ca_spring_sow
Definition: PLCarrots.h:52
pl_ca_ferti_s1
Definition: PLCarrots.h:45
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
PLCarrotsToDo
PLCarrotsToDo
Definition: PLCarrots.h:37
pl_ca_ferti_p1
Definition: PLCarrots.h:44
pl_ca_ferti_p2
Definition: PLCarrots.h:47
pl_ca_ferti_s2
Definition: PLCarrots.h:48
pl_ca_winter_plough
Definition: PLCarrots.h:46
PLCarrots_BASE
#define PLCarrots_BASE
Definition: PLCarrots.h:24
PLCarrots::PLCarrots
PLCarrots()
Definition: PLCarrots.h:79
pl_ca_autumn_harrow1
Definition: PLCarrots.h:41
pl_ca_start
Definition: PLCarrots.h:38
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
pl_ca_strigling
Definition: PLCarrots.h:53
pl_ca_spring_harrow
Definition: PLCarrots.h:49
pl_ca_ferti_s3
Definition: PLCarrots.h:60
pl_ca_stubble_harrow
Definition: PLCarrots.h:43
pl_ca_herbicide3
Definition: PLCarrots.h:56
pl_ca_ferti_s4
Definition: PLCarrots.h:63
pl_ca_ferti_p4
Definition: PLCarrots.h:62
pl_ca_fungicide2
Definition: PLCarrots.h:58
pl_ca_preseeding_cultivator
Definition: PLCarrots.h:50
pl_ca_bed_forming
Definition: PLCarrots.h:51
pl_ca_herbicide1
Definition: PLCarrots.h:54
pl_ca_fungicide1
Definition: PLCarrots.h:57
PLCarrots::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: PLCarrots.cpp:64
pl_ca_harvest
Definition: PLCarrots.h:61
Farm
The base class for all farm types.
Definition: farm.h:767
pl_ca_autumn_harrow2
Definition: PLCarrots.h:42
pl_ca_ferti_p3
Definition: PLCarrots.h:59
PLCarrots
PLCarrots class .
Definition: PLCarrots.h:75
pl_ca_stubble_plough
Definition: PLCarrots.h:40
pl_ca_sleep_all_day
Definition: PLCarrots.h:39
pl_ca_herbicide2
Definition: PLCarrots.h:55