ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
NLPermanentGrassGrazed.h
Go to the documentation of this file.
1 
16 //
17 // NLPermanentGrassGrazed.h
18 //
19 
20 
21 #ifndef NLPERMANENTGRASSLANDGRAZED_H
22 #define NLPERMANENTGRASSLANDGRAZED_H
23 
24 #define NLPERMANENTGRASSLANDGRAZED_BASE 26000
25 
28 #define NL_PGG_FERTI_DATE a_field->m_user[1]
29 #define NL_PGG_CUT_DATE a_field->m_user[2]
30 #define NL_PGG_WATER_DATE a_field->m_user[3]
31 
32 
38 typedef enum {
39  nl_pgg_start = 1, // Compulsory, must always be 1 (one).
73 
74 
84 {
85  public:
86  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
88  {
89  // When we start it off, the first possible date for a farm operation is 5th November
90  // This information is used by other crops when they decide how much post processing of
91  // the management is allowed after harvest before the next crop starts.
92  m_first_date=g_date->DayInYear( 30,3 );
93  }
94 };
95 
96 #endif // NLPERMANENTGRASSLANDGRAZED_H
97 
nl_pgg_ferti_p10
Definition: NLPermanentGrassGrazed.h:65
nl_pgg_cut_to_silage5
Definition: NLPermanentGrassGrazed.h:47
NLPermanentGrassGrazedToDo
NLPermanentGrassGrazedToDo
Definition: NLPermanentGrassGrazed.h:38
nl_pgg_ferti_p2
Definition: NLPermanentGrassGrazed.h:49
nl_pgg_ferti_s5
Definition: NLPermanentGrassGrazed.h:56
nl_pgg_ferti_s3
Definition: NLPermanentGrassGrazed.h:52
nl_pgg_ferti_p3
Definition: NLPermanentGrassGrazed.h:51
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
nl_pgg_ferti_s8
Definition: NLPermanentGrassGrazed.h:62
nl_pgg_ferti_p1
Definition: NLPermanentGrassGrazed.h:41
nl_pgg_ferti_s4
Definition: NLPermanentGrassGrazed.h:54
nl_pgg_ferti_s10
Definition: NLPermanentGrassGrazed.h:66
NLPERMANENTGRASSLANDGRAZED_BASE
#define NLPERMANENTGRASSLANDGRAZED_BASE
Definition: NLPermanentGrassGrazed.h:24
nl_pgg_cut_to_silage3
Definition: NLPermanentGrassGrazed.h:45
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
nl_pgg_ferti_p11
Definition: NLPermanentGrassGrazed.h:67
nl_pgg_ferti_s9
Definition: NLPermanentGrassGrazed.h:64
nl_pgg_ferti_p8
Definition: NLPermanentGrassGrazed.h:61
nl_pgg_ferti_s6
Definition: NLPermanentGrassGrazed.h:58
NLPermanentGrassGrazed::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: NLPermanentGrassGrazed.cpp:54
nl_pgg_ferti_s2
Definition: NLPermanentGrassGrazed.h:50
nl_pgg_watering
Definition: NLPermanentGrassGrazed.h:69
nl_pgg_cattle_is_out
Definition: NLPermanentGrassGrazed.h:71
nl_pgg_ferti_p6
Definition: NLPermanentGrassGrazed.h:57
NLPermanentGrassGrazed::NLPermanentGrassGrazed
NLPermanentGrassGrazed()
Definition: NLPermanentGrassGrazed.h:87
nl_pgg_cut_to_silage2
Definition: NLPermanentGrassGrazed.h:44
nl_pgg_sleep_all_day
Definition: NLPermanentGrassGrazed.h:40
nl_pgg_ferti_s7
Definition: NLPermanentGrassGrazed.h:60
Farm
The base class for all farm types.
Definition: farm.h:767
nl_pgg_ferti_p9
Definition: NLPermanentGrassGrazed.h:63
nl_pgg_ferti_p7
Definition: NLPermanentGrassGrazed.h:59
nl_pgg_cut_to_silage4
Definition: NLPermanentGrassGrazed.h:46
NLPermanentGrassGrazed
NLPermanentGrassGrazed class .
Definition: NLPermanentGrassGrazed.h:83
nl_pgg_ferti_p4
Definition: NLPermanentGrassGrazed.h:53
nl_pgg_start
Definition: NLPermanentGrassGrazed.h:39
nl_pgg_ferti_p5
Definition: NLPermanentGrassGrazed.h:55
nl_pgg_cut_to_silage6
Definition: NLPermanentGrassGrazed.h:48
nl_pgg_ferti_s1
Definition: NLPermanentGrassGrazed.h:42
nl_pgg_cut_to_silage1
Definition: NLPermanentGrassGrazed.h:43
nl_pgg_cattle_out
Definition: NLPermanentGrassGrazed.h:70
nl_pgg_ferti_s11
Definition: NLPermanentGrassGrazed.h:68