ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
NLCabbage.h
Go to the documentation of this file.
1 
16 //
17 // NLCabbage.h
18 //
19 
20 
21 #ifndef NLCABBAGE_H
22 #define NLCABBAGE_H
23 
24 #define NLCABBAGE_BASE 25600
25 
28 #define NL_CAB_WINTER_PLOUGH a_field->m_user[1]
29 
35 typedef enum {
36  nl_cab_start = 1, // Compulsory, must always be 1 (one).
64 
65 
74 class NLCabbage: public Crop
75 {
76  public:
77  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
79  {
80  // When we start it off, the first possible date for a farm operation is 20th October
81  // This information is used by other crops when they decide how much post processing of
82  // the management is allowed after harvest before the next crop starts.
83  m_first_date=g_date->DayInYear( 1,12 );
84  }
85 };
86 
87 #endif // NLCABBAGE_H
88 
nl_cab_ferti_p2
Definition: NLCabbage.h:42
nl_cab_ferti_s3
Definition: NLCabbage.h:56
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
nl_cab_sleep_all_day
Definition: NLCabbage.h:37
NLCabbageToDo
NLCabbageToDo
Definition: NLCabbage.h:35
nl_cab_spring_planting
Definition: NLCabbage.h:45
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
nl_cab_preseeding_cultivator
Definition: NLCabbage.h:44
nl_cab_weeding1
Definition: NLCabbage.h:46
nl_cab_ferti_p5
Definition: NLCabbage.h:59
nl_cab_fungicide3
Definition: NLCabbage.h:51
NLCABBAGE_BASE
#define NLCABBAGE_BASE
Definition: NLCabbage.h:24
NLCabbage
NLCabbage class .
Definition: NLCabbage.h:74
nl_cab_watering
Definition: NLCabbage.h:61
nl_cab_ferti_s4
Definition: NLCabbage.h:58
nl_cab_insecticide1
Definition: NLCabbage.h:52
nl_cab_winter_plough_clay
Definition: NLCabbage.h:38
NLCabbage::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: NLCabbage.cpp:64
nl_cab_spring_plough_sandy
Definition: NLCabbage.h:41
nl_cab_ferti_s5
Definition: NLCabbage.h:60
nl_cab_insecticide2
Definition: NLCabbage.h:53
nl_cab_fungicide1
Definition: NLCabbage.h:49
NLCabbage::NLCabbage
NLCabbage()
Definition: NLCabbage.h:78
nl_cab_fungicide2
Definition: NLCabbage.h:50
nl_cab_ferti_s1
Definition: NLCabbage.h:40
nl_cab_ferti_p1
Definition: NLCabbage.h:39
nl_cab_harvest
Definition: NLCabbage.h:62
nl_cab_start
Definition: NLCabbage.h:36
nl_cab_ferti_s2
Definition: NLCabbage.h:43
Farm
The base class for all farm types.
Definition: farm.h:767
nl_cab_herbicide1
Definition: NLCabbage.h:47
nl_cab_ferti_p4
Definition: NLCabbage.h:57
nl_cab_insecticide3
Definition: NLCabbage.h:54
nl_cab_ferti_p3
Definition: NLCabbage.h:55
nl_cab_weeding2
Definition: NLCabbage.h:48