ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
OOats.h
Go to the documentation of this file.
1 //
2 // OOats.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 OOats_h
29 #define OOats_h
30 
31 #define OOats_BASE 6200
32 
33 #define OOA_SOW_DATE m_field->m_user[0]
34 #define OOA_DID_STRIGLING_ONE m_field->m_user[1]
35 
36 typedef enum {
37  ooa_start = 1, // Compulsory, start event must always be 1 (one).
52 // --FN--
53 } OOAToDo;
54 
55 
56 
57 class OOats: public Crop
58 {
59 public:
60  bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
62  {
63  m_first_date=g_date->DayInYear(5,3);
64  }
65 };
66 
67 #endif // OOats_h
OOats_BASE
#define OOats_BASE
Definition: OOats.h:31
OOAToDo
OOAToDo
Definition: OOats.h:36
ooa_autumn_plough
Definition: OOats.h:38
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
ooa_strigling_three
Definition: OOats.h:48
ooa_spring_sow_two
Definition: OOats.h:44
OOats
Definition: OOats.h:57
ooa_straw_chopping
Definition: OOats.h:50
ooa_spring_roll
Definition: OOats.h:45
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
ooa_strigling_two
Definition: OOats.h:47
ooa_harvest
Definition: OOats.h:49
ooa_hay_bailing
Definition: OOats.h:51
ooa_spring_plough
Definition: OOats.h:40
ooa_fertmanure_stock
Definition: OOats.h:39
OOats::OOats
OOats()
Definition: OOats.h:61
ooa_strigling_one
Definition: OOats.h:46
ooa_spring_harrow
Definition: OOats.h:41
ooa_fertslurry_stock
Definition: OOats.h:42
Farm
The base class for all farm types.
Definition: farm.h:767
ooa_spring_sow_one
Definition: OOats.h:43
OOats::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: OOats.cpp:33
ooa_start
Definition: OOats.h:37