ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
NLMaizeSpring.h
Go to the documentation of this file.
1
16
//
17
// NLMaizeSpring.h
18
//
19
20
21
#ifndef NLMAIZESPRING_H
22
#define NLMAIZESPRING_H
23
24
#define NLMAIZESPRING_BASE 26400
25
28
#define NL_MS_START_FERTI a_field->m_user[1]
29
35
typedef
enum
{
36
nl_ms_start
= 1,
// Compulsory, must always be 1 (one).
37
nl_ms_sleep_all_day
=
NLMAIZESPRING_BASE
,
38
nl_ms_spring_plough_sandy
,
39
nl_ms_preseeding_cultivator
,
40
nl_ms_spring_sow_with_ferti
,
41
nl_ms_spring_sow
,
42
nl_ms_harrow
,
43
nl_ms_ferti_p2
,
44
nl_ms_ferti_s2
,
45
nl_ms_herbicide1
,
46
nl_ms_harvest
,
47
nl_ms_straw_chopping
,
48
}
NLMaizeSpringToDo
;
49
50
59
class
NLMaizeSpring
:
public
Crop
60
{
61
public
:
62
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
63
NLMaizeSpring
()
64
{
65
// When we start it off, the first possible date for a farm operation is 5th November
66
// This information is used by other crops when they decide how much post processing of
67
// the management is allowed after harvest before the next crop starts.
68
m_first_date
=g_date->DayInYear( 30,4 );
69
}
70
};
71
72
#endif // NLMAIZESPRING_H
73
nl_ms_preseeding_cultivator
Definition:
NLMaizeSpring.h:39
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
nl_ms_sleep_all_day
Definition:
NLMaizeSpring.h:37
NLMaizeSpring
NLMaizeSpring class .
Definition:
NLMaizeSpring.h:59
nl_ms_ferti_s2
Definition:
NLMaizeSpring.h:44
nl_ms_spring_sow_with_ferti
Definition:
NLMaizeSpring.h:40
nl_ms_herbicide1
Definition:
NLMaizeSpring.h:45
nl_ms_ferti_p2
Definition:
NLMaizeSpring.h:43
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
nl_ms_harrow
Definition:
NLMaizeSpring.h:42
nl_ms_spring_plough_sandy
Definition:
NLMaizeSpring.h:38
Crop
The base class for all crops.
Definition:
farm.h:534
NLMaizeSpring::NLMaizeSpring
NLMaizeSpring()
Definition:
NLMaizeSpring.h:63
NLMAIZESPRING_BASE
#define NLMAIZESPRING_BASE
Definition:
NLMaizeSpring.h:24
NLMaizeSpring::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:
NLMaizeSpring.cpp:64
nl_ms_spring_sow
Definition:
NLMaizeSpring.h:41
nl_ms_harvest
Definition:
NLMaizeSpring.h:46
nl_ms_straw_chopping
Definition:
NLMaizeSpring.h:47
Farm
The base class for all farm types.
Definition:
farm.h:767
NLMaizeSpringToDo
NLMaizeSpringToDo
Definition:
NLMaizeSpring.h:35
nl_ms_start
Definition:
NLMaizeSpring.h:36
Repo
ALMaSS_all
Landscape
cropprogs
NLMaizeSpring.h
Generated on Wed Oct 2 2019 11:11:19 for ALMaSS Hare ODDox by
1.8.16