ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
OWinterBarley.h
Go to the documentation of this file.
1 //
2 // OWinterBarley.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 OWinterBarley_H
29 #define OWinterBarley_H
30 
31 #define OWBarley_BASE 5800
32 #define OWB_DID_SPRING_SOW m_field->m_user[0]
33 
34 typedef enum {
35  owb_start = 1, // Compulsory, start event must always be 1 (one).
50 // --FN--
51 } OWBToDo;
52 
53 
54 
55 class OWinterBarley: public Crop
56 {
57 public:
58  bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
60  {
61  m_first_date=g_date->DayInYear(23,9);
62  }
63 };
64 
65 #endif // OWinterBarley_H
owb_spring_sow
Definition: OWinterBarley.h:42
owb_fertslurry_plant
Definition: OWinterBarley.h:43
owb_fertmanure_plant_one
Definition: OWinterBarley.h:36
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
OWinterBarley::OWinterBarley
OWinterBarley()
Definition: OWinterBarley.h:59
owb_autumn_plough
Definition: OWinterBarley.h:38
owb_stubble_harrowing
Definition: OWinterBarley.h:49
OWBarley_BASE
#define OWBarley_BASE
Definition: OWinterBarley.h:31
owb_fertmanure_stock_one
Definition: OWinterBarley.h:37
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
owb_straw_chopping
Definition: OWinterBarley.h:47
owb_start
Definition: OWinterBarley.h:35
owb_harvest
Definition: OWinterBarley.h:46
owb_autumn_harrow
Definition: OWinterBarley.h:39
owb_fertslurry_stock
Definition: OWinterBarley.h:44
owb_hay_bailing
Definition: OWinterBarley.h:48
owb_strigling_two
Definition: OWinterBarley.h:45
OWinterBarley
Definition: OWinterBarley.h:55
Farm
The base class for all farm types.
Definition: farm.h:767
OWinterBarley::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: OWinterBarley.cpp:33
owb_strigling_one
Definition: OWinterBarley.h:41
owb_autumn_sow
Definition: OWinterBarley.h:40
OWBToDo
OWBToDo
Definition: OWinterBarley.h:34