ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
NLBeetSpring.h
Go to the documentation of this file.
1
16
//
17
// NLBeetSpring.h
18
//
19
20
21
#ifndef NLBEETSPRING_H
22
#define NLBEETSPRING_H
23
24
#define NLBEETSPRING_BASE 26200
25
28
#define NL_BES_HERBI1 a_field->m_user[1]
29
#define NL_BES_FUNGI1 a_field->m_user[2]
30
31
37
typedef
enum
{
38
nl_bes_start
= 1,
// Compulsory, must always be 1 (one).
39
nl_bes_sleep_all_day
=
NLBEETSPRING_BASE
,
40
nl_bes_spring_plough_sandy
,
41
nl_bes_ferti_p1
,
42
nl_bes_ferti_s1
,
43
nl_bes_preseeding_cultivator
,
44
nl_bes_spring_sow
,
45
nl_bes_ferti_p2
,
46
nl_bes_ferti_s2
,
47
nl_bes_herbicide1
,
48
nl_bes_herbicide2
,
49
nl_bes_herbicide3
,
50
nl_bes_herbicide4
,
51
nl_bes_fungicide1
,
52
nl_bes_fungicide2
,
53
nl_bes_fungicide3
,
54
nl_bes_harvest
,
55
}
NLBeetSpringToDo
;
56
57
66
class
NLBeetSpring
:
public
Crop
67
{
68
public
:
69
virtual
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
70
NLBeetSpring
()
71
{
72
// When we start it off, the first possible date for a farm operation is 20th October
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,3 );
76
}
77
};
78
79
#endif // NLBEETSPRING_H
80
nl_bes_harvest
Definition:
NLBeetSpring.h:54
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
nl_bes_herbicide4
Definition:
NLBeetSpring.h:50
nl_bes_ferti_s2
Definition:
NLBeetSpring.h:46
nl_bes_herbicide3
Definition:
NLBeetSpring.h:49
nl_bes_ferti_p1
Definition:
NLBeetSpring.h:41
nl_bes_ferti_s1
Definition:
NLBeetSpring.h:42
NLBeetSpringToDo
NLBeetSpringToDo
Definition:
NLBeetSpring.h:37
NLBEETSPRING_BASE
#define NLBEETSPRING_BASE
Definition:
NLBeetSpring.h:24
nl_bes_preseeding_cultivator
Definition:
NLBeetSpring.h:43
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
NLBeetSpring::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:
NLBeetSpring.cpp:64
Crop
The base class for all crops.
Definition:
farm.h:534
nl_bes_start
Definition:
NLBeetSpring.h:38
nl_bes_spring_sow
Definition:
NLBeetSpring.h:44
nl_bes_spring_plough_sandy
Definition:
NLBeetSpring.h:40
nl_bes_sleep_all_day
Definition:
NLBeetSpring.h:39
NLBeetSpring
NLBeetSpring class .
Definition:
NLBeetSpring.h:66
nl_bes_herbicide2
Definition:
NLBeetSpring.h:48
Farm
The base class for all farm types.
Definition:
farm.h:767
nl_bes_herbicide1
Definition:
NLBeetSpring.h:47
nl_bes_ferti_p2
Definition:
NLBeetSpring.h:45
nl_bes_fungicide2
Definition:
NLBeetSpring.h:52
NLBeetSpring::NLBeetSpring
NLBeetSpring()
Definition:
NLBeetSpring.h:70
nl_bes_fungicide1
Definition:
NLBeetSpring.h:51
nl_bes_fungicide3
Definition:
NLBeetSpring.h:53
Repo
ALMaSS_all
Landscape
cropprogs
NLBeetSpring.h
Generated on Wed Oct 2 2019 11:11:19 for ALMaSS Hare ODDox by
1.8.16