ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
PLMaize.h
Go to the documentation of this file.
1
16
//
17
// PLMaize.h
18
//
19
20
21
#ifndef PLMAIZE_H
22
#define PLMAIZE_H
23
24
#define PLMAIZE_BASE 20700
25
28
#define PL_M_FERTI_P1 a_field->m_user[1]
29
#define PL_M_FERTI_S1 a_field->m_user[2]
30
#define PL_M_STUBBLE_PLOUGH a_field->m_user[3]
31
#define PL_M_WINTER_PLOUGH a_field->m_user[4]
32
#define PL_M_FERTI_P3 a_field->m_user[5]
33
#define PL_M_FERTI_S3 a_field->m_user[6]
34
#define PL_M_SPRING_FERTI a_field->m_user[7]
35
#define PL_M_START_FERTI a_field->m_user[8]
36
42
typedef
enum
{
43
pl_m_start
= 1,
// Compulsory, must always be 1 (one).
44
pl_m_sleep_all_day
=
PLMAIZE_BASE
,
45
pl_m_ferti_p1
,
// 20701
46
pl_m_ferti_s1
,
47
pl_m_stubble_plough
,
48
pl_m_autumn_harrow1
,
49
pl_m_autumn_harrow2
,
50
pl_m_stubble_harrow
,
51
pl_m_ferti_p2
,
52
pl_m_ferti_s2
,
53
pl_m_winter_plough
,
54
pl_m_winter_stubble_cultivator_heavy
,
// 20710
55
pl_m_ferti_p3
,
56
pl_m_ferti_s3
,
57
pl_m_spring_harrow
,
58
pl_m_ferti_p4
,
59
pl_m_ferti_s4
,
60
pl_m_ferti_p5
,
61
pl_m_ferti_s5
,
62
pl_m_heavy_cultivator
,
63
pl_m_preseeding_cultivator
,
64
pl_m_spring_sow_with_ferti
,
65
pl_m_spring_sow
,
// 20720
66
pl_m_herbicide1
,
67
pl_m_herbicide2
,
68
pl_m_fungicide1
,
69
pl_m_insecticide1
,
70
pl_m_insecticide2
,
71
pl_m_biocide
,
72
pl_m_ferti_p6
,
73
pl_m_ferti_s6
,
74
pl_m_ferti_p7
,
75
pl_m_ferti_s7
,
// 20730
76
pl_m_harvest
,
77
pl_m_straw_chopping
,
78
pl_m_hay_bailing
,
79
pl_m_ferti_p8
,
80
pl_m_ferti_s8
,
81
pl_m_ferti_p9
,
82
pl_m_ferti_s9
,
// 20737
83
}
PLMaizeToDo
;
84
85
94
class
PLMaize
:
public
Crop
95
{
96
public
:
97
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
98
PLMaize
()
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 // PLMAIZE_H
108
pl_m_ferti_s5
Definition:
PLMaize.h:61
pl_m_fungicide1
Definition:
PLMaize.h:68
PLMaize::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:
PLMaize.cpp:64
pl_m_spring_sow_with_ferti
Definition:
PLMaize.h:64
pl_m_ferti_p2
Definition:
PLMaize.h:51
pl_m_ferti_p8
Definition:
PLMaize.h:79
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
pl_m_ferti_s4
Definition:
PLMaize.h:59
pl_m_harvest
Definition:
PLMaize.h:76
pl_m_autumn_harrow1
Definition:
PLMaize.h:48
pl_m_ferti_s1
Definition:
PLMaize.h:46
pl_m_winter_stubble_cultivator_heavy
Definition:
PLMaize.h:54
pl_m_ferti_s2
Definition:
PLMaize.h:52
pl_m_ferti_p4
Definition:
PLMaize.h:58
pl_m_insecticide1
Definition:
PLMaize.h:69
PLMaize
PLMaize class .
Definition:
PLMaize.h:94
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
pl_m_herbicide2
Definition:
PLMaize.h:67
pl_m_ferti_s3
Definition:
PLMaize.h:56
Crop
The base class for all crops.
Definition:
farm.h:534
pl_m_hay_bailing
Definition:
PLMaize.h:78
pl_m_heavy_cultivator
Definition:
PLMaize.h:62
pl_m_spring_harrow
Definition:
PLMaize.h:57
pl_m_ferti_s7
Definition:
PLMaize.h:75
pl_m_ferti_p5
Definition:
PLMaize.h:60
pl_m_ferti_p7
Definition:
PLMaize.h:74
pl_m_winter_plough
Definition:
PLMaize.h:53
pl_m_start
Definition:
PLMaize.h:43
pl_m_ferti_p3
Definition:
PLMaize.h:55
pl_m_ferti_p1
Definition:
PLMaize.h:45
pl_m_ferti_p9
Definition:
PLMaize.h:81
pl_m_autumn_harrow2
Definition:
PLMaize.h:49
pl_m_ferti_p6
Definition:
PLMaize.h:72
pl_m_insecticide2
Definition:
PLMaize.h:70
pl_m_herbicide1
Definition:
PLMaize.h:66
pl_m_sleep_all_day
Definition:
PLMaize.h:44
pl_m_stubble_plough
Definition:
PLMaize.h:47
pl_m_preseeding_cultivator
Definition:
PLMaize.h:63
PLMAIZE_BASE
#define PLMAIZE_BASE
Definition:
PLMaize.h:24
pl_m_biocide
Definition:
PLMaize.h:71
pl_m_straw_chopping
Definition:
PLMaize.h:77
pl_m_stubble_harrow
Definition:
PLMaize.h:50
Farm
The base class for all farm types.
Definition:
farm.h:767
PLMaize::PLMaize
PLMaize()
Definition:
PLMaize.h:98
PLMaizeToDo
PLMaizeToDo
Definition:
PLMaize.h:42
pl_m_ferti_s8
Definition:
PLMaize.h:80
pl_m_spring_sow
Definition:
PLMaize.h:65
pl_m_ferti_s9
Definition:
PLMaize.h:82
pl_m_ferti_s6
Definition:
PLMaize.h:73
Repo
ALMaSS_all
Landscape
cropprogs
PLMaize.h
Generated on Wed Oct 2 2019 11:11:20 for ALMaSS Hare ODDox by
1.8.16