ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
BarleyPeaCloverGrassStrigling.h
Go to the documentation of this file.
1 //
2 // SpringBarleyPeaCloverGrassStrigling.h
3 //
4 /*
5 
6 Copyright (c) 2003, National Environmental Research Institute, Denmark (NERI)
7 
8 All rights reserved.
9 
10 
11 Redistribution and use in source and binary forms, with or without
12 modification, are permitted provided that the following conditions are met:
13 
14 *) Redistributions of source code must retain the above copyright notice, this
15 list of conditions and the following disclaimer.
16 *) Redistributions in binary form must reproduce the above copyright notice,
17 this list of conditions and the following disclaimer in the documentation
18 and/or other materials provided with the distribution.
19 *) Neither the name of the NERI nor the names of its contributors
20 may be used to endorse or promote products derived from this software without
21 specific prior written permission.
22 
23 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 POSSIBILITY OF SUCH DAMAGE.
34 
35 */
36 
37 #ifndef SpringBarleyPeaCloverGrassStrigling_H
38 #define SpringBarleyPeaCloverGrassStrigling_H
39 
40 #define SBARLEYPCGS_BASE 30800
41 #define SBPCGS_ISAUTUMNPLOUGH m_field->m_user[0]
42 #define SBPCGS_FERTI_DONE m_field->m_user[1]
43 #define SBPCGS_SPRAY m_field->m_user[2]
44 
45 typedef enum {
46  sbpcgs_start = 1, // Compulsory, start event must always be 1 (one).
65 } SBPCGSToDo;
66 
67 
68 
70 {
71 public:
72  bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
74  {
75  m_first_date=g_date->DayInYear(30,11);
76  }
77 };
78 
79 #endif // SpringBarleyPeaCloverGrass_H
sbpcgs_hay_baling
Definition: BarleyPeaCloverGrassStrigling.h:57
sbpcgs_water2
Definition: BarleyPeaCloverGrassStrigling.h:60
sbpcgs_cattle_out
Definition: BarleyPeaCloverGrassStrigling.h:63
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
sbpcgs_spring_plough
Definition: BarleyPeaCloverGrassStrigling.h:51
sbpcgs_fungicide
Definition: BarleyPeaCloverGrassStrigling.h:62
sbpcgs_spring_sow
Definition: BarleyPeaCloverGrassStrigling.h:55
Crop::m_first_date
int m_first_date
Definition: farm.h:540
SpringBarleyPeaCloverGrassStrigling::SpringBarleyPeaCloverGrassStrigling
SpringBarleyPeaCloverGrassStrigling()
Definition: BarleyPeaCloverGrassStrigling.h:73
Crop
The base class for all crops.
Definition: farm.h:534
sbpcgs_autumn_plough
Definition: BarleyPeaCloverGrassStrigling.h:52
SBARLEYPCGS_BASE
#define SBARLEYPCGS_BASE
Definition: BarleyPeaCloverGrassStrigling.h:40
sbpcgs_spring_roll
Definition: BarleyPeaCloverGrassStrigling.h:54
sbpcgs_ferti_s1
Definition: BarleyPeaCloverGrassStrigling.h:47
SBPCGSToDo
SBPCGSToDo
Definition: BarleyPeaCloverGrassStrigling.h:45
sbpcgs_spring_harrow
Definition: BarleyPeaCloverGrassStrigling.h:53
sbpcgs_harvest
Definition: BarleyPeaCloverGrassStrigling.h:50
sbpcgs_insecticide
Definition: BarleyPeaCloverGrassStrigling.h:61
sbpcgs_water1
Definition: BarleyPeaCloverGrassStrigling.h:59
sbpcgs_GR
Definition: BarleyPeaCloverGrassStrigling.h:58
SpringBarleyPeaCloverGrassStrigling
Definition: BarleyPeaCloverGrassStrigling.h:69
sbpcgs_start
Definition: BarleyPeaCloverGrassStrigling.h:46
Farm
The base class for all farm types.
Definition: farm.h:767
sbpcgs_ferti_s3
Definition: BarleyPeaCloverGrassStrigling.h:49
sbpcgs_ferti_s2
Definition: BarleyPeaCloverGrassStrigling.h:48
sbpcgs_cattle_is_out
Definition: BarleyPeaCloverGrassStrigling.h:64
sbpcgs_strigling_sow
Definition: BarleyPeaCloverGrassStrigling.h:56
SpringBarleyPeaCloverGrassStrigling::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: SpringBarleyPeaCloverGrassStrigling.cpp:38