ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
WinterBarleyStrigling.h
Go to the documentation of this file.
1
//
2
// WinterBarleyStrigling.h
3
//
4
/*
5
6
Copyright (c) 2003, National Environmental Research Institute, Denmark (NERI)
7
8
All rights reserved.
9
10
11
Redistribution and use in source and binary forms, with or without
12
modification, are permitted provided that the following conditions are met:
13
14
*) Redistributions of source code must retain the above copyright notice, this
15
list of conditions and the following disclaimer.
16
*) Redistributions in binary form must reproduce the above copyright notice,
17
this list of conditions and the following disclaimer in the documentation
18
and/or other materials provided with the distribution.
19
*) Neither the name of the NERI nor the names of its contributors
20
may be used to endorse or promote products derived from this software without
21
specific prior written permission.
22
23
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
POSSIBILITY OF SUCH DAMAGE.
34
35
*/
36
37
#ifndef WinterBarleyStrigling_H
38
#define WinterBarleyStrigling_H
39
40
#define WBarleyStrigling_BASE 30500
41
42
#define WBS_DID_SEVEN_ONE m_field->m_user[0]
43
#define WBS_DID_SEVEN_TWO m_field->m_user[1]
44
#define WBS_DID_SEVEN_THREE m_field->m_user[2]
45
#define WBS_DID_SEVEN_FOUR m_field->m_user[3]
46
47
#define WBS_FUNGICIDE_DATE m_field->m_user[4]
48
#define WBS_HERBICIDE_DATE m_field->m_user[5]
49
50
#define WBS_DID_EIGHT_ONE m_field->m_user[0]
51
#define WBS_DID_EIGHT_TWO m_field->m_user[1]
52
#define WBS_DID_EIGHT_THREE m_field->m_user[2]
53
#define WBS_DID_EIGHT_FOUR m_field->m_user[3]
54
55
typedef
enum
{
56
wbs_start
= 1,
// Compulsory, start event must always be 1 (one).
57
wbs_fertsludge_plant_one
=
WBarleyStrigling_BASE
,
58
wbs_fertmanure_stock
,
59
wbs_fertslurry_stock_one
,
60
wbs_autumn_plough
,
61
wbs_autumn_harrow
,
62
wbs_autumn_sow
,
63
wbs_strigling_one
,
64
wbs_fertmanganese_plant_one
,
65
wbs_fertmanganese_plant_two
,
66
wbs_fertnpk_plant_one
,
67
wbs_fertnpk_plant_two
,
68
wbs_fertslurry_stock_two
,
69
wbs_fertnpk_stock_one
,
70
wbs_fertnpk_stock_two
,
71
wbs_strigling_two
,
72
wbs_fungicide_one
,
73
wbs_switchboard
,
74
wbs_fungicide_two
,
75
wbs_growth_reg
,
76
wbs_water
,
77
wbs_insecticide
,
78
wbs_harvest
,
79
wbs_hay_turning
,
80
wbs_hay_bailing
,
81
wbs_stubble_harrowing
82
// --FN--
83
}
WBTSoDo
;
84
85
86
87
class
WinterBarleyStrigling
:
public
Crop
88
{
89
public
:
90
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
91
WinterBarleyStrigling
()
92
{
93
m_first_date
=g_date->DayInYear(15,9);
94
}
95
};
96
97
#endif // WinterBarley_H
wbs_start
Definition:
WinterBarleyStrigling.h:56
WinterBarleyStrigling::WinterBarleyStrigling
WinterBarleyStrigling()
Definition:
WinterBarleyStrigling.h:91
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
wbs_water
Definition:
WinterBarleyStrigling.h:76
wbs_autumn_harrow
Definition:
WinterBarleyStrigling.h:61
wbs_fertnpk_plant_two
Definition:
WinterBarleyStrigling.h:67
wbs_autumn_sow
Definition:
WinterBarleyStrigling.h:62
WBarleyStrigling_BASE
#define WBarleyStrigling_BASE
Definition:
WinterBarleyStrigling.h:40
wbs_fertnpk_stock_two
Definition:
WinterBarleyStrigling.h:70
wbs_strigling_two
Definition:
WinterBarleyStrigling.h:71
wbs_fertmanganese_plant_two
Definition:
WinterBarleyStrigling.h:65
wbs_autumn_plough
Definition:
WinterBarleyStrigling.h:60
wbs_hay_bailing
Definition:
WinterBarleyStrigling.h:80
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
wbs_fertslurry_stock_one
Definition:
WinterBarleyStrigling.h:59
Crop
The base class for all crops.
Definition:
farm.h:534
wbs_stubble_harrowing
Definition:
WinterBarleyStrigling.h:81
wbs_insecticide
Definition:
WinterBarleyStrigling.h:77
wbs_fungicide_two
Definition:
WinterBarleyStrigling.h:74
wbs_fertsludge_plant_one
Definition:
WinterBarleyStrigling.h:57
WinterBarleyStrigling::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition:
WinterBarleyStrigling.cpp:38
WinterBarleyStrigling
Definition:
WinterBarleyStrigling.h:87
wbs_fertnpk_plant_one
Definition:
WinterBarleyStrigling.h:66
wbs_fungicide_one
Definition:
WinterBarleyStrigling.h:72
wbs_strigling_one
Definition:
WinterBarleyStrigling.h:63
wbs_growth_reg
Definition:
WinterBarleyStrigling.h:75
WBTSoDo
WBTSoDo
Definition:
WinterBarleyStrigling.h:55
Farm
The base class for all farm types.
Definition:
farm.h:767
wbs_fertnpk_stock_one
Definition:
WinterBarleyStrigling.h:69
wbs_fertslurry_stock_two
Definition:
WinterBarleyStrigling.h:68
wbs_hay_turning
Definition:
WinterBarleyStrigling.h:79
wbs_switchboard
Definition:
WinterBarleyStrigling.h:73
wbs_harvest
Definition:
WinterBarleyStrigling.h:78
wbs_fertmanure_stock
Definition:
WinterBarleyStrigling.h:58
wbs_fertmanganese_plant_one
Definition:
WinterBarleyStrigling.h:64
Repo
ALMaSS_all
Landscape
cropprogs
WinterBarleyStrigling.h
Generated on Wed Oct 2 2019 11:11:21 for ALMaSS Hare ODDox by
1.8.16