ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
PLMaizeSilage.h
Go to the documentation of this file.
1
16
//
17
// PLMaizeSilage.h
18
//
19
20
21
#ifndef PLMAIZESILAGE_H
22
#define PLMAIZESILAGE_H
23
24
#define PLMAIZESILAGE_BASE 20800
25
28
#define PL_MS_FERTI_P1 a_field->m_user[1]
29
#define PL_MS_FERTI_S1 a_field->m_user[2]
30
#define PL_MS_STUBBLE_PLOUGH a_field->m_user[3]
31
#define PL_MS_WINTER_PLOUGH a_field->m_user[4]
32
#define PL_MS_FERTI_P3 a_field->m_user[5]
33
#define PL_MS_FERTI_S3 a_field->m_user[6]
34
#define PL_MS_SPRING_FERTI a_field->m_user[7]
35
#define PL_MS_START_FERTI a_field->m_user[8]
36
42
typedef
enum
{
43
pl_ms_start
= 1,
// Compulsory, must always be 1 (one).
44
pl_ms_sleep_all_day
=
PLMAIZESILAGE_BASE
,
45
pl_ms_ferti_p1
,
// 20801
46
pl_ms_ferti_s1
,
47
pl_ms_stubble_plough
,
48
pl_ms_autumn_harrow1
,
49
pl_ms_autumn_harrow2
,
50
pl_ms_stubble_harrow
,
51
pl_ms_ferti_p2
,
52
pl_ms_ferti_s2
,
53
pl_ms_winter_plough
,
54
pl_ms_winter_stubble_cultivator_heavy
,
// 20810
55
pl_ms_ferti_p3
,
56
pl_ms_ferti_s3
,
57
pl_ms_spring_harrow
,
58
pl_ms_ferti_p4
,
59
pl_ms_ferti_s4
,
60
pl_ms_ferti_p5
,
61
pl_ms_ferti_s5
,
62
pl_ms_heavy_cultivator
,
63
pl_ms_preseeding_cultivator
,
64
pl_ms_spring_sow_with_ferti
,
65
pl_ms_spring_sow
,
// 20821
66
pl_ms_herbicide1
,
67
pl_ms_herbicide2
,
68
pl_ms_fungicide1
,
69
pl_ms_insecticide1
,
70
pl_ms_insecticide2
,
71
pl_ms_biocide
,
72
pl_ms_ferti_p6
,
73
pl_ms_ferti_s6
,
74
pl_ms_ferti_p7
,
75
pl_ms_ferti_s7
,
// 20831
76
pl_ms_harvest
,
77
pl_ms_straw_chopping
,
78
pl_ms_hay_bailing
,
79
pl_ms_ferti_p8
,
80
pl_ms_ferti_s8
,
81
pl_ms_ferti_p9
,
82
pl_ms_ferti_s9
,
// 20838
83
}
PLMaizeSilageToDo
;
84
85
94
class
PLMaizeSilage
:
public
Crop
95
{
96
public
:
97
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
98
PLMaizeSilage
()
99
{
100
// When we start it off, the first possible date for a farm operation is 5th November
101
// This information is used by other crops when they decide how much post processing of
102
// the management is allowed after harvest before the next crop starts.
103
m_first_date
=g_date->DayInYear( 5,11 );
104
}
105
};
106
107
#endif // PLMAIZESILAGE_H
108
pl_ms_ferti_s4
Definition:
PLMaizeSilage.h:59
pl_ms_autumn_harrow2
Definition:
PLMaizeSilage.h:49
pl_ms_stubble_harrow
Definition:
PLMaizeSilage.h:50
pl_ms_ferti_p2
Definition:
PLMaizeSilage.h:51
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
pl_ms_ferti_s5
Definition:
PLMaizeSilage.h:61
pl_ms_biocide
Definition:
PLMaizeSilage.h:71
pl_ms_ferti_s7
Definition:
PLMaizeSilage.h:75
pl_ms_fungicide1
Definition:
PLMaizeSilage.h:68
pl_ms_ferti_p3
Definition:
PLMaizeSilage.h:55
PLMaizeSilage::PLMaizeSilage
PLMaizeSilage()
Definition:
PLMaizeSilage.h:98
pl_ms_ferti_s8
Definition:
PLMaizeSilage.h:80
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
pl_ms_spring_harrow
Definition:
PLMaizeSilage.h:57
pl_ms_spring_sow
Definition:
PLMaizeSilage.h:65
pl_ms_hay_bailing
Definition:
PLMaizeSilage.h:78
PLMaizeSilage::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:
PLMaizeSilage.cpp:64
Crop
The base class for all crops.
Definition:
farm.h:534
PLMAIZESILAGE_BASE
#define PLMAIZESILAGE_BASE
Definition:
PLMaizeSilage.h:24
pl_ms_start
Definition:
PLMaizeSilage.h:43
pl_ms_winter_stubble_cultivator_heavy
Definition:
PLMaizeSilage.h:54
pl_ms_insecticide2
Definition:
PLMaizeSilage.h:70
pl_ms_insecticide1
Definition:
PLMaizeSilage.h:69
pl_ms_preseeding_cultivator
Definition:
PLMaizeSilage.h:63
pl_ms_ferti_p8
Definition:
PLMaizeSilage.h:79
pl_ms_ferti_p9
Definition:
PLMaizeSilage.h:81
pl_ms_ferti_p5
Definition:
PLMaizeSilage.h:60
pl_ms_ferti_p4
Definition:
PLMaizeSilage.h:58
pl_ms_ferti_s6
Definition:
PLMaizeSilage.h:73
pl_ms_autumn_harrow1
Definition:
PLMaizeSilage.h:48
pl_ms_heavy_cultivator
Definition:
PLMaizeSilage.h:62
pl_ms_ferti_s9
Definition:
PLMaizeSilage.h:82
pl_ms_winter_plough
Definition:
PLMaizeSilage.h:53
pl_ms_harvest
Definition:
PLMaizeSilage.h:76
pl_ms_ferti_p6
Definition:
PLMaizeSilage.h:72
pl_ms_ferti_p7
Definition:
PLMaizeSilage.h:74
pl_ms_ferti_s3
Definition:
PLMaizeSilage.h:56
pl_ms_spring_sow_with_ferti
Definition:
PLMaizeSilage.h:64
PLMaizeSilage
PLMaizeSilage class .
Definition:
PLMaizeSilage.h:94
Farm
The base class for all farm types.
Definition:
farm.h:767
pl_ms_ferti_s1
Definition:
PLMaizeSilage.h:46
pl_ms_straw_chopping
Definition:
PLMaizeSilage.h:77
pl_ms_stubble_plough
Definition:
PLMaizeSilage.h:47
PLMaizeSilageToDo
PLMaizeSilageToDo
Definition:
PLMaizeSilage.h:42
pl_ms_ferti_p1
Definition:
PLMaizeSilage.h:45
pl_ms_herbicide1
Definition:
PLMaizeSilage.h:66
pl_ms_sleep_all_day
Definition:
PLMaizeSilage.h:44
pl_ms_herbicide2
Definition:
PLMaizeSilage.h:67
pl_ms_ferti_s2
Definition:
PLMaizeSilage.h:52
Repo
ALMaSS_all
Landscape
cropprogs
PLMaizeSilage.h
Generated on Wed Oct 2 2019 11:11:20 for ALMaSS Hare ODDox by
1.8.16