ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
PLWinterRye.h
Go to the documentation of this file.
1
16
//
17
// PLWinterRye.h
18
//
19
20
21
#ifndef PLWINTERRYE_H
22
#define PLWINTERRYE_H
23
24
#define PLWINTERRYE_BASE 20400
25
28
#define PL_WRYE_FERTI_P1 a_field->m_user[1]
29
#define PL_WRYE_FERTI_S1 a_field->m_user[2]
30
#define PL_WRYE_STUBBLE_PLOUGH a_field->m_user[3]
31
37
typedef
enum
{
38
pl_wrye_start
= 1,
// Compulsory, must always be 1 (one).
39
pl_wrye_sleep_all_day
=
PLWINTERRYE_BASE
,
40
pl_wrye_ferti_p1
,
// 20401
41
pl_wrye_ferti_s1
,
42
pl_wrye_stubble_plough
,
43
pl_wrye_autumn_harrow1
,
44
pl_wrye_autumn_harrow2
,
45
pl_wrye_stubble_harrow
,
46
pl_wrye_ferti_p2
,
47
pl_wrye_ferti_s2
,
48
pl_wrye_autumn_plough
,
49
pl_wrye_autumn_roll
,
// 20410
50
pl_wrye_stubble_cultivator_heavy
,
51
pl_wrye_ferti_p3
,
52
pl_wrye_ferti_s3
,
53
pl_wrye_preseeding_cultivator
,
54
pl_wrye_preseeding_cultivator_sow
,
55
pl_wrye_autumn_sow
,
// 20416
56
pl_wrye_herbicide1
,
57
pl_wrye_fungicide1
,
58
pl_wrye_ferti_p4
,
59
pl_wrye_ferti_s4
,
// 20420
60
pl_wrye_ferti_p5
,
61
pl_wrye_ferti_s5
,
62
pl_wrye_ferti_p6
,
63
pl_wrye_ferti_s6
,
64
pl_wrye_ferti_p7
,
65
pl_wrye_ferti_s7
,
66
pl_wrye_ferti_p8
,
67
pl_wrye_ferti_s8
,
68
pl_wrye_ferti_p9
,
69
pl_wrye_ferti_s9
,
// 20430
70
pl_wrye_herbicide2
,
71
pl_wrye_fungicide2
,
72
pl_wrye_growth_regulator1
,
73
pl_wrye_harvest
,
74
pl_wrye_straw_chopping
,
75
pl_wrye_hay_bailing
,
76
pl_wrye_ferti_p10
,
77
pl_wrye_ferti_s10
,
78
pl_wrye_ferti_p11
,
79
pl_wrye_ferti_s11
,
// 20440
80
}
PLWinterRyeToDo
;
81
82
91
class
PLWinterRye
:
public
Crop
92
{
93
public
:
94
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
95
PLWinterRye
()
96
{
97
// When we start it off, the first possible date for a farm operation is 15th September
98
// This information is used by other crops when they decide how much post processing of
99
// the management is allowed after harvest before the next crop starts.
100
m_first_date
=g_date->DayInYear( 15,9 );
101
}
102
};
103
104
#endif // PLWINTERRYE_H
105
pl_wrye_ferti_s1
Definition:
PLWinterRye.h:41
pl_wrye_ferti_s7
Definition:
PLWinterRye.h:65
pl_wrye_growth_regulator1
Definition:
PLWinterRye.h:72
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
pl_wrye_autumn_harrow1
Definition:
PLWinterRye.h:43
pl_wrye_ferti_s4
Definition:
PLWinterRye.h:59
pl_wrye_ferti_p9
Definition:
PLWinterRye.h:68
pl_wrye_ferti_p7
Definition:
PLWinterRye.h:64
pl_wrye_ferti_p8
Definition:
PLWinterRye.h:66
pl_wrye_ferti_p11
Definition:
PLWinterRye.h:78
pl_wrye_harvest
Definition:
PLWinterRye.h:73
pl_wrye_ferti_s2
Definition:
PLWinterRye.h:47
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
pl_wrye_autumn_sow
Definition:
PLWinterRye.h:55
pl_wrye_sleep_all_day
Definition:
PLWinterRye.h:39
pl_wrye_autumn_harrow2
Definition:
PLWinterRye.h:44
Crop
The base class for all crops.
Definition:
farm.h:534
pl_wrye_autumn_plough
Definition:
PLWinterRye.h:48
pl_wrye_preseeding_cultivator_sow
Definition:
PLWinterRye.h:54
pl_wrye_ferti_p6
Definition:
PLWinterRye.h:62
pl_wrye_stubble_harrow
Definition:
PLWinterRye.h:45
pl_wrye_ferti_p4
Definition:
PLWinterRye.h:58
pl_wrye_ferti_s5
Definition:
PLWinterRye.h:61
pl_wrye_ferti_s11
Definition:
PLWinterRye.h:79
PLWinterRye::PLWinterRye
PLWinterRye()
Definition:
PLWinterRye.h:95
pl_wrye_stubble_cultivator_heavy
Definition:
PLWinterRye.h:50
pl_wrye_ferti_s6
Definition:
PLWinterRye.h:63
pl_wrye_start
Definition:
PLWinterRye.h:38
pl_wrye_herbicide2
Definition:
PLWinterRye.h:70
pl_wrye_herbicide1
Definition:
PLWinterRye.h:56
pl_wrye_ferti_s3
Definition:
PLWinterRye.h:52
pl_wrye_fungicide1
Definition:
PLWinterRye.h:57
pl_wrye_fungicide2
Definition:
PLWinterRye.h:71
pl_wrye_stubble_plough
Definition:
PLWinterRye.h:42
PLWinterRye::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:
PLWinterRye.cpp:64
PLWINTERRYE_BASE
#define PLWINTERRYE_BASE
Definition:
PLWinterRye.h:24
pl_wrye_straw_chopping
Definition:
PLWinterRye.h:74
pl_wrye_ferti_p2
Definition:
PLWinterRye.h:46
pl_wrye_ferti_s8
Definition:
PLWinterRye.h:67
Farm
The base class for all farm types.
Definition:
farm.h:767
pl_wrye_preseeding_cultivator
Definition:
PLWinterRye.h:53
PLWinterRye
PLWinterRye class .
Definition:
PLWinterRye.h:91
PLWinterRyeToDo
PLWinterRyeToDo
Definition:
PLWinterRye.h:37
pl_wrye_hay_bailing
Definition:
PLWinterRye.h:75
pl_wrye_ferti_p1
Definition:
PLWinterRye.h:40
pl_wrye_ferti_p3
Definition:
PLWinterRye.h:51
pl_wrye_ferti_p5
Definition:
PLWinterRye.h:60
pl_wrye_ferti_s10
Definition:
PLWinterRye.h:77
pl_wrye_autumn_roll
Definition:
PLWinterRye.h:49
pl_wrye_ferti_p10
Definition:
PLWinterRye.h:76
pl_wrye_ferti_s9
Definition:
PLWinterRye.h:69
Repo
ALMaSS_all
Landscape
cropprogs
PLWinterRye.h
Generated on Wed Oct 2 2019 11:11:21 for ALMaSS Hare ODDox by
1.8.16