ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
WinterRyeStrigling.h
Go to the documentation of this file.
1
//
2
// WinterRyeStrigling.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 WinterRyeStrigling_H
38
#define WinterRyeStrigling_H
39
40
#define WRYES_BASE 30700
41
#define WRYS_DID_MANURE m_field->m_user[0]
42
#define WRYS_DID_SLUDGE m_field->m_user[1]
43
44
typedef
enum
{
45
wrys_start
= 1,
// Compulsory, start event must always be 1 (one).
46
wrys_fertmanure_stock
=
WRYES_BASE
,
47
wrys_fertsludge_stock
,
48
wrys_autumn_plough
,
49
wrys_autumn_harrow
,
50
wrys_autumn_sow
,
51
wrys_autumn_roll
,
52
wrys_fertmanganese_plant_one
,
53
wrys_fertnpk_plant
,
54
wrys_fertmanganese_plant_two
,
55
wrys_fertslurry_stock
,
56
wrys_fert_ammonium_stock
,
57
wrys_spring_roll
,
58
wrys_growth_reg_one
,
59
wrys_strigling_one
,
60
wrys_strigling_two
,
61
wrys_strigling_three
,
62
wrys_growth_reg_two
,
63
wrys_fungicide
,
64
wrys_insecticide
,
65
wrys_water
,
66
wrys_harvest
,
67
wrys_straw_chopping
,
68
wrys_hay_turning
,
69
wrys_hay_bailing
,
70
wrys_stubble_harrowing
71
}
WinterRyeSToDo
;
72
73
74
75
class
WinterRyeStrigling
:
public
Crop
76
{
77
public
:
78
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
79
WinterRyeStrigling
()
80
{
81
m_first_date
=g_date->DayInYear(10,10);
82
}
83
};
84
85
#endif // WinterRye_H
wrys_growth_reg_one
Definition:
WinterRyeStrigling.h:58
wrys_stubble_harrowing
Definition:
WinterRyeStrigling.h:70
wrys_autumn_sow
Definition:
WinterRyeStrigling.h:50
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
wrys_fertsludge_stock
Definition:
WinterRyeStrigling.h:47
wrys_fertnpk_plant
Definition:
WinterRyeStrigling.h:53
wrys_fertmanganese_plant_one
Definition:
WinterRyeStrigling.h:52
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
wrys_strigling_two
Definition:
WinterRyeStrigling.h:60
WinterRyeStrigling::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition:
WinterRyeStrigling.cpp:38
Crop
The base class for all crops.
Definition:
farm.h:534
wrys_harvest
Definition:
WinterRyeStrigling.h:66
wrys_fertslurry_stock
Definition:
WinterRyeStrigling.h:55
WinterRyeSToDo
WinterRyeSToDo
Definition:
WinterRyeStrigling.h:44
wrys_autumn_roll
Definition:
WinterRyeStrigling.h:51
wrys_autumn_plough
Definition:
WinterRyeStrigling.h:48
WinterRyeStrigling::WinterRyeStrigling
WinterRyeStrigling()
Definition:
WinterRyeStrigling.h:79
wrys_water
Definition:
WinterRyeStrigling.h:65
wrys_hay_bailing
Definition:
WinterRyeStrigling.h:69
wrys_insecticide
Definition:
WinterRyeStrigling.h:64
wrys_fertmanure_stock
Definition:
WinterRyeStrigling.h:46
wrys_autumn_harrow
Definition:
WinterRyeStrigling.h:49
wrys_hay_turning
Definition:
WinterRyeStrigling.h:68
wrys_fungicide
Definition:
WinterRyeStrigling.h:63
WRYES_BASE
#define WRYES_BASE
Definition:
WinterRyeStrigling.h:40
Farm
The base class for all farm types.
Definition:
farm.h:767
wrys_strigling_one
Definition:
WinterRyeStrigling.h:59
wrys_strigling_three
Definition:
WinterRyeStrigling.h:61
wrys_growth_reg_two
Definition:
WinterRyeStrigling.h:62
WinterRyeStrigling
Definition:
WinterRyeStrigling.h:75
wrys_fertmanganese_plant_two
Definition:
WinterRyeStrigling.h:54
wrys_spring_roll
Definition:
WinterRyeStrigling.h:57
wrys_straw_chopping
Definition:
WinterRyeStrigling.h:67
wrys_start
Definition:
WinterRyeStrigling.h:45
wrys_fert_ammonium_stock
Definition:
WinterRyeStrigling.h:56
Repo
ALMaSS_all
Landscape
cropprogs
WinterRyeStrigling.h
Generated on Wed Oct 2 2019 11:11:21 for ALMaSS Hare ODDox by
1.8.16