ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
NLPotatoes.h
Go to the documentation of this file.
1
16
//
17
// NLPotatoes.h
18
//
19
20
21
#ifndef NLPOTATOES_H
22
#define NLPOTATOES_H
23
24
#define NLPOTATOES_BASE 25300
25
28
#define NL_POT_HERBI a_field->m_user[1]
29
#define NL_POT_FUNGI1 a_field->m_user[2]
30
#define NL_POT_FUNGI2 a_field->m_user[3]
31
#define NL_POT_FUNGI3 a_field->m_user[4]
32
#define NL_POT_FUNGI4 a_field->m_user[5]
33
#define NL_POT_FUNGI5 a_field->m_user[6]
34
40
typedef
enum
{
41
nl_pot_start
= 1,
// Compulsory, must always be 1 (one).
42
nl_pot_sleep_all_day
=
NLPOTATOES_BASE
,
43
nl_pot_stubble_harrow
,
44
nl_pot_winter_plough_clay
,
45
nl_pot_ferti_p2_clay
,
46
nl_pot_ferti_s2_clay
,
47
nl_pot_ferti_p1_sandy
,
48
nl_pot_ferti_s1_sandy
,
49
nl_pot_spring_plough_sandy
,
50
nl_pot_ferti_p2_sandy
,
51
nl_pot_ferti_s2_sandy
,
52
nl_pot_bed_forming
,
53
nl_pot_spring_planting
,
54
nl_pot_hilling1
,
55
nl_pot_ferti_p3_clay
,
56
nl_pot_ferti_s3_clay
,
57
nl_pot_ferti_p3_sandy
,
58
nl_pot_ferti_s3_sandy
,
59
nl_pot_ferti_p4
,
60
nl_pot_ferti_s4
,
61
nl_pot_herbicide1
,
62
nl_pot_herbicide2
,
63
nl_pot_fungicide1
,
64
nl_pot_fungicide2
,
65
nl_pot_fungicide3
,
66
nl_pot_fungicide4
,
67
nl_pot_fungicide5
,
68
nl_pot_fungicide6
,
69
nl_pot_fungicide7
,
70
nl_pot_fungicide8
,
71
nl_pot_fungicide9
,
72
nl_pot_fungicide10
,
73
nl_pot_fungicide11
,
74
nl_pot_fungicide12
,
75
nl_pot_fungicide13
,
76
nl_pot_fungicide14
,
77
nl_pot_fungicide15
,
78
nl_pot_insecticide
,
79
nl_pot_dessication1
,
80
nl_pot_dessication2
,
81
nl_pot_harvest
,
82
}
NLPotatoesToDo
;
83
84
93
class
NLPotatoes
:
public
Crop
94
{
95
public
:
96
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
97
NLPotatoes
()
98
{
99
// When we start it off, the first possible date for a farm operation is 5th November
100
// This information is used by other crops when they decide how much post processing of
101
// the management is allowed after harvest before the next crop starts.
102
m_first_date
=g_date->DayInYear( 5,11 );
103
}
104
};
105
106
#endif // NLPOTATOES_H
107
nl_pot_ferti_p4
Definition:
NLPotatoes.h:59
NLPotatoesToDo
NLPotatoesToDo
Definition:
NLPotatoes.h:40
nl_pot_ferti_s3_clay
Definition:
NLPotatoes.h:56
nl_pot_stubble_harrow
Definition:
NLPotatoes.h:43
nl_pot_herbicide2
Definition:
NLPotatoes.h:62
NLPotatoes::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:
NLPotatoes.cpp:64
nl_pot_fungicide8
Definition:
NLPotatoes.h:70
nl_pot_ferti_p2_sandy
Definition:
NLPotatoes.h:50
nl_pot_fungicide1
Definition:
NLPotatoes.h:63
nl_pot_harvest
Definition:
NLPotatoes.h:81
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
nl_pot_fungicide9
Definition:
NLPotatoes.h:71
nl_pot_ferti_s4
Definition:
NLPotatoes.h:60
nl_pot_ferti_s2_clay
Definition:
NLPotatoes.h:46
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
nl_pot_herbicide1
Definition:
NLPotatoes.h:61
nl_pot_ferti_p3_clay
Definition:
NLPotatoes.h:55
nl_pot_ferti_s2_sandy
Definition:
NLPotatoes.h:51
Crop
The base class for all crops.
Definition:
farm.h:534
nl_pot_fungicide3
Definition:
NLPotatoes.h:65
nl_pot_winter_plough_clay
Definition:
NLPotatoes.h:44
NLPotatoes
NLPotatoes class .
Definition:
NLPotatoes.h:93
nl_pot_ferti_s1_sandy
Definition:
NLPotatoes.h:48
nl_pot_ferti_p3_sandy
Definition:
NLPotatoes.h:57
nl_pot_dessication2
Definition:
NLPotatoes.h:80
nl_pot_hilling1
Definition:
NLPotatoes.h:54
nl_pot_fungicide4
Definition:
NLPotatoes.h:66
nl_pot_bed_forming
Definition:
NLPotatoes.h:52
nl_pot_spring_plough_sandy
Definition:
NLPotatoes.h:49
nl_pot_start
Definition:
NLPotatoes.h:41
nl_pot_fungicide12
Definition:
NLPotatoes.h:74
nl_pot_fungicide13
Definition:
NLPotatoes.h:75
NLPOTATOES_BASE
#define NLPOTATOES_BASE
Definition:
NLPotatoes.h:24
nl_pot_spring_planting
Definition:
NLPotatoes.h:53
nl_pot_fungicide7
Definition:
NLPotatoes.h:69
Farm
The base class for all farm types.
Definition:
farm.h:767
nl_pot_fungicide10
Definition:
NLPotatoes.h:72
nl_pot_ferti_p1_sandy
Definition:
NLPotatoes.h:47
nl_pot_dessication1
Definition:
NLPotatoes.h:79
nl_pot_fungicide11
Definition:
NLPotatoes.h:73
nl_pot_insecticide
Definition:
NLPotatoes.h:78
nl_pot_fungicide15
Definition:
NLPotatoes.h:77
nl_pot_fungicide6
Definition:
NLPotatoes.h:68
nl_pot_fungicide14
Definition:
NLPotatoes.h:76
nl_pot_ferti_s3_sandy
Definition:
NLPotatoes.h:58
nl_pot_ferti_p2_clay
Definition:
NLPotatoes.h:45
nl_pot_fungicide5
Definition:
NLPotatoes.h:67
nl_pot_fungicide2
Definition:
NLPotatoes.h:64
NLPotatoes::NLPotatoes
NLPotatoes()
Definition:
NLPotatoes.h:97
nl_pot_sleep_all_day
Definition:
NLPotatoes.h:42
Repo
ALMaSS_all
Landscape
cropprogs
NLPotatoes.h
Generated on Wed Oct 2 2019 11:11:19 for ALMaSS Hare ODDox by
1.8.16