ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
OBarleyPeaCloverGrass.h
Go to the documentation of this file.
1 //
2 // OBarleyPeaCloverGrass.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 OBarleyPeaCloverGrass_H
29 #define OBarleyPeaCloverGrass_H
30 
31 #define OBPCG_BASE 4500
32 
33 typedef enum {
34  obpcg_start = 1, // Compulsory, start event must always be 1 (one).
49 } OBPCGToDo;
50 
51 
52 
54 {
55 public:
56  bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
58  {
59  m_first_date=g_date->DayInYear(1,3);
60  }
61 };
62 
63 #endif // OBarleyPeaCloverGrass_H
OBPCG_BASE
#define OBPCG_BASE
Definition: OBarleyPeaCloverGrass.h:31
obpcg_harvest
Definition: OBarleyPeaCloverGrass.h:38
obpcg_water2
Definition: OBarleyPeaCloverGrass.h:37
obpcg_ferti_one
Definition: OBarleyPeaCloverGrass.h:39
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
OBarleyPeaCloverGrass
Definition: OBarleyPeaCloverGrass.h:53
obpcg_cattle_out
Definition: OBarleyPeaCloverGrass.h:47
Crop::m_first_date
int m_first_date
Definition: farm.h:540
obpcg_spring_sow1
Definition: OBarleyPeaCloverGrass.h:44
Crop
The base class for all crops.
Definition: farm.h:534
obpcg_spring_harrow
Definition: OBarleyPeaCloverGrass.h:41
obpcg_start
Definition: OBarleyPeaCloverGrass.h:34
obpcg_spring_sow2
Definition: OBarleyPeaCloverGrass.h:45
OBarleyPeaCloverGrass::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: OBarleyPeaCloverGrass.cpp:33
obpcg_spring_plough
Definition: OBarleyPeaCloverGrass.h:40
obpcg_spring_roll
Definition: OBarleyPeaCloverGrass.h:42
OBPCGToDo
OBPCGToDo
Definition: OBarleyPeaCloverGrass.h:33
OBarleyPeaCloverGrass::OBarleyPeaCloverGrass
OBarleyPeaCloverGrass()
Definition: OBarleyPeaCloverGrass.h:57
obpcg_cattle_is_out
Definition: OBarleyPeaCloverGrass.h:48
Farm
The base class for all farm types.
Definition: farm.h:767
obpcg_water1
Definition: OBarleyPeaCloverGrass.h:36
obpcg_spring_sow
Definition: OBarleyPeaCloverGrass.h:43
obpcg_cut_to_silage
Definition: OBarleyPeaCloverGrass.h:46
obpcg_ferti_zero
Definition: OBarleyPeaCloverGrass.h:35