ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
SpringBarleySeed.h
Go to the documentation of this file.
1
//
2
// SpringBarleySeed.h
3
//
4
/*
5
*******************************************************************************************************
6
Copyright (c) 2011, Christopher John Topping, University of Aarhus
7
All rights reserved.
8
9
Redistribution and use in source and binary forms, with or without modification, are permitted provided
10
that the following conditions are met:
11
12
Redistributions of source code must retain the above copyright notice, this list of conditions and the
13
following disclaimer.
14
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
15
the following disclaimer in the documentation and/or other materials provided with the distribution.
16
17
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
18
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
19
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
20
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
22
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
********************************************************************************************************
26
*/
27
28
#ifndef SpringBarleySeed_H
29
#define SpringBarleySeed_H
30
31
#define SBARLEYSEED_BASE 7350
32
33
#define SBSE_FUNGI_DATE m_field->m_user[0]
34
#define SBSE_WATER_DATE m_field->m_user[1]
35
36
typedef
enum
{
37
sbse_start
= 1,
// Compulsory, start event must always be 1 (one).
38
sbse_autumn_plough
=
SBARLEYSEED_BASE
,
39
sbse_spring_plough
,
40
sbse_spring_harrow
,
41
sbse_fertnpk
,
42
sbse_fertlnh3
,
43
sbse_fertpk
,
44
sbse_spring_sow
,
45
sbse_spring_roll
,
46
sbse_herbicide_one
,
47
sbse_herbicide_two
,
48
sbse_fungicide_one
,
49
sbse_fungicide_two
,
50
sbse_GR
,
51
sbse_water_one
,
52
sbse_water_two
,
53
sbse_harvest
,
54
sbse_hay_bailing
,
55
sbse_burn_straw_stubble
56
}
SBSEToDo
;
57
58
59
60
class
SpringBarleySeed
:
public
Crop
61
{
62
public
:
63
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
64
SpringBarleySeed
()
65
{
66
m_first_date
=g_date->DayInYear(1,11);
67
}
68
};
69
70
#endif // SpringBarleySeed_H
sbse_fungicide_two
Definition:
SpringBarleySeed.h:49
sbse_fertlnh3
Definition:
SpringBarleySeed.h:42
SpringBarleySeed::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition:
SpringBarleySeed.cpp:37
sbse_burn_straw_stubble
Definition:
SpringBarleySeed.h:55
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
sbse_spring_plough
Definition:
SpringBarleySeed.h:39
sbse_water_two
Definition:
SpringBarleySeed.h:52
SBSEToDo
SBSEToDo
Definition:
SpringBarleySeed.h:36
sbse_spring_harrow
Definition:
SpringBarleySeed.h:40
sbse_fungicide_one
Definition:
SpringBarleySeed.h:48
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
Crop
The base class for all crops.
Definition:
farm.h:534
sbse_herbicide_two
Definition:
SpringBarleySeed.h:47
sbse_autumn_plough
Definition:
SpringBarleySeed.h:38
sbse_harvest
Definition:
SpringBarleySeed.h:53
SpringBarleySeed
Definition:
SpringBarleySeed.h:60
sbse_spring_sow
Definition:
SpringBarleySeed.h:44
sbse_hay_bailing
Definition:
SpringBarleySeed.h:54
sbse_water_one
Definition:
SpringBarleySeed.h:51
SBARLEYSEED_BASE
#define SBARLEYSEED_BASE
Definition:
SpringBarleySeed.h:31
sbse_start
Definition:
SpringBarleySeed.h:37
sbse_fertnpk
Definition:
SpringBarleySeed.h:41
Farm
The base class for all farm types.
Definition:
farm.h:767
sbse_GR
Definition:
SpringBarleySeed.h:50
SpringBarleySeed::SpringBarleySeed
SpringBarleySeed()
Definition:
SpringBarleySeed.h:64
sbse_fertpk
Definition:
SpringBarleySeed.h:43
sbse_herbicide_one
Definition:
SpringBarleySeed.h:46
sbse_spring_roll
Definition:
SpringBarleySeed.h:45
Repo
ALMaSS_all
Landscape
cropprogs
SpringBarleySeed.h
Generated on Wed Oct 2 2019 11:11:21 for ALMaSS Hare ODDox by
1.8.16