ALMaSS Vole ODDox  1.1
The vole model description following ODdox protocol
WWheatPToxicControl.h
Go to the documentation of this file.
1 //
2 // WWheatPToxicControl.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 WWHEATPTOXICCONTROL_H
38 #define WWHEATPTOXICCONTROL_H
39 
40 #define WWHEATPTOXICCONTROL_BASE 60100
41 #define WWTC_WAIT_FOR_PLOUGH m_field->m_user[0]
42 #define WWTC_AUTUMN_PLOUGH m_field->m_user[1]
43 
44 typedef enum {
45  wwptc_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 );
88 };
89 
90 #endif // WHEATPTOXICCONTROL_H
wwptc_hay_turning
Definition: WWheatPToxicControl.h:77
wwptc_autumn_plough
Definition: WWheatPToxicControl.h:50
WWheatPToxicControl::Do
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: WWheatPToxicControl.cpp:39
wwptc_straw_chopping
Definition: WWheatPToxicControl.h:76
wwptc_ferti_p2
Definition: WWheatPToxicControl.h:55
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
wwptc_insecticide3
Definition: WWheatPToxicControl.h:64
wwptc_ferti_p1
Definition: WWheatPToxicControl.h:47
wwptc_strigling2
Definition: WWheatPToxicControl.h:66
wwptc_start
Definition: WWheatPToxicControl.h:45
wwptc_stubble_harrow1
Definition: WWheatPToxicControl.h:52
wwptc_GR
Definition: WWheatPToxicControl.h:59
wwptc_ferti_s2
Definition: WWheatPToxicControl.h:49
wwptc_ferti_s3
Definition: WWheatPToxicControl.h:72
wwptc_harvest
Definition: WWheatPToxicControl.h:75
wwptc_sleep_all_day
Definition: WWheatPToxicControl.h:46
wwptc_ferti_p4
Definition: WWheatPToxicControl.h:70
wwptc_ferti_p5
Definition: WWheatPToxicControl.h:71
wwptc_stubble_harrow2
Definition: WWheatPToxicControl.h:79
Crop
The base class for all crops.
Definition: farm.h:534
WWHEATPTOXICCONTROL_BASE
#define WWHEATPTOXICCONTROL_BASE
Definition: WWheatPToxicControl.h:40
wwptc_grubning
Definition: WWheatPToxicControl.h:80
WinterWheatPToxicControlToDo
WinterWheatPToxicControlToDo
Definition: WWheatPToxicControl.h:44
wwptc_herbicide2
Definition: WWheatPToxicControl.h:58
wwptc_autumn_roll
Definition: WWheatPToxicControl.h:54
wwptc_hay_baling
Definition: WWheatPToxicControl.h:78
wwptc_fungicide
Definition: WWheatPToxicControl.h:60
wwptc_autumn_sow
Definition: WWheatPToxicControl.h:53
wwptc_ferti_s1
Definition: WWheatPToxicControl.h:48
wwptc_fungicide2
Definition: WWheatPToxicControl.h:61
wwptc_ferti_p3
Definition: WWheatPToxicControl.h:69
WWheatPToxicControl
Definition: WWheatPToxicControl.h:84
wwptc_spring_roll
Definition: WWheatPToxicControl.h:57
wwptc_water1
Definition: WWheatPToxicControl.h:67
Farm
The base class for all farm types.
Definition: farm.h:767
wwptc_insecticide2
Definition: WWheatPToxicControl.h:63
wwptc_strigling1
Definition: WWheatPToxicControl.h:65
wwptc_insecticide1
Definition: WWheatPToxicControl.h:62
wwptc_autumn_harrow
Definition: WWheatPToxicControl.h:51
wwptc_water2
Definition: WWheatPToxicControl.h:68
wwptc_herbicide1
Definition: WWheatPToxicControl.h:56
wwptc_ferti_s4
Definition: WWheatPToxicControl.h:73
wwptc_ferti_s5
Definition: WWheatPToxicControl.h:74