ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
NLWinterWheat.h
Go to the documentation of this file.
1 
16 //
17 // NLWinterWheat.h
18 //
19 
20 
21 #ifndef NLWINTERWHEAT_H
22 #define NLWINTERWHEAT_H
23 
24 #define NLWINTERWHEAT_BASE 25400
25 
34 typedef enum {
35  nl_ww_start = 1, // Compulsory, must always be 1 (one).
43  nl_ww_ferti_p1, // slurry
51  nl_ww_ferti_p5, // NIII
66 
67 
76 class NLWinterWheat: public Crop
77 {
78  public:
79  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
81  {
82  // When we start it off, the first possible date for a farm operation is 15th September
83  // This information is used by other crops when they decide how much post processing of
84  // the management is allowed after harvest before the next crop starts.
85  m_first_date=g_date->DayInYear( 10,10 );
86  }
87 };
88 
89 #endif // NLWINTERWHEAT_H
90 
nl_ww_sleep_all_day
Definition: NLWinterWheat.h:36
NLWinterWheat1ToDo
NLWinterWheat1ToDo
A flag used to indicate autumn ploughing status.
Definition: NLWinterWheat.h:34
nl_ww_start
Definition: NLWinterWheat.h:35
nl_ww_autumn_plough
Definition: NLWinterWheat.h:40
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
nl_ww_ferti_s1
Definition: NLWinterWheat.h:44
nl_ww_ferti_s4
Definition: NLWinterWheat.h:50
nl_ww_fungicide2
Definition: NLWinterWheat.h:55
nl_ww_ferti_p4
Definition: NLWinterWheat.h:49
nl_ww_ferti_s5
Definition: NLWinterWheat.h:52
nl_ww_growth_regulator1
Definition: NLWinterWheat.h:59
nl_ww_fungicide1
Definition: NLWinterWheat.h:54
nl_ww_harvest
Definition: NLWinterWheat.h:62
Crop::m_first_date
int m_first_date
Definition: farm.h:540
nl_ww_desiccation
Definition: NLWinterWheat.h:61
Crop
The base class for all crops.
Definition: farm.h:534
nl_ww_straw_chopping
Definition: NLWinterWheat.h:63
nl_ww_mole_plough
Definition: NLWinterWheat.h:39
NLWinterWheat
NLWinterWheat class .
Definition: NLWinterWheat.h:76
NLWINTERWHEAT_BASE
#define NLWINTERWHEAT_BASE
Definition: NLWinterWheat.h:24
nl_ww_ferti_p5
Definition: NLWinterWheat.h:51
nl_ww_preseeding_cultivator_sow
Definition: NLWinterWheat.h:41
nl_ww_insecticide2
Definition: NLWinterWheat.h:58
nl_ww_stubble_cultivator
Definition: NLWinterWheat.h:37
nl_ww_ferti_p2
Definition: NLWinterWheat.h:45
nl_ww_hay_bailing
Definition: NLWinterWheat.h:64
NLWinterWheat::NLWinterWheat
NLWinterWheat()
Definition: NLWinterWheat.h:80
nl_ww_ferti_p1
Definition: NLWinterWheat.h:43
NLWinterWheat::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: NLWinterWheat.cpp:64
nl_ww_ferti_p3
Definition: NLWinterWheat.h:47
nl_ww_insecticide1
Definition: NLWinterWheat.h:57
nl_ww_growth_regulator2
Definition: NLWinterWheat.h:60
Farm
The base class for all farm types.
Definition: farm.h:767
nl_ww_herbicide3
Definition: NLWinterWheat.h:53
nl_ww_herbicide2
Definition: NLWinterWheat.h:42
nl_ww_ferti_s2
Definition: NLWinterWheat.h:46
nl_ww_ferti_s3
Definition: NLWinterWheat.h:48
nl_ww_herbicide1
Definition: NLWinterWheat.h:38
nl_ww_fungicide3
Definition: NLWinterWheat.h:56