ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
PLSpringBarley.h
Go to the documentation of this file.
1 
16 //
17 // PLSpringBarley.h
18 //
19 
20 
21 #ifndef PLSPRINGBARLEY_H
22 #define PLSPRINGBARLEY_H
23 
24 #define PLSPRINGBARLEY_BASE 20600
25 
28 #define PL_SB_FERTI_P1 a_field->m_user[1]
29 #define PL_SB_FERTI_S1 a_field->m_user[2]
30 #define PL_SB_STUBBLE_PLOUGH a_field->m_user[3]
31 #define PL_SB_FERTI_P4 a_field->m_user[4]
32 #define PL_SB_FERTI_S4 a_field->m_user[5]
33 #define PL_SB_SPRING_FERTI a_field->m_user[6]
34 #define PL_SB_DECIDE_TO_GR a_field->m_user[7]
35 
41 typedef enum {
42  pl_sb_start = 1, // Compulsory, must always be 1 (one).
44  pl_sb_ferti_p1, // 20601
53  pl_sb_ferti_s3, // 20610
72  pl_sb_ferti_p7, // 20630
82  pl_sb_ferti_s10, // 20640
84 
85 
94 class PLSpringBarley: public Crop
95 {
96  public:
97  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
99  {
100  // When we start it off, the first possible date for a farm operation is 5th November
101  // This information is used by other crops when they decide how much post processing of
102  // the management is allowed after harvest before the next crop starts.
103  m_first_date=g_date->DayInYear( 5,11 );
104  }
105 };
106 
107 #endif // PLSPRINGBARLEY_H
108 
pl_sb_ferti_s5
Definition: PLSpringBarley.h:59
pl_sb_ferti_p10
Definition: PLSpringBarley.h:81
PLSpringBarley::PLSpringBarley
PLSpringBarley()
Definition: PLSpringBarley.h:98
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
pl_sb_winter_plough
Definition: PLSpringBarley.h:54
pl_sb_ferti_p1
Definition: PLSpringBarley.h:44
pl_sb_spring_harrow
Definition: PLSpringBarley.h:57
PLSpringBarley::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: PLSpringBarley.cpp:64
pl_sb_harvest
Definition: PLSpringBarley.h:76
pl_sb_preseeding_cultivator
Definition: PLSpringBarley.h:61
pl_sb_ferti_s8
Definition: PLSpringBarley.h:75
pl_sb_ferti_p9
Definition: PLSpringBarley.h:79
pl_sb_preseeding_cultivator_sow
Definition: PLSpringBarley.h:62
pl_sb_ferti_p6
Definition: PLSpringBarley.h:70
Crop::m_first_date
int m_first_date
Definition: farm.h:540
pl_sb_ferti_p7
Definition: PLSpringBarley.h:72
pl_sb_autumn_harrow1
Definition: PLSpringBarley.h:47
Crop
The base class for all crops.
Definition: farm.h:534
pl_sb_ferti_s3
Definition: PLSpringBarley.h:53
pl_sb_fungicide2
Definition: PLSpringBarley.h:66
pl_sb_ferti_s1
Definition: PLSpringBarley.h:45
pl_sb_start
Definition: PLSpringBarley.h:42
pl_sb_ferti_p8
Definition: PLSpringBarley.h:74
pl_sb_herbicide1
Definition: PLSpringBarley.h:64
pl_sb_ferti_p3
Definition: PLSpringBarley.h:52
pl_sb_spring_sow
Definition: PLSpringBarley.h:63
pl_sb_ferti_p2
Definition: PLSpringBarley.h:50
pl_sb_stubble_harrow
Definition: PLSpringBarley.h:49
pl_sb_insecticide2
Definition: PLSpringBarley.h:69
pl_sb_stubble_plough
Definition: PLSpringBarley.h:46
pl_sb_fungicide3
Definition: PLSpringBarley.h:67
pl_sb_ferti_s2
Definition: PLSpringBarley.h:51
pl_sb_autumn_harrow2
Definition: PLSpringBarley.h:48
pl_sb_ferti_s7
Definition: PLSpringBarley.h:73
PLSpringBarley
PLSpringBarley class .
Definition: PLSpringBarley.h:94
Farm
The base class for all farm types.
Definition: farm.h:767
pl_sb_insecticide1
Definition: PLSpringBarley.h:68
PLSpringBarleyToDo
PLSpringBarleyToDo
Definition: PLSpringBarley.h:41
PLSPRINGBARLEY_BASE
#define PLSPRINGBARLEY_BASE
Definition: PLSpringBarley.h:24
pl_sb_fungicide1
Definition: PLSpringBarley.h:65
pl_sb_ferti_s6
Definition: PLSpringBarley.h:71
pl_sb_heavy_cultivator
Definition: PLSpringBarley.h:60
pl_sb_ferti_s4
Definition: PLSpringBarley.h:56
pl_sb_ferti_p5
Definition: PLSpringBarley.h:58
pl_sb_sleep_all_day
Definition: PLSpringBarley.h:43
pl_sb_hay_bailing
Definition: PLSpringBarley.h:78
pl_sb_ferti_p4
Definition: PLSpringBarley.h:55
pl_sb_straw_chopping
Definition: PLSpringBarley.h:77
pl_sb_ferti_s10
Definition: PLSpringBarley.h:82
pl_sb_ferti_s9
Definition: PLSpringBarley.h:80