ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
OSeedGrass1.h
Go to the documentation of this file.
1 //
2 // OSeedGrass1.h
3 //
4 /*
5 *******************************************************************************************************
6 Copyright (c) 2011, 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 #ifndef OSEEDGRASS1_H
28 #define OSEEDGRASS1_H
29 
30 #define OSEEDGRASS1_BASE 420
31 #define SG1_WATER_DATE m_field->m_user[0]
32 
33 typedef enum {
34  osg1_start = 1, // Compulsory, start event must always be 1 (one).
44 
45 
46 
47 class OSeedGrass1: public Crop
48 {
49 public:
50  bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
52  {
53  m_first_date=g_date->DayInYear(14,3);
54  }
55 };
56 
57 #endif // OSEEDGRASS1_H
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
OSeedGrass1
Definition: OSeedGrass1.h:47
osg1_ferti_zero
Definition: OSeedGrass1.h:35
Crop::m_first_date
int m_first_date
Definition: farm.h:540
osg1_swarth
Definition: OSeedGrass1.h:38
osg1_harvest
Definition: OSeedGrass1.h:39
Crop
The base class for all crops.
Definition: farm.h:534
OSEEDGRASS1_BASE
#define OSEEDGRASS1_BASE
Definition: OSeedGrass1.h:30
OSeedGrass1::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: OSeedGrass1.cpp:36
osg1_compress
Definition: OSeedGrass1.h:41
OSeedGrass1ToDo
OSeedGrass1ToDo
Definition: OSeedGrass1.h:33
osg1_start
Definition: OSeedGrass1.h:34
OSeedGrass1::OSeedGrass1
OSeedGrass1()
Definition: OSeedGrass1.h:51
Farm
The base class for all farm types.
Definition: farm.h:767
osg1_water_zero_b
Definition: OSeedGrass1.h:37
osg1_burn_straw
Definition: OSeedGrass1.h:42
osg1_strawchopping
Definition: OSeedGrass1.h:40
osg1_water_zero
Definition: OSeedGrass1.h:36