ALMaSS Vole ODDox  1.1
The vole model description following ODdox protocol
PLBeetSpr.h
Go to the documentation of this file.
1 
16 //
17 // PLBeetSpr.h
18 //
19 
20 
21 #ifndef PLBEETSPR_H
22 #define PLBEETSPR_H
23 
24 #define PLBEETSPR_BASE 21600
25 
28 #define PL_BES_SPRING_FERTI a_field->m_user[1]
29 #define PL_BES_WATER_DATE a_field->m_user[2]
30 #define PL_BES_HERBI_DATE a_field->m_user[3]
31 #define PL_BES_HERBI1 a_field->m_user[4]
32 #define PL_BES_HERBI3 a_field->m_user[5]
33 
34 
40 typedef enum {
41  pl_bes_start = 1, // Compulsory, must always be 1 (one).
73 
74 
83 class PLBeetSpr: public Crop
84 {
85  public:
86  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
88  {
89  m_first_date=g_date->DayInYear( 31,3 );
90  }
91 };
92 
93 #endif // PLBEETSPR_H
94 
pl_bes_herbicide4
Definition: PLBeetSpr.h:61
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
pl_bes_spring_plough
Definition: PLBeetSpr.h:43
pl_bes_watering2
Definition: PLBeetSpr.h:56
PLBeetSpr
PLBeetSpr class .
Definition: PLBeetSpr.h:83
pl_bes_heavy_cultivator
Definition: PLBeetSpr.h:49
pl_bes_ferti_s5
Definition: PLBeetSpr.h:48
pl_bes_watering1
Definition: PLBeetSpr.h:55
Crop::m_first_date
int m_first_date
Definition: farm.h:540
pl_bes_ferti_s6
Definition: PLBeetSpr.h:66
Crop
The base class for all crops.
Definition: farm.h:534
PLBeetSpr::PLBeetSpr
PLBeetSpr()
Definition: PLBeetSpr.h:87
PLBEETSPR_BASE
#define PLBEETSPR_BASE
Definition: PLBeetSpr.h:24
pl_bes_ferti_p6
Definition: PLBeetSpr.h:65
pl_bes_insecticide
Definition: PLBeetSpr.h:64
pl_bes_herbicide1
Definition: PLBeetSpr.h:58
pl_bes_start
Definition: PLBeetSpr.h:41
pl_bes_spring_sow
Definition: PLBeetSpr.h:52
pl_bes_watering3
Definition: PLBeetSpr.h:57
pl_bes_ferti_p7
Definition: PLBeetSpr.h:67
pl_bes_ferti_p5
Definition: PLBeetSpr.h:47
PLBeetSprToDo
PLBeetSprToDo
Definition: PLBeetSpr.h:40
pl_bes_preseeding_cultivator_sow
Definition: PLBeetSpr.h:51
pl_bes_sleep_all_day
Definition: PLBeetSpr.h:42
pl_bes_ferti_p4
Definition: PLBeetSpr.h:45
pl_bes_herbicide2
Definition: PLBeetSpr.h:59
pl_bes_fungicide1
Definition: PLBeetSpr.h:62
pl_bes_thinning
Definition: PLBeetSpr.h:54
pl_bes_ferti_s7
Definition: PLBeetSpr.h:68
pl_bes_ferti_p8
Definition: PLBeetSpr.h:70
pl_bes_harvest
Definition: PLBeetSpr.h:69
pl_bes_spring_harrow
Definition: PLBeetSpr.h:44
pl_bes_ferti_s8
Definition: PLBeetSpr.h:71
Farm
The base class for all farm types.
Definition: farm.h:767
pl_bes_harrow_before_emergence
Definition: PLBeetSpr.h:53
pl_bes_ferti_s4
Definition: PLBeetSpr.h:46
pl_bes_herbicide3
Definition: PLBeetSpr.h:60
pl_bes_preseeding_cultivator
Definition: PLBeetSpr.h:50
PLBeetSpr::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: PLBeetSpr.cpp:64
pl_bes_fungicide2
Definition: PLBeetSpr.h:63