ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
NLPotatoesSpring.h
Go to the documentation of this file.
1 
16 //
17 // NLPotatoesSpring.h
18 //
19 
20 
21 #ifndef NLPOTATOESSPRING_H
22 #define NLPOTATOESSPRING_H
23 
24 #define NLPOTATOESSPRING_BASE 26500
25 
28 #define NL_POTS_HERBI a_field->m_user[1]
29 #define NL_POTS_FUNGI1 a_field->m_user[2]
30 #define NL_POTS_FUNGI2 a_field->m_user[3]
31 #define NL_POTS_FUNGI3 a_field->m_user[4]
32 #define NL_POTS_FUNGI4 a_field->m_user[5]
33 #define NL_POTS_FUNGI5 a_field->m_user[6]
34 
40 typedef enum {
41  nl_pots_start = 1, // Compulsory, must always be 1 (one).
79 
80 
89 class NLPotatoesSpring: public Crop
90 {
91  public:
92  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
94  {
95  // When we start it off, the first possible date for a farm operation is 5th November
96  // This information is used by other crops when they decide how much post processing of
97  // the management is allowed after harvest before the next crop starts.
98  m_first_date=g_date->DayInYear( 30,4 );
99  }
100 };
101 
102 #endif // NLPOTATOESSPRING_H
103 
nl_pots_dessication2
Definition: NLPotatoesSpring.h:76
nl_pots_fungicide2
Definition: NLPotatoesSpring.h:60
nl_pots_hilling1
Definition: NLPotatoesSpring.h:50
nl_pots_herbicide1
Definition: NLPotatoesSpring.h:57
nl_pots_herbicide2
Definition: NLPotatoesSpring.h:58
nl_pots_ferti_s4
Definition: NLPotatoesSpring.h:56
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
nl_pots_dessication1
Definition: NLPotatoesSpring.h:75
nl_pots_ferti_p3_clay
Definition: NLPotatoesSpring.h:51
nl_pots_fungicide12
Definition: NLPotatoesSpring.h:70
nl_pots_ferti_s3_clay
Definition: NLPotatoesSpring.h:52
nl_pots_start
Definition: NLPotatoesSpring.h:41
nl_pots_fungicide8
Definition: NLPotatoesSpring.h:66
NLPotatoesSpring::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: NLPotatoesSpring.cpp:64
NLPotatoesSpringToDo
NLPotatoesSpringToDo
Definition: NLPotatoesSpring.h:40
Crop::m_first_date
int m_first_date
Definition: farm.h:540
nl_pots_ferti_s2_sandy
Definition: NLPotatoesSpring.h:47
nl_pots_ferti_p2_sandy
Definition: NLPotatoesSpring.h:46
nl_pots_spring_plough_sandy
Definition: NLPotatoesSpring.h:45
nl_pots_fungicide9
Definition: NLPotatoesSpring.h:67
Crop
The base class for all crops.
Definition: farm.h:534
nl_pots_ferti_p3_sandy
Definition: NLPotatoesSpring.h:53
NLPotatoesSpring
NLPotatoesSpring class .
Definition: NLPotatoesSpring.h:89
nl_pots_fungicide3
Definition: NLPotatoesSpring.h:61
nl_pots_fungicide4
Definition: NLPotatoesSpring.h:62
nl_pots_fungicide14
Definition: NLPotatoesSpring.h:72
nl_pots_fungicide13
Definition: NLPotatoesSpring.h:71
nl_pots_ferti_p2_clay
Definition: NLPotatoesSpring.h:43
nl_pots_ferti_s2_clay
Definition: NLPotatoesSpring.h:44
nl_pots_spring_planting
Definition: NLPotatoesSpring.h:49
nl_pots_harvest
Definition: NLPotatoesSpring.h:77
nl_pots_ferti_s3_sandy
Definition: NLPotatoesSpring.h:54
nl_pots_fungicide7
Definition: NLPotatoesSpring.h:65
nl_pots_fungicide11
Definition: NLPotatoesSpring.h:69
NLPotatoesSpring::NLPotatoesSpring
NLPotatoesSpring()
Definition: NLPotatoesSpring.h:93
NLPOTATOESSPRING_BASE
#define NLPOTATOESSPRING_BASE
Definition: NLPotatoesSpring.h:24
nl_pots_fungicide15
Definition: NLPotatoesSpring.h:73
nl_pots_ferti_p4
Definition: NLPotatoesSpring.h:55
Farm
The base class for all farm types.
Definition: farm.h:767
nl_pots_fungicide5
Definition: NLPotatoesSpring.h:63
nl_pots_fungicide6
Definition: NLPotatoesSpring.h:64
nl_pots_fungicide1
Definition: NLPotatoesSpring.h:59
nl_pots_sleep_all_day
Definition: NLPotatoesSpring.h:42
nl_pots_bed_forming
Definition: NLPotatoesSpring.h:48
nl_pots_fungicide10
Definition: NLPotatoesSpring.h:68
nl_pots_insecticide
Definition: NLPotatoesSpring.h:74