ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
PLWinterWheat.h
Go to the documentation of this file.
1
16
//
17
// PLWinterWheat.h
18
//
19
20
21
#ifndef PLWINTERWHEAT_H
22
#define PLWINTERWHEAT_H
23
24
#define PLWINTERWHEAT_BASE 21800
25
28
#define PL_WW_FERTI_P1 a_field->m_user[1]
29
#define PL_WW_FERTI_S1 a_field->m_user[2]
30
#define PL_WW_STUBBLE_PLOUGH a_field->m_user[3]
31
#define PL_WW_DECIDE_TO_GR a_field->m_user[4]
32
38
typedef
enum
{
39
pl_ww_start
= 1,
// Compulsory, must always be 1 (one).
40
pl_ww_sleep_all_day
=
PLWINTERWHEAT_BASE
,
41
pl_ww_ferti_p1
,
42
pl_ww_ferti_s1
,
43
pl_ww_stubble_plough
,
44
pl_ww_autumn_harrow1
,
45
pl_ww_autumn_harrow2
,
46
pl_ww_stubble_harrow
,
47
pl_ww_ferti_p2
,
48
pl_ww_ferti_s2
,
49
pl_ww_autumn_plough
,
50
pl_ww_autumn_roll
,
51
pl_ww_stubble_cultivator_heavy
,
52
pl_ww_ferti_p3
,
53
pl_ww_ferti_s3
,
54
pl_ww_preseeding_cultivator
,
55
pl_ww_preseeding_cultivator_sow
,
56
pl_ww_autumn_sow
,
57
pl_ww_herbicide1
,
58
pl_ww_fungicide1
,
59
pl_ww_insecticide1
,
60
pl_ww_ferti_p4
,
61
pl_ww_ferti_s4
,
62
pl_ww_ferti_p5
,
63
pl_ww_ferti_s5
,
64
pl_ww_ferti_p6
,
65
pl_ww_ferti_s6
,
66
pl_ww_ferti_p7
,
67
pl_ww_ferti_s7
,
68
pl_ww_ferti_p8
,
69
pl_ww_ferti_s8
,
70
pl_ww_ferti_p9
,
71
pl_ww_ferti_s9
,
72
pl_ww_herbicide2
,
73
pl_ww_fungicide2
,
74
pl_ww_fungicide3
,
75
pl_ww_fungicide4
,
76
pl_ww_insecticide2
,
77
pl_ww_insecticide3
,
78
pl_ww_growth_regulator1
,
79
pl_ww_growth_regulator2
,
80
pl_ww_harvest
,
81
pl_ww_straw_chopping
,
82
pl_ww_hay_bailing
,
83
pl_ww_ferti_p10
,
84
pl_ww_ferti_s10
,
85
pl_ww_ferti_p11
,
86
pl_ww_ferti_s11
,
87
}
PLWinterWheat1ToDo
;
88
89
98
class
PLWinterWheat
:
public
Crop
99
{
100
public
:
101
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
102
PLWinterWheat
()
103
{
104
// When we start it off, the first possible date for a farm operation is 20th September
105
// This information is used by other crops when they decide how much post processing of
106
// the management is allowed after harvest before the next crop starts.
107
m_first_date
=g_date->DayInYear( 20,9 );
108
}
109
};
110
111
#endif // PLWINTERWHEAT_H
112
pl_ww_ferti_s2
Definition:
PLWinterWheat.h:48
pl_ww_hay_bailing
Definition:
PLWinterWheat.h:82
pl_ww_ferti_p6
Definition:
PLWinterWheat.h:64
pl_ww_ferti_p2
Definition:
PLWinterWheat.h:47
PLWinterWheat::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:
PLWinterWheat.cpp:71
pl_ww_autumn_plough
Definition:
PLWinterWheat.h:49
pl_ww_ferti_s8
Definition:
PLWinterWheat.h:69
pl_ww_herbicide2
Definition:
PLWinterWheat.h:72
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
pl_ww_ferti_s7
Definition:
PLWinterWheat.h:67
pl_ww_ferti_s10
Definition:
PLWinterWheat.h:84
pl_ww_ferti_p11
Definition:
PLWinterWheat.h:85
pl_ww_ferti_p4
Definition:
PLWinterWheat.h:60
pl_ww_ferti_s6
Definition:
PLWinterWheat.h:65
pl_ww_fungicide3
Definition:
PLWinterWheat.h:74
pl_ww_autumn_harrow2
Definition:
PLWinterWheat.h:45
pl_ww_preseeding_cultivator_sow
Definition:
PLWinterWheat.h:55
pl_ww_ferti_p9
Definition:
PLWinterWheat.h:70
pl_ww_ferti_s5
Definition:
PLWinterWheat.h:63
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
pl_ww_ferti_p3
Definition:
PLWinterWheat.h:52
pl_ww_ferti_p10
Definition:
PLWinterWheat.h:83
pl_ww_insecticide2
Definition:
PLWinterWheat.h:76
Crop
The base class for all crops.
Definition:
farm.h:534
pl_ww_insecticide3
Definition:
PLWinterWheat.h:77
pl_ww_ferti_s4
Definition:
PLWinterWheat.h:61
pl_ww_autumn_harrow1
Definition:
PLWinterWheat.h:44
PLWinterWheat1ToDo
PLWinterWheat1ToDo
Definition:
PLWinterWheat.h:38
pl_ww_start
Definition:
PLWinterWheat.h:39
pl_ww_fungicide2
Definition:
PLWinterWheat.h:73
pl_ww_fungicide4
Definition:
PLWinterWheat.h:75
pl_ww_herbicide1
Definition:
PLWinterWheat.h:57
PLWinterWheat::PLWinterWheat
PLWinterWheat()
Definition:
PLWinterWheat.h:102
pl_ww_autumn_roll
Definition:
PLWinterWheat.h:50
pl_ww_stubble_harrow
Definition:
PLWinterWheat.h:46
pl_ww_stubble_plough
Definition:
PLWinterWheat.h:43
pl_ww_harvest
Definition:
PLWinterWheat.h:80
PLWINTERWHEAT_BASE
#define PLWINTERWHEAT_BASE
Definition:
PLWinterWheat.h:24
pl_ww_fungicide1
Definition:
PLWinterWheat.h:58
pl_ww_ferti_p8
Definition:
PLWinterWheat.h:68
pl_ww_ferti_s9
Definition:
PLWinterWheat.h:71
Farm
The base class for all farm types.
Definition:
farm.h:767
pl_ww_sleep_all_day
Definition:
PLWinterWheat.h:40
pl_ww_insecticide1
Definition:
PLWinterWheat.h:59
pl_ww_growth_regulator1
Definition:
PLWinterWheat.h:78
pl_ww_ferti_s3
Definition:
PLWinterWheat.h:53
pl_ww_stubble_cultivator_heavy
Definition:
PLWinterWheat.h:51
pl_ww_ferti_p5
Definition:
PLWinterWheat.h:62
pl_ww_autumn_sow
Definition:
PLWinterWheat.h:56
pl_ww_preseeding_cultivator
Definition:
PLWinterWheat.h:54
pl_ww_ferti_p7
Definition:
PLWinterWheat.h:66
PLWinterWheat
PLWinterWheat class .
Definition:
PLWinterWheat.h:98
pl_ww_straw_chopping
Definition:
PLWinterWheat.h:81
pl_ww_ferti_s11
Definition:
PLWinterWheat.h:86
pl_ww_ferti_p1
Definition:
PLWinterWheat.h:41
pl_ww_growth_regulator2
Definition:
PLWinterWheat.h:79
pl_ww_ferti_s1
Definition:
PLWinterWheat.h:42
Repo
ALMaSS_all
Landscape
cropprogs
PLWinterWheat.h
Generated on Wed Oct 2 2019 11:11:21 for ALMaSS Hare ODDox by
1.8.16