ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
NLMaize.h
Go to the documentation of this file.
1
16
//
17
// NLMaize.h
18
//
19
20
21
#ifndef NLMAIZE_H
22
#define NLMAIZE_H
23
24
#define NLMAIZE_BASE 25200
25
28
#define NL_M_START_FERTI a_field->m_user[1]
29
35
typedef
enum
{
36
nl_m_start
= 1,
// Compulsory, must always be 1 (one).
37
nl_m_sleep_all_day
=
NLMAIZE_BASE
,
38
nl_m_stubble_harrow1
,
39
nl_m_stubble_harrow2
,
40
nl_m_winter_plough1
,
41
nl_m_winter_plough2
,
42
nl_m_ferti_p1
,
43
nl_m_ferti_s1
,
44
nl_m_spring_plough1
,
45
nl_m_spring_plough2
,
46
nl_m_preseeding_cultivator
,
47
nl_m_spring_sow_with_ferti
,
48
nl_m_spring_sow
,
49
nl_m_harrow
,
50
nl_m_ferti_p2
,
51
nl_m_ferti_s2
,
52
nl_m_herbicide1
,
53
nl_m_harvest
,
54
nl_m_straw_chopping
,
55
}
NLMaizeToDo
;
56
57
66
class
NLMaize
:
public
Crop
67
{
68
public
:
69
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
70
NLMaize
()
71
{
72
// When we start it off, the first possible date for a farm operation is 5th November
73
// This information is used by other crops when they decide how much post processing of
74
// the management is allowed after harvest before the next crop starts.
75
m_first_date
=g_date->DayInYear( 31,10 );
76
}
77
};
78
79
#endif // NLMAIZE_H
80
nl_m_ferti_p1
Definition:
NLMaize.h:42
nl_m_spring_sow_with_ferti
Definition:
NLMaize.h:47
nl_m_stubble_harrow2
Definition:
NLMaize.h:39
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
nl_m_spring_sow
Definition:
NLMaize.h:48
NLMAIZE_BASE
#define NLMAIZE_BASE
Definition:
NLMaize.h:24
nl_m_winter_plough2
Definition:
NLMaize.h:41
NLMaize::NLMaize
NLMaize()
Definition:
NLMaize.h:70
nl_m_harrow
Definition:
NLMaize.h:49
nl_m_spring_plough2
Definition:
NLMaize.h:45
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
Crop
The base class for all crops.
Definition:
farm.h:534
NLMaize
NLMaize class .
Definition:
NLMaize.h:66
nl_m_spring_plough1
Definition:
NLMaize.h:44
nl_m_sleep_all_day
Definition:
NLMaize.h:37
nl_m_ferti_p2
Definition:
NLMaize.h:50
nl_m_winter_plough1
Definition:
NLMaize.h:40
NLMaizeToDo
NLMaizeToDo
Definition:
NLMaize.h:35
nl_m_start
Definition:
NLMaize.h:36
nl_m_harvest
Definition:
NLMaize.h:53
NLMaize::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:
NLMaize.cpp:64
Farm
The base class for all farm types.
Definition:
farm.h:767
nl_m_ferti_s1
Definition:
NLMaize.h:43
nl_m_straw_chopping
Definition:
NLMaize.h:54
nl_m_herbicide1
Definition:
NLMaize.h:52
nl_m_stubble_harrow1
Definition:
NLMaize.h:38
nl_m_preseeding_cultivator
Definition:
NLMaize.h:46
nl_m_ferti_s2
Definition:
NLMaize.h:51
Repo
ALMaSS_all
Landscape
cropprogs
NLMaize.h
Generated on Wed Oct 2 2019 11:11:19 for ALMaSS Hare ODDox by
1.8.16