ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
NLBeet.h
Go to the documentation of this file.
1 
16 //
17 // NLBeet.h
18 //
19 
20 
21 #ifndef NLBEET_H
22 #define NLBEET_H
23 
24 #define NLBEET_BASE 25000
25 
28 #define NL_BE_HERBI1 a_field->m_user[1]
29 #define NL_BE_FUNGI1 a_field->m_user[2]
30 
31 
37 typedef enum {
38  nl_be_start = 1, // Compulsory, must always be 1 (one).
58 } NLBeetToDo;
59 
60 
69 class NLBeet: public Crop
70 {
71  public:
72  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
74  {
75  // When we start it off, the first possible date for a farm operation is 20th October
76  // This information is used by other crops when they decide how much post processing of
77  // the management is allowed after harvest before the next crop starts.
78  m_first_date=g_date->DayInYear( 31,10 );
79  }
80 };
81 
82 #endif // NLBEET_H
83 
nl_be_ferti_s2
Definition: NLBeet.h:49
NLBeetToDo
NLBeetToDo
Definition: NLBeet.h:37
nl_be_stubble_harrow_sandy
Definition: NLBeet.h:40
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
NLBeet::NLBeet
NLBeet()
Definition: NLBeet.h:73
nl_be_sleep_all_day
Definition: NLBeet.h:39
nl_be_preseeding_cultivator
Definition: NLBeet.h:46
nl_be_fungicide3
Definition: NLBeet.h:56
nl_be_spring_plough_sandy
Definition: NLBeet.h:41
nl_be_ferti_p2
Definition: NLBeet.h:48
nl_be_herbicide2
Definition: NLBeet.h:51
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
nl_be_ferti_s1
Definition: NLBeet.h:45
nl_be_stubble_harrow_clay
Definition: NLBeet.h:42
NLBeet
NLBeet class .
Definition: NLBeet.h:69
nl_be_ferti_p1
Definition: NLBeet.h:44
nl_be_fungicide1
Definition: NLBeet.h:54
nl_be_fungicide2
Definition: NLBeet.h:55
nl_be_harvest
Definition: NLBeet.h:57
nl_be_herbicide4
Definition: NLBeet.h:53
nl_be_herbicide3
Definition: NLBeet.h:52
nl_be_winter_plough_clay
Definition: NLBeet.h:43
nl_be_spring_sow
Definition: NLBeet.h:47
Farm
The base class for all farm types.
Definition: farm.h:767
nl_be_start
Definition: NLBeet.h:38
nl_be_herbicide1
Definition: NLBeet.h:50
NLBEET_BASE
#define NLBEET_BASE
Definition: NLBeet.h:24
NLBeet::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: NLBeet.cpp:64