ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
AgroChemIndustryCereal.h
Go to the documentation of this file.
1 //
2 // AgroChemIndustryCereal.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 SYNGENTACEREAL_H
38 #define SYNGENTACEREAL_H
39 
40 #define SYNGENTACEREAL_BASE 7300
41 #define SC_WAIT_FOR_PLOUGH m_field->m_user[0]
42 #define SC_AUTUMN_PLOUGH m_field->m_user[1]
43 
44 const int April1 = 91;
45 const int May1 = 121;
46 const int June1 = 152;
47 const int July1 = 182;
48 
49 typedef enum {
50  sc_start = 1, // Compulsory, must always be 1 (one).
61  sc_herbicide1, //7310
71  sc_strigling2, //7320
80  sc_harvest, //7329
87 
88 
90 {
91  public:
92  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
94  {
95  m_first_date=g_date->DayInYear(15,9);
96  }
97  int GetSprayDate();
98 };
99 
100 #endif // SYNGENTACEREAL_H
sc_insecticide2
Definition: AgroChemIndustryCereal.h:68
sc_hay_baling
Definition: AgroChemIndustryCereal.h:83
AgroChemIndustryCereal::Do
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: AgroChemIndustryCereal.cpp:56
sc_water1
Definition: AgroChemIndustryCereal.h:72
sc_ferti_p1
Definition: AgroChemIndustryCereal.h:52
AgroChemIndustryCereal::GetSprayDate
int GetSprayDate()
Definition: AgroChemIndustryCereal.cpp:622
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
sc_GR
Definition: AgroChemIndustryCereal.h:64
sc_autumn_roll
Definition: AgroChemIndustryCereal.h:59
sc_sleep_all_day
Definition: AgroChemIndustryCereal.h:51
sc_fungicide
Definition: AgroChemIndustryCereal.h:65
sc_fungicide2
Definition: AgroChemIndustryCereal.h:66
sc_insecticide3
Definition: AgroChemIndustryCereal.h:69
AgroChemIndustryCereal::AgroChemIndustryCereal
AgroChemIndustryCereal()
Definition: AgroChemIndustryCereal.h:93
Crop::m_first_date
int m_first_date
Definition: farm.h:540
sc_ferti_s3
Definition: AgroChemIndustryCereal.h:77
AgroChemIndustryCereal
Definition: AgroChemIndustryCereal.h:89
April1
const int April1
Definition: AgroChemIndustryCereal.h:44
Crop
The base class for all crops.
Definition: farm.h:534
sc_ferti_s1
Definition: AgroChemIndustryCereal.h:53
sc_stubble_harrow1
Definition: AgroChemIndustryCereal.h:57
sc_herbicide1
Definition: AgroChemIndustryCereal.h:61
sc_start
Definition: AgroChemIndustryCereal.h:50
sc_ferti_p2
Definition: AgroChemIndustryCereal.h:60
sc_autumn_sow
Definition: AgroChemIndustryCereal.h:58
sc_stubble_harrow2
Definition: AgroChemIndustryCereal.h:84
June1
const int June1
Definition: AgroChemIndustryCereal.h:46
sc_ferti_s2
Definition: AgroChemIndustryCereal.h:54
sc_strigling1
Definition: AgroChemIndustryCereal.h:70
sc_autumn_plough
Definition: AgroChemIndustryCereal.h:55
sc_herbicide2
Definition: AgroChemIndustryCereal.h:63
sc_ferti_p4
Definition: AgroChemIndustryCereal.h:75
sc_hay_turning
Definition: AgroChemIndustryCereal.h:82
sc_grubning
Definition: AgroChemIndustryCereal.h:85
sc_ferti_p5
Definition: AgroChemIndustryCereal.h:76
sc_water2
Definition: AgroChemIndustryCereal.h:73
July1
const int July1
Definition: AgroChemIndustryCereal.h:47
sc_autumn_harrow
Definition: AgroChemIndustryCereal.h:56
sc_ferti_s5
Definition: AgroChemIndustryCereal.h:79
Farm
The base class for all farm types.
Definition: farm.h:767
sc_insecticide1
Definition: AgroChemIndustryCereal.h:67
SYNGENTACEREAL_BASE
#define SYNGENTACEREAL_BASE
Definition: AgroChemIndustryCereal.h:40
SyngetaCerealToDo
SyngetaCerealToDo
Definition: AgroChemIndustryCereal.h:49
May1
const int May1
Definition: AgroChemIndustryCereal.h:45
sc_straw_chopping
Definition: AgroChemIndustryCereal.h:81
sc_spring_roll
Definition: AgroChemIndustryCereal.h:62
sc_ferti_s4
Definition: AgroChemIndustryCereal.h:78
sc_ferti_p3
Definition: AgroChemIndustryCereal.h:74
sc_strigling2
Definition: AgroChemIndustryCereal.h:71
sc_harvest
Definition: AgroChemIndustryCereal.h:80