ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
NLCabbageSpring.h
Go to the documentation of this file.
1 
16 //
17 // NLCabbageSpring.h
18 //
19 
20 
21 #ifndef NLCABBAGESPRING_H
22 #define NLCABBAGESPRING_H
23 
24 #define NLCABBAGESPRING_BASE 25700
25 
28 #define NL_CABS_WINTER_PLOUGH a_field->m_user[1]
29 
35 typedef enum {
36  nl_cabs_start = 1, // Compulsory, must always be 1 (one).
61 
62 
71 class NLCabbageSpring: public Crop
72 {
73  public:
74  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
76  {
77  // When we start it off, the first possible date for a farm operation is 20th October
78  // This information is used by other crops when they decide how much post processing of
79  // the management is allowed after harvest before the next crop starts.
80  m_first_date=g_date->DayInYear( 15,4 );
81  }
82 };
83 
84 #endif // NLCABBAGESPRING_H
85 
nl_cabs_spring_planting
Definition: NLCabbageSpring.h:42
nl_cabs_insecticide2
Definition: NLCabbageSpring.h:50
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
nl_cabs_ferti_s4
Definition: NLCabbageSpring.h:57
nl_cabs_fungicide3
Definition: NLCabbageSpring.h:48
nl_cabs_weeding1
Definition: NLCabbageSpring.h:43
nl_cabs_fungicide1
Definition: NLCabbageSpring.h:46
NLCabbageSpringToDo
NLCabbageSpringToDo
Definition: NLCabbageSpring.h:35
nl_cabs_sleep_all_day
Definition: NLCabbageSpring.h:37
Crop::m_first_date
int m_first_date
Definition: farm.h:540
nl_cabs_preseeding_cultivator
Definition: NLCabbageSpring.h:41
nl_cabs_ferti_p3
Definition: NLCabbageSpring.h:54
Crop
The base class for all crops.
Definition: farm.h:534
nl_cabs_weeding2
Definition: NLCabbageSpring.h:45
nl_cabs_watering
Definition: NLCabbageSpring.h:58
nl_cabs_harvest
Definition: NLCabbageSpring.h:59
NLCABBAGESPRING_BASE
#define NLCABBAGESPRING_BASE
Definition: NLCabbageSpring.h:24
nl_cabs_spring_plough_sandy
Definition: NLCabbageSpring.h:38
NLCabbageSpring
NLCabbageSpring class .
Definition: NLCabbageSpring.h:71
nl_cabs_insecticide3
Definition: NLCabbageSpring.h:51
nl_cabs_herbicide1
Definition: NLCabbageSpring.h:44
nl_cabs_ferti_s2
Definition: NLCabbageSpring.h:53
nl_cabs_start
Definition: NLCabbageSpring.h:36
nl_cabs_fungicide2
Definition: NLCabbageSpring.h:47
nl_cabs_ferti_p4
Definition: NLCabbageSpring.h:56
Farm
The base class for all farm types.
Definition: farm.h:767
NLCabbageSpring::NLCabbageSpring
NLCabbageSpring()
Definition: NLCabbageSpring.h:75
nl_cabs_insecticide1
Definition: NLCabbageSpring.h:49
nl_cabs_ferti_s1
Definition: NLCabbageSpring.h:40
nl_cabs_ferti_p2
Definition: NLCabbageSpring.h:52
nl_cabs_ferti_s3
Definition: NLCabbageSpring.h:55
NLCabbageSpring::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: NLCabbageSpring.cpp:64
nl_cabs_ferti_p1
Definition: NLCabbageSpring.h:39