ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
WinterWheatStrigling.h
Go to the documentation of this file.
1 //
2 // WinterWheatStrigling.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 WINTERWHEATStrigling_H
38 #define WINTERWHEATStrigling_H
39 
40 #define WINTERWHEATStrigling_BASE 5150
41 #define WWStrigling_WAIT_FOR_PLOUGH m_field->m_user[0]
42 #define WWStrigling_AUTUMN_PLOUGH m_field->m_user[1]
43 
44 typedef enum {
45  wws_start = 1, // Compulsory, must always be 1 (one).
82 
83 
85 {
86  public:
87  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
89  {
90  m_first_date=g_date->DayInYear( 1,10 );
91  }
92 };
93 
94 #endif // WINTERWHEATStrigling_H
WinterWheatStrigling
Definition: WinterWheatStrigling.h:84
wws_straw_chopping
Definition: WinterWheatStrigling.h:76
wws_strigling0a
Definition: WinterWheatStrigling.h:56
wws_ferti_p1
Definition: WinterWheatStrigling.h:47
wws_strigling1
Definition: WinterWheatStrigling.h:65
wws_stubble_harrow1
Definition: WinterWheatStrigling.h:52
wws_grubning
Definition: WinterWheatStrigling.h:80
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
wws_strigling2
Definition: WinterWheatStrigling.h:66
wws_start
Definition: WinterWheatStrigling.h:45
WinterWheatStriglingToDo
WinterWheatStriglingToDo
Definition: WinterWheatStrigling.h:44
wws_ferti_s5
Definition: WinterWheatStrigling.h:74
wws_ferti_p4
Definition: WinterWheatStrigling.h:70
wws_autumn_roll
Definition: WinterWheatStrigling.h:54
WinterWheatStrigling::Do
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: WinterWheatStrigling.cpp:38
wws_ferti_p5
Definition: WinterWheatStrigling.h:71
wws_harvest
Definition: WinterWheatStrigling.h:75
Crop::m_first_date
int m_first_date
Definition: farm.h:540
wws_strigling0b
Definition: WinterWheatStrigling.h:58
wws_GR
Definition: WinterWheatStrigling.h:59
wws_autumn_plough
Definition: WinterWheatStrigling.h:50
Crop
The base class for all crops.
Definition: farm.h:534
wws_water2
Definition: WinterWheatStrigling.h:68
wws_insecticide3
Definition: WinterWheatStrigling.h:64
wws_insecticide2
Definition: WinterWheatStrigling.h:63
wws_fungicide2
Definition: WinterWheatStrigling.h:61
wws_ferti_s1
Definition: WinterWheatStrigling.h:48
wws_autumn_harrow
Definition: WinterWheatStrigling.h:51
wws_hay_baling
Definition: WinterWheatStrigling.h:78
wws_ferti_s4
Definition: WinterWheatStrigling.h:73
wws_hay_turning
Definition: WinterWheatStrigling.h:77
wws_fungicide
Definition: WinterWheatStrigling.h:60
WinterWheatStrigling::WinterWheatStrigling
WinterWheatStrigling()
Definition: WinterWheatStrigling.h:88
wws_stubble_harrow2
Definition: WinterWheatStrigling.h:79
wws_ferti_s3
Definition: WinterWheatStrigling.h:72
wws_spring_roll
Definition: WinterWheatStrigling.h:57
wws_ferti_p2
Definition: WinterWheatStrigling.h:55
wws_insecticide1
Definition: WinterWheatStrigling.h:62
Farm
The base class for all farm types.
Definition: farm.h:767
WINTERWHEATStrigling_BASE
#define WINTERWHEATStrigling_BASE
Definition: WinterWheatStrigling.h:40
wws_ferti_s2
Definition: WinterWheatStrigling.h:49
wws_water1
Definition: WinterWheatStrigling.h:67
wws_sleep_all_day
Definition: WinterWheatStrigling.h:46
wws_ferti_p3
Definition: WinterWheatStrigling.h:69
wws_autumn_sow
Definition: WinterWheatStrigling.h:53