ALMaSS Vole ODDox  1.1
The vole model description following ODdox protocol
OWinterRye.h
Go to the documentation of this file.
1 //
2 // OWinterRye.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 OWinterRye_H
29 #define OWinterRye_H
30 
31 #define OWRYE_BASE 5400
32 
33 typedef enum {
34  owry_start = 1, // Compulsory, start event must always be 1 (one).
53 
54 
55 
56 class OWinterRye: public Crop
57 {
58 public:
59  bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
61  {
62  m_first_date=g_date->DayInYear(23,9);
63  }
64 };
65 
66 #endif // OWinterRye_H
owry_start
Definition: OWinterRye.h:34
owry_strigling_three
Definition: OWinterRye.h:45
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
owry_spring_sow
Definition: OWinterRye.h:44
OWinterRye::OWinterRye
OWinterRye()
Definition: OWinterRye.h:60
owry_straw_chopping_plant
Definition: OWinterRye.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
owry_autumn_harrow
Definition: OWinterRye.h:40
owry_fertslurry_plant
Definition: OWinterRye.h:37
owry_harvest
Definition: OWinterRye.h:47
owry_strigling_two
Definition: OWinterRye.h:43
owry_fertmanure_stock
Definition: OWinterRye.h:36
owry_fertmanure_plant
Definition: OWinterRye.h:35
OWRYE_BASE
#define OWRYE_BASE
Definition: OWinterRye.h:31
owry_autumn_sow
Definition: OWinterRye.h:41
OWinterRyeToDo
OWinterRyeToDo
Definition: OWinterRye.h:33
owry_strigling_one
Definition: OWinterRye.h:42
Farm
The base class for all farm types.
Definition: farm.h:767
owry_hay_bailing
Definition: OWinterRye.h:51
owry_hay_turning
Definition: OWinterRye.h:50
owry_autumn_plough
Definition: OWinterRye.h:39
owry_straw_chopping_stock
Definition: OWinterRye.h:49
owry_fertslurry_stock
Definition: OWinterRye.h:38
owry_spring_roll
Definition: OWinterRye.h:46
OWinterRye::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: OWinterRye.cpp:33
OWinterRye
Definition: OWinterRye.h:56