ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
PLPotatoes.h
Go to the documentation of this file.
1 
16 //
17 // PLPotatoes.h
18 //
19 
20 
21 #ifndef PLPOTATOES_H
22 #define PLPOTATOES_H
23 
24 #define PLPOTATOES_BASE 20900
25 
28 #define PL_POT_FERTI_P1 a_field->m_user[1]
29 #define PL_POT_FERTI_S1 a_field->m_user[2]
30 #define PL_POT_STUBBLE_PLOUGH a_field->m_user[3]
31 #define PL_POT_DID_STRIG1 a_field->m_user[4]
32 #define PL_POT_DID_STRIG2 a_field->m_user[5]
33 #define PL_POT_DID_STRIG3 a_field->m_user[6]
34 #define PL_POT_HILL_DATE a_field->m_user[7]
35 #define PL_POT_DID_HILL a_field->m_user[8]
36 #define PL_POT_DID_DESS a_field->m_user[9]
37 
43 typedef enum {
44  pl_pot_start = 1, // Compulsory, must always be 1 (one).
53  pl_pot_ferti_s2, //20910
89 
90 
99 class PLPotatoes: public Crop
100 {
101  public:
102  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
104  {
105  // When we start it off, the first possible date for a farm operation is 5th November
106  // This information is used by other crops when they decide how much post processing of
107  // the management is allowed after harvest before the next crop starts.
108  m_first_date=g_date->DayInYear( 5,11 );
109  }
110 };
111 
112 #endif // PLPOTATOES_H
113 
pl_pot_herbicide1
Definition: PLPotatoes.h:69
pl_pot_ferti_s6
Definition: PLPotatoes.h:75
pl_pot_fungicide2
Definition: PLPotatoes.h:79
pl_pot_hilling6
Definition: PLPotatoes.h:72
PLPotatoes::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: PLPotatoes.cpp:64
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
pl_pot_sleep_all_day
Definition: PLPotatoes.h:45
PLPotatoes::PLPotatoes
PLPotatoes()
Definition: PLPotatoes.h:103
PLPotatoes
PLPotatoes class .
Definition: PLPotatoes.h:99
pl_pot_hilling2
Definition: PLPotatoes.h:67
pl_pot_dessication1
Definition: PLPotatoes.h:83
pl_pot_ferti_s5
Definition: PLPotatoes.h:62
pl_pot_harvest
Definition: PLPotatoes.h:85
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
pl_pot_bed_forming
Definition: PLPotatoes.h:64
pl_pot_autumn_harrow1
Definition: PLPotatoes.h:49
pl_pot_ferti_s4
Definition: PLPotatoes.h:59
pl_pot_ferti_p8
Definition: PLPotatoes.h:86
pl_pot_ferti_p3
Definition: PLPotatoes.h:54
pl_pot_spring_plough
Definition: PLPotatoes.h:63
pl_pot_ferti_s7
Definition: PLPotatoes.h:77
pl_pot_autumn_harrow2
Definition: PLPotatoes.h:50
pl_pot_stubble_harrow
Definition: PLPotatoes.h:51
pl_pot_ferti_p2
Definition: PLPotatoes.h:52
pl_pot_fungicide1
Definition: PLPotatoes.h:78
pl_pot_fungicide4
Definition: PLPotatoes.h:81
pl_pot_ferti_p7
Definition: PLPotatoes.h:76
pl_pot_ferti_s1
Definition: PLPotatoes.h:46
pl_pot_start
Definition: PLPotatoes.h:44
pl_pot_hilling1
Definition: PLPotatoes.h:66
pl_pot_insecticide
Definition: PLPotatoes.h:82
pl_pot_herbicide2
Definition: PLPotatoes.h:73
pl_pot_ferti_s8
Definition: PLPotatoes.h:87
pl_pot_ferti_p5
Definition: PLPotatoes.h:61
pl_pot_spring_harrow
Definition: PLPotatoes.h:57
pl_pot_hilling5
Definition: PLPotatoes.h:71
Farm
The base class for all farm types.
Definition: farm.h:767
PLPOTATOES_BASE
#define PLPOTATOES_BASE
Definition: PLPotatoes.h:24
pl_pot_spring_planting
Definition: PLPotatoes.h:65
pl_pot_stubble_plough
Definition: PLPotatoes.h:48
pl_pot_ferti_p1
Definition: PLPotatoes.h:47
PLPotatoesToDo
PLPotatoesToDo
Definition: PLPotatoes.h:43
pl_pot_fungicide3
Definition: PLPotatoes.h:80
pl_pot_winter_plough
Definition: PLPotatoes.h:56
pl_pot_ferti_p4
Definition: PLPotatoes.h:58
pl_pot_ferti_s3
Definition: PLPotatoes.h:55
pl_pot_ferti_p6
Definition: PLPotatoes.h:74
pl_pot_hilling3
Definition: PLPotatoes.h:68
pl_pot_spring_harrow2
Definition: PLPotatoes.h:60
pl_pot_ferti_s2
Definition: PLPotatoes.h:53
pl_pot_hilling4
Definition: PLPotatoes.h:70
pl_pot_dessication2
Definition: PLPotatoes.h:84