ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
NLTulips.h
Go to the documentation of this file.
1
16
//
17
// NLTulips.h
18
//
19
20
21
#ifndef NLTULIPS_H
22
#define NLTULIPS_H
23
24
#define NLTULIPS_BASE 25700
25
28
#define NL_TU_AUTUMN_PLOUGH a_field->m_user[1]
29
#define NL_TU_FERTI_DONE a_field->m_user[2]
30
#define NL_TU_STRAW_REMOVED a_field->m_user[3]
31
#define NL_TU_FUNGI_SPRAY_DATE a_field->m_user[4]
32
38
typedef
enum
{
39
nl_tu_start
= 1,
// Compulsory, must always be 1 (one).
40
nl_tu_sleep_all_day
=
NLTULIPS_BASE
,
41
nl_tu_manure
,
42
nl_tu_autumn_plough
,
43
nl_tu_autumn_heavy_stubble_cultivator
,
44
nl_tu_bed_forming
,
45
nl_tu_fungicide0
,
46
nl_tu_planting
,
47
nl_tu_ferti_p1
,
48
nl_tu_ferti_s1
,
49
nl_tu_straw_covering
,
50
nl_tu_straw_removal
,
51
nl_tu_herbicide1
,
52
nl_tu_herbicide2
,
53
nl_tu_fungicide1
,
54
nl_tu_fungicide2
,
55
nl_tu_fungicide3
,
56
nl_tu_fungicide4
,
57
nl_tu_fungicide5
,
58
nl_tu_fungicide6
,
59
nl_tu_fungicide7
,
60
nl_tu_fungicide8
,
61
nl_tu_fungicide9
,
62
nl_tu_fungicide10
,
63
nl_tu_added_insecticide1
,
64
nl_tu_added_insecticide2
,
65
nl_tu_added_insecticide3
,
66
nl_tu_added_insecticide4
,
67
nl_tu_added_insecticide5
,
68
nl_tu_added_insecticide6
,
69
nl_tu_added_insecticide7
,
70
nl_tu_added_insecticide8
,
71
nl_tu_added_insecticide9
,
72
nl_tu_added_insecticide10
,
73
nl_tu_insecticide1
,
74
nl_tu_insecticide2
,
75
nl_tu_ferti_p2
,
76
nl_tu_ferti_s2
,
77
nl_tu_ferti_p3
,
78
nl_tu_ferti_s3
,
79
nl_tu_ferti_p4
,
80
nl_tu_ferti_s4
,
81
nl_tu_flower_cutting
,
82
nl_tu_irrigation
,
83
nl_tu_harvest
,
84
}
NLTulipsToDo
;
85
86
95
class
NLTulips
:
public
Crop
96
{
97
public
:
98
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
99
NLTulips
()
100
{
101
// When we start it off, the first possible date for a farm operation is 20th October
102
// This information is used by other crops when they decide how much post processing of
103
// the management is allowed after harvest before the next crop starts.
104
m_first_date
=g_date->DayInYear( 31,10);
105
}
106
};
107
108
#endif // NLTULIPS_H
109
nl_tu_manure
Definition:
NLTulips.h:41
nl_tu_added_insecticide10
Definition:
NLTulips.h:72
NLTulips::NLTulips
NLTulips()
Definition:
NLTulips.h:99
nl_tu_ferti_p2
Definition:
NLTulips.h:75
nl_tu_ferti_s2
Definition:
NLTulips.h:76
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
nl_tu_added_insecticide8
Definition:
NLTulips.h:70
nl_tu_added_insecticide6
Definition:
NLTulips.h:68
NLTulips
NLTulips class .
Definition:
NLTulips.h:95
nl_tu_herbicide1
Definition:
NLTulips.h:51
nl_tu_start
Definition:
NLTulips.h:39
nl_tu_fungicide7
Definition:
NLTulips.h:59
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
NLTULIPS_BASE
#define NLTULIPS_BASE
Definition:
NLTulips.h:24
Crop
The base class for all crops.
Definition:
farm.h:534
nl_tu_flower_cutting
Definition:
NLTulips.h:81
nl_tu_ferti_s1
Definition:
NLTulips.h:48
nl_tu_autumn_heavy_stubble_cultivator
Definition:
NLTulips.h:43
nl_tu_fungicide0
Definition:
NLTulips.h:45
nl_tu_fungicide8
Definition:
NLTulips.h:60
nl_tu_fungicide5
Definition:
NLTulips.h:57
NLTulips::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:
NLTulips.cpp:64
nl_tu_straw_removal
Definition:
NLTulips.h:50
nl_tu_insecticide2
Definition:
NLTulips.h:74
nl_tu_added_insecticide7
Definition:
NLTulips.h:69
nl_tu_sleep_all_day
Definition:
NLTulips.h:40
nl_tu_added_insecticide2
Definition:
NLTulips.h:64
nl_tu_ferti_p3
Definition:
NLTulips.h:77
nl_tu_bed_forming
Definition:
NLTulips.h:44
nl_tu_fungicide1
Definition:
NLTulips.h:53
nl_tu_herbicide2
Definition:
NLTulips.h:52
nl_tu_fungicide9
Definition:
NLTulips.h:61
nl_tu_autumn_plough
Definition:
NLTulips.h:42
nl_tu_added_insecticide4
Definition:
NLTulips.h:66
nl_tu_fungicide3
Definition:
NLTulips.h:55
nl_tu_harvest
Definition:
NLTulips.h:83
nl_tu_added_insecticide9
Definition:
NLTulips.h:71
nl_tu_irrigation
Definition:
NLTulips.h:82
nl_tu_added_insecticide1
Definition:
NLTulips.h:63
NLTulipsToDo
NLTulipsToDo
Definition:
NLTulips.h:38
nl_tu_ferti_s3
Definition:
NLTulips.h:78
nl_tu_fungicide2
Definition:
NLTulips.h:54
Farm
The base class for all farm types.
Definition:
farm.h:767
nl_tu_insecticide1
Definition:
NLTulips.h:73
nl_tu_straw_covering
Definition:
NLTulips.h:49
nl_tu_planting
Definition:
NLTulips.h:46
nl_tu_added_insecticide5
Definition:
NLTulips.h:67
nl_tu_ferti_p4
Definition:
NLTulips.h:79
nl_tu_ferti_p1
Definition:
NLTulips.h:47
nl_tu_ferti_s4
Definition:
NLTulips.h:80
nl_tu_fungicide4
Definition:
NLTulips.h:56
nl_tu_added_insecticide3
Definition:
NLTulips.h:65
nl_tu_fungicide10
Definition:
NLTulips.h:62
nl_tu_fungicide6
Definition:
NLTulips.h:58
Repo
ALMaSS_all
Landscape
cropprogs
NLTulips.h
Generated on Wed Oct 2 2019 11:11:19 for ALMaSS Hare ODDox by
1.8.16