ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
PLFodderLucerne1.h
Go to the documentation of this file.
1
16
//
17
// PLFodderLucerne1.h
18
//
19
20
21
#ifndef PLFODDERLUCERNE1_H
22
#define PLFODDERLUCERNE1_H
23
24
#define PLFODDERLUCERNE1_BASE 21100
25
28
#define PL_FL1_FERTI_P1 a_field->m_user[1]
29
#define PL_FL1_FERTI_S1 a_field->m_user[2]
30
#define PL_FL1_STUBBLE_PLOUGH a_field->m_user[3]
31
#define PL_FL1_WINTER_PLOUGH a_field->m_user[4]
32
#define PL_FL1_SPRING_FERTI a_field->m_user[5]
33
#define PL_FL1_HERBICIDE1 a_field->m_user[6]
34
#define PL_FL1_HERBI_DATE a_field->m_user[7]
35
41
typedef
enum
{
42
pl_fl1_start
= 1,
// Compulsory, must always be 1 (one).
43
pl_fl1_sleep_all_day
=
PLFODDERLUCERNE1_BASE
,
44
pl_fl1_herbicide0
,
45
pl_fl1_ferti_p1
,
46
pl_fl1_ferti_s1
,
47
pl_fl1_stubble_plough
,
48
pl_fl1_autumn_harrow1
,
49
pl_fl1_autumn_harrow2
,
50
pl_fl1_stubble_harrow
,
51
pl_fl1_ferti_p2
,
52
pl_fl1_ferti_s2
,
53
pl_fl1_ferti_p3
,
54
pl_fl1_ferti_s3
,
55
pl_fl1_winter_plough
,
56
pl_fl1_winter_stubble_cultivator_heavy
,
57
pl_fl1_spring_harrow
,
58
pl_fl1_ferti_p4
,
59
pl_fl1_ferti_s4
,
60
pl_fl1_heavy_cultivator
,
61
pl_fl1_herbicide1
,
62
pl_fl1_preseeding_cultivator
,
63
pl_fl1_spring_sow
,
64
pl_fl1_herbicide2
,
65
pl_fl1_herbicide3
,
66
pl_fl1_cut_to_silage1
,
67
pl_fl1_cut_to_silage2
,
68
}
PLFodderLucerne1ToDo
;
69
70
79
class
PLFodderLucerne1
:
public
Crop
80
{
81
public
:
82
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
83
PLFodderLucerne1
()
84
{
85
// When we start it off, the first possible date for a farm operation is 31th October
86
// This information is used by other crops when they decide how much post processing of
87
// the management is allowed after harvest before the next crop starts.
88
m_first_date
=g_date->DayInYear( 31,10 );
89
}
90
};
91
92
#endif // PLFODDERLUCERNE1_H
93
pl_fl1_herbicide3
Definition:
PLFodderLucerne1.h:65
pl_fl1_winter_plough
Definition:
PLFodderLucerne1.h:55
PLFODDERLUCERNE1_BASE
#define PLFODDERLUCERNE1_BASE
Definition:
PLFodderLucerne1.h:24
pl_fl1_autumn_harrow1
Definition:
PLFodderLucerne1.h:48
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
pl_fl1_autumn_harrow2
Definition:
PLFodderLucerne1.h:49
pl_fl1_spring_harrow
Definition:
PLFodderLucerne1.h:57
pl_fl1_herbicide1
Definition:
PLFodderLucerne1.h:61
pl_fl1_ferti_s1
Definition:
PLFodderLucerne1.h:46
pl_fl1_ferti_s2
Definition:
PLFodderLucerne1.h:52
pl_fl1_herbicide0
Definition:
PLFodderLucerne1.h:44
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
Crop
The base class for all crops.
Definition:
farm.h:534
pl_fl1_stubble_harrow
Definition:
PLFodderLucerne1.h:50
PLFodderLucerne1::PLFodderLucerne1
PLFodderLucerne1()
Definition:
PLFodderLucerne1.h:83
pl_fl1_start
Definition:
PLFodderLucerne1.h:42
pl_fl1_preseeding_cultivator
Definition:
PLFodderLucerne1.h:62
pl_fl1_cut_to_silage1
Definition:
PLFodderLucerne1.h:66
pl_fl1_sleep_all_day
Definition:
PLFodderLucerne1.h:43
PLFodderLucerne1::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:
PLFodderLucerne1.cpp:56
pl_fl1_heavy_cultivator
Definition:
PLFodderLucerne1.h:60
PLFodderLucerne1ToDo
PLFodderLucerne1ToDo
Definition:
PLFodderLucerne1.h:41
pl_fl1_ferti_s3
Definition:
PLFodderLucerne1.h:54
pl_fl1_ferti_p1
Definition:
PLFodderLucerne1.h:45
pl_fl1_stubble_plough
Definition:
PLFodderLucerne1.h:47
pl_fl1_cut_to_silage2
Definition:
PLFodderLucerne1.h:67
pl_fl1_ferti_p3
Definition:
PLFodderLucerne1.h:53
Farm
The base class for all farm types.
Definition:
farm.h:767
pl_fl1_ferti_p4
Definition:
PLFodderLucerne1.h:58
PLFodderLucerne1
PLFodderLucerne1 class .
Definition:
PLFodderLucerne1.h:79
pl_fl1_ferti_s4
Definition:
PLFodderLucerne1.h:59
pl_fl1_ferti_p2
Definition:
PLFodderLucerne1.h:51
pl_fl1_spring_sow
Definition:
PLFodderLucerne1.h:63
pl_fl1_winter_stubble_cultivator_heavy
Definition:
PLFodderLucerne1.h:56
pl_fl1_herbicide2
Definition:
PLFodderLucerne1.h:64
Repo
ALMaSS_all
Landscape
cropprogs
PLFodderLucerne1.h
Generated on Wed Oct 2 2019 11:11:20 for ALMaSS Hare ODDox by
1.8.16