ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
OTriticale.h
Go to the documentation of this file.
1 //
2 // OTriticale.h
3 //
4 /*
5 *******************************************************************************************************
6 Copyright (c) 2014, Christopher John Topping, Aarhus University
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 OTriticale_H
29 #define OTriticale_H
30 
31 #define OTRITICALE_BASE 7440
32 
33 #define OTRI_OCCUP_DATE m_field->m_user[0]
34 #define OTRI_WATER_DATE m_field->m_user[1]
35 
36 
37 typedef enum {
38  otri_start = 1, // Compulsory, start event must always be 1 (one).
55 
56 
57 
58 class OTriticale: 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(5,10);
65  }
66 };
67 
68 #endif // OTriticale_H
otri_hay_bailing
Definition: OTriticale.h:52
otri_harvest
Definition: OTriticale.h:49
otri_fa_slurry
Definition: OTriticale.h:46
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
otri_stubble_harrow
Definition: OTriticale.h:53
OTriticale
Definition: OTriticale.h:58
otri_spring_roll
Definition: OTriticale.h:44
OTriticale::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: OTriticale.cpp:38
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
otri_fa_manure
Definition: OTriticale.h:39
otri_chopping
Definition: OTriticale.h:50
otri_autumn_sow
Definition: OTriticale.h:42
otri_hay_turning
Definition: OTriticale.h:51
otri_fa_npk
Definition: OTriticale.h:45
otri_autumn_roll
Definition: OTriticale.h:43
OTriticale::OTriticale
OTriticale()
Definition: OTriticale.h:62
otri_water
Definition: OTriticale.h:48
otri_autumn_harrow
Definition: OTriticale.h:41
otri_strigling
Definition: OTriticale.h:47
OTriticaleToDo
OTriticaleToDo
Definition: OTriticale.h:37
OTRITICALE_BASE
#define OTRITICALE_BASE
Definition: OTriticale.h:31
otri_start
Definition: OTriticale.h:38
otri_autumn_plough
Definition: OTriticale.h:40
Farm
The base class for all farm types.
Definition: farm.h:767