ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
NLCarrotsSpring.h
Go to the documentation of this file.
1 
16 //
17 // NLCarrotsSpring.h
18 //
19 
20 
21 #ifndef NLCARROTSSPRING_H
22 #define NLCARROTSSPRING_H
23 
24 #define NLCARROTSSPRING_BASE 26300
25 
28 #define NL_CAS_WINTER_PLOUGH a_field->m_user[1]
29 #define NL_CAS_HERBI1 a_field->m_user[2]
30 #define NL_CAS_HERBI2 a_field->m_user[3]
31 #define NL_CAS_FUNGI1 a_field->m_user[4]
32 #define NL_CAS_FUNGI2 a_field->m_user[5]
33 
39 typedef enum {
40  nl_cas_start = 1, // Compulsory, must always be 1 (one).
58 
59 
68 class NLCarrotsSpring: public Crop
69 {
70  public:
71  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
73  {
74  // When we start it off, the first possible date for a farm operation is 20th October
75  // This information is used by other crops when they decide how much post processing of
76  // the management is allowed after harvest before the next crop starts.
77  m_first_date=g_date->DayInYear( 31,3 );
78  }
79 };
80 
81 #endif // NLCARROTSSPRING_H
82 
nl_cas_herbicide1
Definition: NLCarrotsSpring.h:50
nl_cas_harvest
Definition: NLCarrotsSpring.h:56
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
nl_cas_ferti_s2
Definition: NLCarrotsSpring.h:49
nl_cas_spring_sow
Definition: NLCarrotsSpring.h:47
NLCarrotsSpring
NLCarrotsSpring class .
Definition: NLCarrotsSpring.h:68
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
nl_cas_ferti_p1
Definition: NLCarrotsSpring.h:43
nl_cas_herbicide3
Definition: NLCarrotsSpring.h:52
NLCARROTSSPRING_BASE
#define NLCARROTSSPRING_BASE
Definition: NLCarrotsSpring.h:24
nl_cas_ferti_s1
Definition: NLCarrotsSpring.h:44
nl_cas_preseeding_cultivator
Definition: NLCarrotsSpring.h:45
NLCarrotsSpring::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: NLCarrotsSpring.cpp:64
nl_cas_ferti_p2
Definition: NLCarrotsSpring.h:48
nl_cas_fungicide1
Definition: NLCarrotsSpring.h:53
NLCarrotsSpringToDo
NLCarrotsSpringToDo
Definition: NLCarrotsSpring.h:39
nl_cas_sleep_all_day
Definition: NLCarrotsSpring.h:41
nl_cas_fungicide2
Definition: NLCarrotsSpring.h:54
nl_cas_start
Definition: NLCarrotsSpring.h:40
nl_cas_spring_plough_sandy
Definition: NLCarrotsSpring.h:42
Farm
The base class for all farm types.
Definition: farm.h:767
nl_cas_bed_forming
Definition: NLCarrotsSpring.h:46
nl_cas_fungicide3
Definition: NLCarrotsSpring.h:55
nl_cas_herbicide2
Definition: NLCarrotsSpring.h:51
NLCarrotsSpring::NLCarrotsSpring
NLCarrotsSpring()
Definition: NLCarrotsSpring.h:72