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).
40
nl_pgg_sleep_all_day
=
NLPERMANENTGRASSLANDGRAZED_BASE
,
41
nl_pgg_ferti_p1
,
42
nl_pgg_ferti_s1
,
43
nl_pgg_cut_to_silage1
,
44
nl_pgg_cut_to_silage2
,
45
nl_pgg_cut_to_silage3
,
46
nl_pgg_cut_to_silage4
,
47
nl_pgg_cut_to_silage5
,
48
nl_pgg_cut_to_silage6
,
49
nl_pgg_ferti_p2
,
50
nl_pgg_ferti_s2
,
51
nl_pgg_ferti_p3
,
52
nl_pgg_ferti_s3
,
53
nl_pgg_ferti_p4
,
54
nl_pgg_ferti_s4
,
55
nl_pgg_ferti_p5
,
56
nl_pgg_ferti_s5
,
57
nl_pgg_ferti_p6
,
58
nl_pgg_ferti_s6
,
59
nl_pgg_ferti_p7
,
60
nl_pgg_ferti_s7
,
61
nl_pgg_ferti_p8
,
62
nl_pgg_ferti_s8
,
63
nl_pgg_ferti_p9
,
64
nl_pgg_ferti_s9
,
65
nl_pgg_ferti_p10
,
66
nl_pgg_ferti_s10
,
67
nl_pgg_ferti_p11
,
68
nl_pgg_ferti_s11
,
69
nl_pgg_watering
,
70
nl_pgg_cattle_out
,
71
nl_pgg_cattle_is_out
,
72
}
NLPermanentGrassGrazedToDo
;
73
74
83
class
NLPermanentGrassGrazed
:
public
Crop
84
{
85
public
:
86
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
87
NLPermanentGrassGrazed
()
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
Repo
ALMaSS_all
Landscape
cropprogs
NLPermanentGrassGrazed.h
Generated on Wed Oct 2 2019 11:11:19 for ALMaSS Hare ODDox by
1.8.16