ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
PLBeans.h
Go to the documentation of this file.
1
16
//
17
// PLBeans.h
18
//
19
20
21
#ifndef PLBEANS_H
22
#define PLBEANS_H
23
24
#define PLBEANS_BASE 21700
25
28
#define PL_BNS_FERTI_P1 a_field->m_user[1]
29
#define PL_BNS_FERTI_S1 a_field->m_user[2]
30
#define PL_BNS_STUBBLE_PLOUGH a_field->m_user[3]
31
#define PL_BNS_HERBI a_field->m_user[4]
32
38
typedef
enum
{
39
pl_bns_start
= 1,
// Compulsory, must always be 1 (one).
40
pl_bns_sleep_all_day
=
PLBEANS_BASE
,
41
pl_bns_ferti_p1
,
// 21701
42
pl_bns_ferti_s1
,
43
pl_bns_stubble_plough
,
44
pl_bns_autumn_harrow1
,
45
pl_bns_autumn_harrow2
,
46
pl_bns_stubble_harrow
,
47
pl_bns_ferti_p2
,
48
pl_bns_ferti_s2
,
49
pl_bns_ferti_p3
,
50
pl_bns_ferti_s3
,
// 21710
51
pl_bns_winter_plough
,
52
pl_bns_spring_harrow
,
53
pl_bns_ferti_p4
,
54
pl_bns_ferti_s4
,
55
pl_bns_heavy_cultivator
,
56
pl_bns_preseeding_cultivator
,
57
pl_bns_spring_sow
,
58
pl_bns_weeding1
,
59
pl_bns_weeding2
,
60
pl_bns_weeding3
,
61
pl_bns_herbicide1
,
62
pl_bns_herbicide2
,
63
pl_bns_fungicide1
,
64
pl_bns_fungicide2
,
65
pl_bns_insecticide
,
66
pl_bns_ferti_p5
,
67
pl_bns_ferti_s5
,
68
pl_bns_ferti_p6
,
69
pl_bns_ferti_s6
,
70
pl_bns_harvest
,
71
pl_bns_ferti_p7
,
72
pl_bns_ferti_s7
,
73
}
PLBeansToDo
;
74
75
84
class
PLBeans
:
public
Crop
85
{
86
public
:
87
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
88
PLBeans
()
89
{
90
// When we start it off, the first possible date for a farm operation is 5th November
91
// This information is used by other crops when they decide how much post processing of
92
// the management is allowed after harvest before the next crop starts.
93
m_first_date
=g_date->DayInYear( 5,11 );
94
}
95
};
96
97
#endif // PLBEANS_H
98
pl_bns_ferti_p3
Definition:
PLBeans.h:49
pl_bns_ferti_s6
Definition:
PLBeans.h:69
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
pl_bns_stubble_harrow
Definition:
PLBeans.h:46
pl_bns_fungicide1
Definition:
PLBeans.h:63
PLBeans::PLBeans
PLBeans()
Definition:
PLBeans.h:88
PLBeans::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:
PLBeans.cpp:64
pl_bns_herbicide1
Definition:
PLBeans.h:61
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
pl_bns_ferti_s1
Definition:
PLBeans.h:42
pl_bns_ferti_p2
Definition:
PLBeans.h:47
Crop
The base class for all crops.
Definition:
farm.h:534
pl_bns_ferti_p6
Definition:
PLBeans.h:68
PLBeans
PLBeans class .
Definition:
PLBeans.h:84
pl_bns_ferti_s7
Definition:
PLBeans.h:72
pl_bns_harvest
Definition:
PLBeans.h:70
pl_bns_weeding2
Definition:
PLBeans.h:59
pl_bns_ferti_p5
Definition:
PLBeans.h:66
pl_bns_spring_sow
Definition:
PLBeans.h:57
pl_bns_autumn_harrow2
Definition:
PLBeans.h:45
pl_bns_heavy_cultivator
Definition:
PLBeans.h:55
pl_bns_herbicide2
Definition:
PLBeans.h:62
PLBEANS_BASE
#define PLBEANS_BASE
Definition:
PLBeans.h:24
pl_bns_spring_harrow
Definition:
PLBeans.h:52
pl_bns_ferti_s3
Definition:
PLBeans.h:50
pl_bns_ferti_s2
Definition:
PLBeans.h:48
pl_bns_ferti_s5
Definition:
PLBeans.h:67
pl_bns_fungicide2
Definition:
PLBeans.h:64
pl_bns_ferti_p1
Definition:
PLBeans.h:41
pl_bns_stubble_plough
Definition:
PLBeans.h:43
pl_bns_sleep_all_day
Definition:
PLBeans.h:40
Farm
The base class for all farm types.
Definition:
farm.h:767
pl_bns_start
Definition:
PLBeans.h:39
pl_bns_winter_plough
Definition:
PLBeans.h:51
PLBeansToDo
PLBeansToDo
Definition:
PLBeans.h:38
pl_bns_weeding3
Definition:
PLBeans.h:60
pl_bns_insecticide
Definition:
PLBeans.h:65
pl_bns_ferti_p7
Definition:
PLBeans.h:71
pl_bns_ferti_s4
Definition:
PLBeans.h:54
pl_bns_autumn_harrow1
Definition:
PLBeans.h:44
pl_bns_ferti_p4
Definition:
PLBeans.h:53
pl_bns_preseeding_cultivator
Definition:
PLBeans.h:56
pl_bns_weeding1
Definition:
PLBeans.h:58
Repo
ALMaSS_all
Landscape
cropprogs
PLBeans.h
Generated on Wed Oct 2 2019 11:11:20 for ALMaSS Hare ODDox by
1.8.16