ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
NLCarrots.h
Go to the documentation of this file.
1 
16 //
17 // NLCarrots.h
18 //
19 
20 
21 #ifndef NLCARROTS_H
22 #define NLCARROTS_H
23 
24 #define NLCARROTS_BASE 25100
25 
28 #define NL_CA_WINTER_PLOUGH a_field->m_user[1]
29 #define NL_CA_HERBI1 a_field->m_user[2]
30 #define NL_CA_HERBI2 a_field->m_user[3]
31 #define NL_CA_FUNGI1 a_field->m_user[4]
32 #define NL_CA_FUNGI2 a_field->m_user[5]
33 
39 typedef enum {
40  nl_ca_start = 1, // Compulsory, must always be 1 (one).
60 
61 
70 class NLCarrots: public Crop
71 {
72  public:
73  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
75  {
76  // When we start it off, the first possible date for a farm operation is 20th October
77  // This information is used by other crops when they decide how much post processing of
78  // the management is allowed after harvest before the next crop starts.
79  m_first_date=g_date->DayInYear( 1,12 );
80  }
81 };
82 
83 #endif // NLCARROTS_H
84 
NLCARROTS_BASE
#define NLCARROTS_BASE
Definition: NLCarrots.h:24
nl_ca_ferti_p1
Definition: NLCarrots.h:45
nl_ca_fungicide3
Definition: NLCarrots.h:57
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
nl_ca_spring_sow
Definition: NLCarrots.h:49
nl_ca_ferti_s1
Definition: NLCarrots.h:46
nl_ca_herbicide2
Definition: NLCarrots.h:53
nl_ca_harvest
Definition: NLCarrots.h:58
nl_ca_sleep_all_day
Definition: NLCarrots.h:41
nl_ca_start
Definition: NLCarrots.h:40
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
nl_ca_preseeding_cultivator
Definition: NLCarrots.h:47
nl_ca_winter_deep_harrow_clay
Definition: NLCarrots.h:44
nl_ca_fungicide2
Definition: NLCarrots.h:56
nl_ca_herbicide1
Definition: NLCarrots.h:52
nl_ca_ferti_s2
Definition: NLCarrots.h:51
NLCarrots::NLCarrots
NLCarrots()
Definition: NLCarrots.h:74
nl_ca_spring_plough_sandy
Definition: NLCarrots.h:42
NLCarrotsToDo
NLCarrotsToDo
Definition: NLCarrots.h:39
nl_ca_fungicide1
Definition: NLCarrots.h:55
nl_ca_winter_plough_clay
Definition: NLCarrots.h:43
Farm
The base class for all farm types.
Definition: farm.h:767
nl_ca_bed_forming
Definition: NLCarrots.h:48
nl_ca_herbicide3
Definition: NLCarrots.h:54
NLCarrots
NLCarrots class .
Definition: NLCarrots.h:70
nl_ca_ferti_p2
Definition: NLCarrots.h:50
NLCarrots::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: NLCarrots.cpp:64