ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
MaizeStrigling.h
Go to the documentation of this file.
1 //
2 // MaizeStrigling.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 MAIZEStrigling_H
29 #define MAIZEStrigling_H
30 
31 #define MAIZEStrigling_BASE 33600
32 #define MAIZEStrigling_SOW_DATE m_field->m_user[0]
33 #define MAIZEStrigling_HERBI_ONE_DATE m_field->m_user[1]
34 
35 typedef enum {
36  mas_start = 1, // Compulsory, start event must always be 1 (one).
54 } MaizeSToDo;
55 
56 
57 
58 class MaizeStrigling: public Crop
59 {
60 public:
61  bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
63  {
64  m_first_date=g_date->DayInYear(15,10);
65  }
66 };
67 
68 #endif // MAIZE_H
mas_fa_manure_b
Definition: MaizeStrigling.h:38
mas_fa_slurry_one
Definition: MaizeStrigling.h:40
mas_start
Definition: MaizeStrigling.h:36
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
mas_spring_sow
Definition: MaizeStrigling.h:43
mas_spring_plough
Definition: MaizeStrigling.h:41
mas_water_one
Definition: MaizeStrigling.h:48
mas_herbi_two
Definition: MaizeStrigling.h:53
mas_fa_npk
Definition: MaizeStrigling.h:44
mas_stubble
Definition: MaizeStrigling.h:51
Crop::m_first_date
int m_first_date
Definition: farm.h:540
mas_herbi_one
Definition: MaizeStrigling.h:52
Crop
The base class for all crops.
Definition: farm.h:534
MaizeStrigling::MaizeStrigling
MaizeStrigling()
Definition: MaizeStrigling.h:62
mas_fa_slurry_two
Definition: MaizeStrigling.h:46
mas_row_one
Definition: MaizeStrigling.h:45
MaizeStrigling
Definition: MaizeStrigling.h:58
mas_fa_manure_a
Definition: MaizeStrigling.h:37
mas_autumn_plough
Definition: MaizeStrigling.h:39
mas_spring_harrow
Definition: MaizeStrigling.h:42
MaizeSToDo
MaizeSToDo
Definition: MaizeStrigling.h:35
MaizeStrigling::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: MaizeStrigling.cpp:37
Farm
The base class for all farm types.
Definition: farm.h:767
mas_row_two
Definition: MaizeStrigling.h:47
MAIZEStrigling_BASE
#define MAIZEStrigling_BASE
Definition: MaizeStrigling.h:31
mas_water_two
Definition: MaizeStrigling.h:49
mas_harvest
Definition: MaizeStrigling.h:50