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).
55 
56 
65 class PLFodderLucerne2 : public Crop
66 {
67 public:
68  virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev);
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