ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
PLFodderLucerne2.h
Go to the documentation of this file.
1
16
//
17
// PLFodderLucerne2.h
18
//
19
20
21
#ifndef PLFODDERLUCERNE2_H
22
#define PLFODDERLUCERNE2_H
23
24
#define PLFODDERLUCERNE2_BASE 21200
25
31
typedef
enum
{
32
pl_fl2_start
= 1,
// Compulsory, must always be 1 (one).
33
pl_fl2_sleep_all_day
=
PLFODDERLUCERNE2_BASE
,
34
pl_fl2_spring_harrow
,
35
pl_fl2_ferti_p0
,
36
pl_fl2_ferti_s0
,
37
pl_fl2_herbicide1
,
38
pl_fl2_cut_to_silage1A
,
39
pl_fl2_harrow1A
,
40
pl_fl2_ferti_p1A
,
41
pl_fl2_ferti_s1A
,
42
pl_fl2_cut_to_silage2A
,
43
pl_fl2_harrow2A
,
44
pl_fl2_cut_to_silage3A
,
45
pl_fl2_cut_to_silage1B
,
46
pl_fl2_harrow1B
,
47
pl_fl2_ferti_p1B
,
48
pl_fl2_ferti_s1B
,
49
pl_fl2_cut_to_silage2B
,
50
pl_fl2_harrow2B
,
51
pl_fl2_cut_to_silage3B
,
52
pl_fl2_harrow3B
,
53
pl_fl2_cut_to_silage4B
,
54
}
PLFodderLucerne2ToDo
;
55
56
65
class
PLFodderLucerne2
:
public
Crop
66
{
67
public
:
68
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev);
69
PLFodderLucerne2
()
70
{
71
// When we start it off, the first possible date for a farm operation is 31th March
72
// This information is used by other crops when they decide how much post processing of
73
// the management is allowed after harvest before the next crop starts.
74
m_first_date
= g_date->DayInYear(31, 3);
75
}
76
};
77
78
#endif // PLFODDERLUCERNE2_H
79
pl_fl2_cut_to_silage3A
Definition:
PLFodderLucerne2.h:44
PLFodderLucerne2
PLFodderLucerne2 class .
Definition:
PLFodderLucerne2.h:65
pl_fl2_harrow1B
Definition:
PLFodderLucerne2.h:46
pl_fl2_harrow2B
Definition:
PLFodderLucerne2.h:50
pl_fl2_ferti_p1B
Definition:
PLFodderLucerne2.h:47
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
PLFodderLucerne2::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:
PLFodderLucerne2.cpp:56
pl_fl2_spring_harrow
Definition:
PLFodderLucerne2.h:34
pl_fl2_cut_to_silage2A
Definition:
PLFodderLucerne2.h:42
pl_fl2_start
Definition:
PLFodderLucerne2.h:32
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
Crop
The base class for all crops.
Definition:
farm.h:534
pl_fl2_cut_to_silage4B
Definition:
PLFodderLucerne2.h:53
pl_fl2_ferti_p1A
Definition:
PLFodderLucerne2.h:40
PLFodderLucerne2::PLFodderLucerne2
PLFodderLucerne2()
Definition:
PLFodderLucerne2.h:69
pl_fl2_cut_to_silage1B
Definition:
PLFodderLucerne2.h:45
pl_fl2_harrow2A
Definition:
PLFodderLucerne2.h:43
pl_fl2_ferti_p0
Definition:
PLFodderLucerne2.h:35
pl_fl2_ferti_s1B
Definition:
PLFodderLucerne2.h:48
pl_fl2_harrow3B
Definition:
PLFodderLucerne2.h:52
PLFODDERLUCERNE2_BASE
#define PLFODDERLUCERNE2_BASE
Definition:
PLFodderLucerne2.h:24
pl_fl2_sleep_all_day
Definition:
PLFodderLucerne2.h:33
pl_fl2_ferti_s0
Definition:
PLFodderLucerne2.h:36
pl_fl2_cut_to_silage2B
Definition:
PLFodderLucerne2.h:49
Farm
The base class for all farm types.
Definition:
farm.h:767
pl_fl2_ferti_s1A
Definition:
PLFodderLucerne2.h:41
pl_fl2_harrow1A
Definition:
PLFodderLucerne2.h:39
pl_fl2_cut_to_silage1A
Definition:
PLFodderLucerne2.h:38
PLFodderLucerne2ToDo
PLFodderLucerne2ToDo
Definition:
PLFodderLucerne2.h:31
pl_fl2_herbicide1
Definition:
PLFodderLucerne2.h:37
pl_fl2_cut_to_silage3B
Definition:
PLFodderLucerne2.h:51
Repo
ALMaSS_all
Landscape
cropprogs
PLFodderLucerne2.h
Generated on Wed Oct 2 2019 11:11:20 for ALMaSS Hare ODDox by
1.8.16