ALMaSS Vole ODDox  1.1
The vole model description following ODdox protocol
WWheatPTreatment.h
Go to the documentation of this file.
1 //
2 // WWheatPTreatment.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 WWHEATPTREATMENT_H
38 #define WWHEATPTREATMENT_H
39 
40 #define WWHEATPTREATMENT_BASE 60050
41 #define WWP_WAIT_FOR_PLOUGH m_field->m_user[0]
42 #define WWP_AUTUMN_PLOUGH m_field->m_user[1]
43 
44 typedef enum {
45  wwpt_start = 1, // Compulsory, must always be 1 (one).
82 
83 
84 class WWheatPTreatment: public Crop
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 // WHEATPCONTROL_H
WWheatPTreatment::WWheatPTreatment
WWheatPTreatment()
Definition: WWheatPTreatment.h:88
WinterWheatTreatmentToDo
WinterWheatTreatmentToDo
Definition: WWheatPTreatment.h:44
wwpt_fungicide2
Definition: WWheatPTreatment.h:61
wwpt_grubning
Definition: WWheatPTreatment.h:80
wwpt_water1
Definition: WWheatPTreatment.h:67
wwpt_harvest
Definition: WWheatPTreatment.h:75
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
wwpt_autumn_sow
Definition: WWheatPTreatment.h:53
wwpt_ferti_p4
Definition: WWheatPTreatment.h:70
wwpt_hay_baling
Definition: WWheatPTreatment.h:78
wwpt_herbicide2
Definition: WWheatPTreatment.h:58
wwpt_hay_turning
Definition: WWheatPTreatment.h:77
WWheatPTreatment::Do
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: WWheatPTreatment.cpp:44
wwpt_ferti_s3
Definition: WWheatPTreatment.h:72
wwpt_ferti_s1
Definition: WWheatPTreatment.h:48
wwpt_ferti_p2
Definition: WWheatPTreatment.h:55
wwpt_strigling1
Definition: WWheatPTreatment.h:65
Crop::m_first_date
int m_first_date
Definition: farm.h:540
wwpt_autumn_harrow
Definition: WWheatPTreatment.h:51
wwpt_ferti_s2
Definition: WWheatPTreatment.h:49
Crop
The base class for all crops.
Definition: farm.h:534
wwpt_straw_chopping
Definition: WWheatPTreatment.h:76
wwpt_insecticide1
Definition: WWheatPTreatment.h:62
wwpt_insecticide3
Definition: WWheatPTreatment.h:64
WWHEATPTREATMENT_BASE
#define WWHEATPTREATMENT_BASE
Definition: WWheatPTreatment.h:40
wwpt_start
Definition: WWheatPTreatment.h:45
wwpt_stubble_harrow2
Definition: WWheatPTreatment.h:79
wwpt_ferti_p5
Definition: WWheatPTreatment.h:71
wwpt_stubble_harrow1
Definition: WWheatPTreatment.h:52
wwpt_strigling2
Definition: WWheatPTreatment.h:66
wwpt_ferti_p3
Definition: WWheatPTreatment.h:69
wwpt_water2
Definition: WWheatPTreatment.h:68
wwpt_autumn_plough
Definition: WWheatPTreatment.h:50
wwpt_ferti_s4
Definition: WWheatPTreatment.h:73
wwpt_autumn_roll
Definition: WWheatPTreatment.h:54
wwpt_spring_roll
Definition: WWheatPTreatment.h:57
wwpt_herbicide1
Definition: WWheatPTreatment.h:56
Farm
The base class for all farm types.
Definition: farm.h:767
wwpt_sleep_all_day
Definition: WWheatPTreatment.h:46
wwpt_GR
Definition: WWheatPTreatment.h:59
wwpt_ferti_s5
Definition: WWheatPTreatment.h:74
wwpt_ferti_p1
Definition: WWheatPTreatment.h:47
wwpt_fungicide
Definition: WWheatPTreatment.h:60
WWheatPTreatment
Definition: WWheatPTreatment.h:84
wwpt_insecticide2
Definition: WWheatPTreatment.h:63