ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
NLCatchPeaCrop.h
Go to the documentation of this file.
1 
16 //
17 // NLCatchPeaCrop.h
18 //
19 
20 
21 #ifndef NLCATCHPEACROP_H
22 #define NLCATCHPEACROP_H
23 
24 #define NLCATCHPEACROP_BASE 26100
25 
31 typedef enum {
32  nl_cpc_start = 1, // Compulsory, must always be 1 (one).
44 
45 
54 class NLCatchPeaCrop: public Crop
55 {
56  public:
57  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
59  {
60  // When we start it off, the first possible date for a farm operation is 5th November
61  // This information is used by other crops when they decide how much post processing of
62  // the management is allowed after harvest before the next crop starts.
63  m_first_date=g_date->DayInYear( 10,10 );
65  }
66 };
67 
68 #endif // NLCATCHPEACROP_H
69 
nl_cpc_ferti_s2_sandy
Definition: NLCatchPeaCrop.h:42
tocc_Catch
Definition: farm.h:216
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
nl_cpc_ferti_s2_clay
Definition: NLCatchPeaCrop.h:39
nl_cpc_ferti_s1
Definition: NLCatchPeaCrop.h:36
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
NLCATCHPEACROP_BASE
#define NLCATCHPEACROP_BASE
Definition: NLCatchPeaCrop.h:24
nl_cpc_sleep_all_day
Definition: NLCatchPeaCrop.h:33
NLCatchPeaCrop::NLCatchPeaCrop
NLCatchPeaCrop()
Definition: NLCatchPeaCrop.h:58
nl_cpc_start
Definition: NLCatchPeaCrop.h:32
nl_cpc_winter_plough_clay
Definition: NLCatchPeaCrop.h:40
NLCatchPeaCropToDo
NLCatchPeaCropToDo
Definition: NLCatchPeaCrop.h:31
nl_cpc_stubble_cultivator
Definition: NLCatchPeaCrop.h:34
nl_cpc_ferti_p2_clay
Definition: NLCatchPeaCrop.h:38
Farm
The base class for all farm types.
Definition: farm.h:767
nl_cpc_ferti_p1
Definition: NLCatchPeaCrop.h:35
NLCatchPeaCrop
NLCatchPeaCrop class .
Definition: NLCatchPeaCrop.h:54
Crop::SetCropClassification
void SetCropClassification(int a_classification)
Definition: farm.h:569
nl_cpc_preseeding_cultivator_with_sow
Definition: NLCatchPeaCrop.h:37
NLCatchPeaCrop::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: NLCatchPeaCrop.cpp:56
nl_cpc_ferti_p2_sandy
Definition: NLCatchPeaCrop.h:41