ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
WinterRye.h
Go to the documentation of this file.
1
//
2
// WinterRye.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 WinterRye_H
38
#define WinterRye_H
39
40
#define WRYE_BASE 5500
41
#define WRY_DID_MANURE m_field->m_user[0]
42
#define WRY_DID_SLUDGE m_field->m_user[1]
43
#define WRY_DECIDE_TO_HERB m_field->m_user[2]
44
45
typedef
enum
{
46
wry_start
= 1,
// Compulsory, start event must always be 1 (one).
47
wry_fertmanure_stock
=
WRYE_BASE
,
48
wry_fertsludge_stock
,
49
wry_autumn_plough
,
50
wry_autumn_harrow
,
51
wry_autumn_sow
,
52
wry_autumn_roll
,
53
wry_fertmanganese_plant_one
,
54
wry_fertnpk_plant
,
55
wry_fertmanganese_plant_two
,
56
wry_fertslurry_stock
,
57
wry_fert_ammonium_stock
,
58
wry_spring_roll
,
59
wry_strigling
,
60
wry_growth_reg_one
,
61
wry_herbicide
,
62
wry_herbicide_two
,
//added 030513
63
wry_growth_reg_two
,
64
wry_fungicide
,
65
wry_insecticide
,
66
wry_water
,
67
wry_harvest
,
68
wry_straw_chopping
,
69
wry_hay_turning
,
70
wry_hay_bailing
,
71
wry_stubble_harrowing
72
}
WinterRyeToDo
;
73
74
75
76
class
WinterRye
:
public
Crop
77
{
78
public
:
79
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
80
WinterRye
()
81
{
82
m_first_date
=g_date->DayInYear(11,10);
83
}
84
};
85
86
#endif // WinterRye_H
wry_fungicide
Definition:
WinterRye.h:64
wry_fertmanure_stock
Definition:
WinterRye.h:47
wry_fertnpk_plant
Definition:
WinterRye.h:54
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
wry_herbicide
Definition:
WinterRye.h:61
wry_water
Definition:
WinterRye.h:66
wry_fert_ammonium_stock
Definition:
WinterRye.h:57
wry_insecticide
Definition:
WinterRye.h:65
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
wry_hay_turning
Definition:
WinterRye.h:69
Crop
The base class for all crops.
Definition:
farm.h:534
wry_fertsludge_stock
Definition:
WinterRye.h:48
wry_growth_reg_two
Definition:
WinterRye.h:63
wry_autumn_roll
Definition:
WinterRye.h:52
WinterRye::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition:
WinterRye.cpp:37
wry_harvest
Definition:
WinterRye.h:67
WinterRyeToDo
WinterRyeToDo
Definition:
WinterRye.h:45
wry_herbicide_two
Definition:
WinterRye.h:62
wry_spring_roll
Definition:
WinterRye.h:58
wry_autumn_plough
Definition:
WinterRye.h:49
WinterRye
Definition:
WinterRye.h:76
wry_autumn_sow
Definition:
WinterRye.h:51
wry_growth_reg_one
Definition:
WinterRye.h:60
WRYE_BASE
#define WRYE_BASE
Definition:
WinterRye.h:40
wry_straw_chopping
Definition:
WinterRye.h:68
wry_fertmanganese_plant_two
Definition:
WinterRye.h:55
wry_strigling
Definition:
WinterRye.h:59
Farm
The base class for all farm types.
Definition:
farm.h:767
wry_stubble_harrowing
Definition:
WinterRye.h:71
wry_fertmanganese_plant_one
Definition:
WinterRye.h:53
wry_autumn_harrow
Definition:
WinterRye.h:50
wry_start
Definition:
WinterRye.h:46
wry_hay_bailing
Definition:
WinterRye.h:70
WinterRye::WinterRye
WinterRye()
Definition:
WinterRye.h:80
wry_fertslurry_stock
Definition:
WinterRye.h:56
Repo
ALMaSS_all
Landscape
cropprogs
WinterRye.h
Generated on Wed Oct 2 2019 11:11:21 for ALMaSS Hare ODDox by
1.8.16