ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
PLWinterWheatLate.h
Go to the documentation of this file.
1
16
//
17
// PLWinterWheatLate.h
18
//
19
20
21
#ifndef PLWINTERWHEATLATE_H
22
#define PLWINTERWHEATLATE_H
23
24
#define PLWINTERWHEATLATE_BASE 21500
25
28
#define PL_WWL_FERTI_P1 a_field->m_user[1]
29
#define PL_WWL_FERTI_S1 a_field->m_user[2]
30
#define PL_WWL_STUBBLE_PLOUGH a_field->m_user[3]
31
#define PL_WWL_DECIDE_TO_GR a_field->m_user[4]
32
38
typedef
enum
{
39
pl_wwl_start
= 1,
// Compulsory, must always be 1 (one).
40
pl_wwl_sleep_all_day
=
PLWINTERWHEATLATE_BASE
,
41
pl_wwl_ferti_p1
,
// 21501
42
pl_wwl_ferti_s1
,
43
pl_wwl_stubble_plough
,
44
pl_wwl_autumn_harrow1
,
45
pl_wwl_autumn_harrow2
,
46
pl_wwl_stubble_harrow
,
47
pl_wwl_ferti_p2
,
48
pl_wwl_ferti_s2
,
49
pl_wwl_autumn_plough
,
50
pl_wwl_autumn_roll
,
// 21510
51
pl_wwl_stubble_cultivator_heavy
,
52
pl_wwl_ferti_p3
,
53
pl_wwl_ferti_s3
,
54
pl_wwl_preseeding_cultivator
,
55
pl_wwl_preseeding_cultivator_sow
,
56
pl_wwl_autumn_sow
,
// 21516
57
pl_wwl_herbicide1
,
58
pl_wwl_fungicide1
,
59
pl_wwl_insecticide1
,
60
pl_wwl_ferti_p4
,
// 21520
61
pl_wwl_ferti_s4
,
62
pl_wwl_ferti_p5
,
63
pl_wwl_ferti_s5
,
64
pl_wwl_ferti_p6
,
65
pl_wwl_ferti_s6
,
66
pl_wwl_ferti_p7
,
67
pl_wwl_ferti_s7
,
68
pl_wwl_ferti_p8
,
69
pl_wwl_ferti_s8
,
70
pl_wwl_ferti_p9
,
// 21530
71
pl_wwl_ferti_s9
,
72
pl_wwl_herbicide2
,
73
pl_wwl_fungicide2
,
74
pl_wwl_fungicide3
,
75
pl_wwl_fungicide4
,
76
pl_wwl_insecticide2
,
77
pl_wwl_insecticide3
,
78
pl_wwl_growth_regulator1
,
79
pl_wwl_growth_regulator2
,
80
pl_wwl_harvest
,
// 21540
81
pl_wwl_straw_chopping
,
82
pl_wwl_hay_bailing
,
83
pl_wwl_ferti_p10
,
84
pl_wwl_ferti_s10
,
85
pl_wwl_ferti_p11
,
86
pl_wwl_ferti_s11
,
// 21546
87
}
PLWinterWheatLateToDo
;
88
89
98
class
PLWinterWheatLate
:
public
Crop
99
{
100
public
:
101
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
102
PLWinterWheatLate
()
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( 31,10 );
108
}
109
};
110
111
#endif // PLWINTERWHEATLATE_H
112
pl_wwl_ferti_s9
Definition:
PLWinterWheatLate.h:71
pl_wwl_start
Definition:
PLWinterWheatLate.h:39
pl_wwl_preseeding_cultivator_sow
Definition:
PLWinterWheatLate.h:55
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
pl_wwl_herbicide1
Definition:
PLWinterWheatLate.h:57
pl_wwl_ferti_p11
Definition:
PLWinterWheatLate.h:85
pl_wwl_ferti_p4
Definition:
PLWinterWheatLate.h:60
pl_wwl_ferti_s3
Definition:
PLWinterWheatLate.h:53
pl_wwl_preseeding_cultivator
Definition:
PLWinterWheatLate.h:54
pl_wwl_autumn_sow
Definition:
PLWinterWheatLate.h:56
pl_wwl_stubble_cultivator_heavy
Definition:
PLWinterWheatLate.h:51
PLWinterWheatLate::PLWinterWheatLate
PLWinterWheatLate()
Definition:
PLWinterWheatLate.h:102
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
pl_wwl_autumn_harrow1
Definition:
PLWinterWheatLate.h:44
PLWINTERWHEATLATE_BASE
#define PLWINTERWHEATLATE_BASE
Definition:
PLWinterWheatLate.h:24
pl_wwl_autumn_harrow2
Definition:
PLWinterWheatLate.h:45
Crop
The base class for all crops.
Definition:
farm.h:534
pl_wwl_ferti_p8
Definition:
PLWinterWheatLate.h:68
pl_wwl_straw_chopping
Definition:
PLWinterWheatLate.h:81
pl_wwl_ferti_s8
Definition:
PLWinterWheatLate.h:69
pl_wwl_ferti_p5
Definition:
PLWinterWheatLate.h:62
pl_wwl_ferti_s7
Definition:
PLWinterWheatLate.h:67
pl_wwl_insecticide2
Definition:
PLWinterWheatLate.h:76
pl_wwl_ferti_p7
Definition:
PLWinterWheatLate.h:66
PLWinterWheatLate::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:
PLWinterWheatLate.cpp:64
pl_wwl_herbicide2
Definition:
PLWinterWheatLate.h:72
pl_wwl_stubble_harrow
Definition:
PLWinterWheatLate.h:46
pl_wwl_fungicide3
Definition:
PLWinterWheatLate.h:74
pl_wwl_fungicide1
Definition:
PLWinterWheatLate.h:58
pl_wwl_ferti_s1
Definition:
PLWinterWheatLate.h:42
pl_wwl_hay_bailing
Definition:
PLWinterWheatLate.h:82
pl_wwl_insecticide3
Definition:
PLWinterWheatLate.h:77
pl_wwl_ferti_p6
Definition:
PLWinterWheatLate.h:64
pl_wwl_ferti_s11
Definition:
PLWinterWheatLate.h:86
pl_wwl_growth_regulator2
Definition:
PLWinterWheatLate.h:79
pl_wwl_ferti_p1
Definition:
PLWinterWheatLate.h:41
pl_wwl_autumn_plough
Definition:
PLWinterWheatLate.h:49
pl_wwl_ferti_p2
Definition:
PLWinterWheatLate.h:47
Farm
The base class for all farm types.
Definition:
farm.h:767
pl_wwl_insecticide1
Definition:
PLWinterWheatLate.h:59
pl_wwl_autumn_roll
Definition:
PLWinterWheatLate.h:50
pl_wwl_ferti_p10
Definition:
PLWinterWheatLate.h:83
pl_wwl_ferti_p9
Definition:
PLWinterWheatLate.h:70
pl_wwl_ferti_p3
Definition:
PLWinterWheatLate.h:52
pl_wwl_ferti_s5
Definition:
PLWinterWheatLate.h:63
PLWinterWheatLate
PLWinterWheatLate class .
Definition:
PLWinterWheatLate.h:98
pl_wwl_sleep_all_day
Definition:
PLWinterWheatLate.h:40
pl_wwl_ferti_s4
Definition:
PLWinterWheatLate.h:61
pl_wwl_stubble_plough
Definition:
PLWinterWheatLate.h:43
PLWinterWheatLateToDo
PLWinterWheatLateToDo
Definition:
PLWinterWheatLate.h:38
pl_wwl_fungicide4
Definition:
PLWinterWheatLate.h:75
pl_wwl_ferti_s2
Definition:
PLWinterWheatLate.h:48
pl_wwl_harvest
Definition:
PLWinterWheatLate.h:80
pl_wwl_ferti_s6
Definition:
PLWinterWheatLate.h:65
pl_wwl_growth_regulator1
Definition:
PLWinterWheatLate.h:78
pl_wwl_fungicide2
Definition:
PLWinterWheatLate.h:73
pl_wwl_ferti_s10
Definition:
PLWinterWheatLate.h:84
Repo
ALMaSS_all
Landscape
cropprogs
PLWinterWheatLate.h
Generated on Wed Oct 2 2019 11:11:21 for ALMaSS Hare ODDox by
1.8.16