File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DK_ChristmasTrees_Perm.h
Go to the documentation of this file.
1 
15 //
16 // DK_ChristmasTrees_Perm1.h
17 //
18 /*
19 
20 Copyright (c) 2021, Christopher John Topping, Aarhus University
21 All rights reserved.
22 
23 
24 Redistribution and use in source and binary forms, with or without
25 modification, are permitted provided that the following conditions are met:
26 
27 *) Redistributions of source code must retain the above copyright notice, this
28 list of conditions and the following disclaimer.
29 *) Redistributions in binary form must reproduce the above copyright notice,
30 this list of conditions and the following disclaimer in the documentation
31 and/or other materials provided with the distribution.
32 *) Neither the name of the NERI nor the names of its contributors
33 may be used to endorse or promote products derived from this software without
34 specific prior written permission.
35 
36 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
37 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
38 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
39 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
40 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
41 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
42 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
43 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
44 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46 POSSIBILITY OF SUCH DAMAGE.
47 
48 */
49 
50 #ifndef DK_CHRISTMASTREES_PERM_H
51 #define DK_CHRISTMASTREES_PERM_H
52 
53 #define DK_CTP_BASE 62900
54 
57 #define DK_CTP_YEAR a_field->m_user[1]
58 
64 typedef enum {
65  dk_ctp_start = 1, // Compulsory, must always be 1 (one).
67  dk_ctp_plough1_autumn, //establishment
75  dk_ctp_crush_trees, // 2nd establishment
81  dk_ctp_ferti_clay_s2, //after establishment (y2-5)
119  dk_ctp_npk1_s6, // after establishment (y6-10)
158  dk_ctp_npk1_s11, // after establishment (y11 - harvest year)
173 
175 
176 
186 {
187 public:
188  virtual bool Do(Farm* a_farm, LE* a_field, FarmEvent* a_ev);
189  DK_ChristmasTrees_Perm(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape* a_L) : Crop(a_tov, a_toc, a_L)
190  {
191  // When we start it off, the first possible date for a farm operation
192  // This information is used by other crops when they decide how much post processing of
193  // the management is allowed after harvest before the next crop starts.
194  m_first_date = g_date->DayInYear(10, 3);
196  }
198  const int elements = 2 + (dk_ctp_foobar - DK_CTP_BASE);
200 
201  FarmManagementCategory catlist[elements] =
202  {
203  fmc_Others, // zero element unused but must be here
204  fmc_Others, // dk_ctp_start = 1, // Compulsory, must always be 1 (one).
205  fmc_Others, // dk_ctp_sleep_all_day = DK_CTP_BASE,
206  fmc_Cultivation, // dk_ctp_plough1_autumn,
207  fmc_Cultivation, // dk_ctp_depth_plough_autumn,
208  fmc_Cultivation, // dk_ctp_plough2_autumn,
209  fmc_Cultivation, // dk_ctp_stubble_harrow_autumn,
210  fmc_Others, // dk_ctp_sow_cover_crop_autumn,
211  fmc_Others, // dk_ctp_plant_trees_autumn,
212  fmc_Cultivation, // dk_ctp_row_cultivation_autumn,
213  fmc_Cultivation, // dk_ctp_harrow_autumn,
214  fmc_Cutting, //dk_ctp2e_crush_trees,
215  fmc_Others, //dk_ctp2e_sow_inter_crops,
216  fmc_Cultivation, // dk_ctp2e_harrow,
217  fmc_Herbicide, //dk_ctp2e_herbicide,
218  fmc_Others, // dk_ctp2e_sow_catch_crops,
219  fmc_Others, // dk_ctp2e_plant_trees,
220  fmc_Fertilizer, //dk_ctp2_ferti_clay_s2,
221  fmc_Fertilizer, //dk_ctp2_ferti_sand_s2,
222  fmc_Fertilizer, //dk_ctp2_ferti_clay_p2,
223  fmc_Fertilizer, //dk_ctp2_ferti_sand_p2,
224  fmc_Cultivation, //dk_ctp2_manual_weeding_2,
225  fmc_Herbicide, //dk_ctp2_herbicide1_2,
226  fmc_Herbicide, //dk_ctp2_herbicide2_2,
227  fmc_Herbicide, //dk_ctp2_herbicide3_2,
228  fmc_Fertilizer, //dk_ctp2_ferti_clay_s3_4,
229  fmc_Fertilizer, //dk_ctp2_ferti_sand_s3_4,
230  fmc_Fertilizer, //dk_ctp2_npk_clay_s3_4,
231  fmc_Fertilizer, //dk_ctp2_npk_sand1_s3_4,
232  fmc_Fertilizer, //dk_ctp2_npk_sand2_s3_4,
233  fmc_Fertilizer, //dk_ctp2_ferti_clay_p3_4,
234  fmc_Fertilizer, //dk_ctp2_ferti_sand_p3_4,
235  fmc_Fertilizer, //dk_ctp2_npk_clay_p3_4,
236  fmc_Fertilizer, //dk_ctp2_npk_sand1_p3_4,
237  fmc_Fertilizer, //dk_ctp2_npk_sand2_p3_4,
238  fmc_Cultivation, //dk_ctp2_manual_weeding_3_4,
239  fmc_Herbicide, //dk_ctp2_herbicide1_3_4,
240  fmc_Herbicide, //dk_ctp2_herbicide2_3_4,
241  fmc_Herbicide, //dk_ctp2_herbicide3_3_4,
242  fmc_Cutting, // dk_ctp2_manual_cutting_3_4
243  fmc_Grazing, //dk_ctp2_grazing_3_4,
244  fmc_Grazing, //dk_ctp2_pig_is_out_3_4,
245  fmc_Others, //dk_ctp2_sow_catch_crop,
246  fmc_Herbicide, //dk_ctp2_herbicide4,
247  fmc_Fertilizer, //dk_ctp2_npk_s5,
248  fmc_Fertilizer, //dk_ctp2_npk_sand_s5,
249  fmc_Fertilizer, //dk_ctp2_npk_p5,
250  fmc_Fertilizer, //dk_ctp2_npk_sand_p5,
251  fmc_Grazing, //dk_ctp2_grazing_5,
252  fmc_Grazing, //dk_ctp2_pig_is_out_5,
253  fmc_Cultivation, //dk_ctp2_manual_weeding_5,
254  fmc_Herbicide, //dk_ctp2_herbicide1_5,
255  fmc_Herbicide, //dk_ctp2_herbicide2_5,
256  fmc_Herbicide, //dk_ctp2_herbicide3_5,
257  fmc_Cutting, //dk_ctp2_manual_cutting_5,
258  fmc_Fertilizer, //dk_ctp3_npk1_s6,
259  fmc_Fertilizer, //dk_ctp3_npk2_s6,
260  fmc_Fertilizer, //dk_ctp3_calcium_s6,
261  fmc_Fertilizer, //dk_ctp3_npk1_p6,
262  fmc_Fertilizer, //dk_ctp3_npk2_p6,
263  fmc_Fertilizer, //dk_ctp3_calcium_p6,
264  fmc_Grazing, //dk_ctp3_grazing_6,
265  fmc_Grazing, //dk_ctp3_pig_is_out_6,
266  fmc_Cultivation, //dk_ctp3_manual_weeding_6,
267  fmc_Herbicide, //dk_ctp3_herbicide1_6,
268  fmc_Herbicide, //dk_ctp3_herbicide2_6,
269  fmc_Herbicide, //dk_ctp3_herbicide3_6,
270  fmc_Cutting, //dk_ctp3_manual_cutting_6,
271  fmc_Fertilizer, //dk_ctp3_npk1_s7_8,
272  fmc_Fertilizer, //dk_ctp3_npk2_s7_8,
273  fmc_Fertilizer, //dk_ctp3_calcium_s7_8,
274  fmc_Fertilizer, //dk_ctp3_npk1_p7_8,
275  fmc_Fertilizer, //dk_ctp3_npk2_p7_8,
276  fmc_Fertilizer, //dk_ctp3_calcium_p7_8,
277  fmc_Grazing, //dk_ctp3_grazing_7_8,
278  fmc_Grazing, //dk_ctp3_pig_is_out_7_8,
279  fmc_Cultivation, //dk_ctp3_manual_weeding_7_8,
280  fmc_Herbicide, //dk_ctp3_herbicide1_7_8,
281  fmc_Herbicide, //dk_ctp3_herbicide2_7_8,
282  fmc_Herbicide, //dk_ctp3_herbicide3_7_8,
283  fmc_Cutting, //dk_ctp3_manual_cutting_7_8,
284  fmc_Cutting, //dk_ctp3_manual_cutting2_7_8,
285  fmc_Fertilizer, //dk_ctp3_npk1_s9_10,
286  fmc_Fertilizer, //dk_ctp3_npk2_s9_10,
287  fmc_Fertilizer, //dk_ctp3_calcium_s9_10,
288  fmc_Fertilizer, //dk_ctp3_npk1_p9_10,
289  fmc_Fertilizer, //dk_ctp3_npk2_p9_10,
290  fmc_Fertilizer, //dk_ctp3_calcium_p9_10,
291  fmc_Others, // dk_ctp3_sow_catch_crop,
292  fmc_Herbicide, //dk_ctp3_herbicide4,
293  fmc_Cultivation, // dk_ctp3_manual_weeding_9_10,
294  fmc_Herbicide, //dk_ctp3_herbicide1_9_10,
295  fmc_Herbicide, //dk_ctp3_herbicide2_9_10,
296  fmc_Herbicide, //dk_ctp3_herbicide3_9_10,
297  fmc_Fertilizer, //dk_ctp2_npk1_s11,
298  fmc_Fertilizer, //dk_ctp2_npk2_s11,
299  fmc_Fertilizer, //dk_ctp2_calcium_s11,
300  fmc_Fertilizer, //dk_ctp2_npk1_p11,
301  fmc_Fertilizer, //dk_ctp2_npk2_p11,
302  fmc_Fertilizer, //dk_ctp2_calcium_p11,
303  fmc_Cultivation, //dk_ctp2_manual_weeding_11,
304  fmc_Herbicide, //dk_ctp4_herbicide1,
305  fmc_Herbicide, //dk_ctp4_herbicide2,
306  fmc_Herbicide, //dk_ctp4_herbicide3,
307  fmc_Others, //dk_ctp2_sow_catch_crop_11,
308  fmc_Cutting, //dk_ctp2_manual_cutting_11,
309  fmc_Harvest, //dk_ctp2_harvest,
310  fmc_Others, //dk_ctp_wait
311  // no foobar entry
312 
313  };
314  // Iterate over the catlist elements and copy them to vector
315  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
316 
317  }
318 };
319 
320 #endif // DK_ChristmasTrees_Perm_H
dk_ctp_calcium_s9_10
Definition: DK_ChristmasTrees_Perm.h:148
Farm::PigsAreOut
virtual bool PigsAreOut(LE *a_field, double a_user, int a_days)
Start a pig grazing event on a_field today or soon.
Definition: FarmFuncs.cpp:2703
dk_ctp_row_cultivation_autumn
Definition: DK_ChristmasTrees_Perm.h:73
dk_ctp_ferti_sand_s3_4
Definition: DK_ChristmasTrees_Perm.h:90
DK_ChristmasTrees_PermToDo
DK_ChristmasTrees_PermToDo
Definition: DK_ChristmasTrees_Perm.h:64
dk_ctp_plant_trees_autumn
Definition: DK_ChristmasTrees_Perm.h:72
dk_ctp_sleep_all_day
Definition: DK_ChristmasTrees_Perm.h:66
dk_ctp_npk2_s7_8
Definition: DK_ChristmasTrees_Perm.h:133
dk_ctp_plough2_autumn
Definition: DK_ChristmasTrees_Perm.h:69
Farm::HerbicideTreat
virtual bool HerbicideTreat(LE *a_field, double a_user, int a_days)
Apply herbicide to a_field.
Definition: FarmFuncs.cpp:2025
cfg_pest_DK_ChristmasTrees_Perm_on
CfgBool cfg_pest_DK_ChristmasTrees_Perm_on
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
dk_ctp_npk2_p11
Definition: DK_ChristmasTrees_Perm.h:162
dk_ctp_npk_sand2_s3_4
Definition: DK_ChristmasTrees_Perm.h:93
Farm::Harvest
virtual bool Harvest(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field.
Definition: FarmFuncs.cpp:1364
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
dk_ctp_sow_catch_crop1
Definition: DK_ChristmasTrees_Perm.h:79
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
dk_ctp_herbicide3_5
Definition: DK_ChristmasTrees_Perm.h:117
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
cfg_pest_product_amounts
CfgArray_Double cfg_pest_product_amounts
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.
Farm::FP_NPK
virtual bool FP_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:645
dk_ctp_grazing_6
Definition: DK_ChristmasTrees_Perm.h:125
Farm::DoIt
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
Calendar::GetYearNumber
int GetYearNumber(void)
Definition: Calendar.h:72
dk_ctp_herbicide2
Definition: DK_ChristmasTrees_Perm.h:166
dk_ctp_npk2_p7_8
Definition: DK_ChristmasTrees_Perm.h:136
dk_ctp_npk_sand2_p3_4
Definition: DK_ChristmasTrees_Perm.h:98
tos_SandyClayLoam
Definition: LandscapeFarmingEnums.h:722
dk_ctp_calcium_p9_10
Definition: DK_ChristmasTrees_Perm.h:151
Farm::DoIt_prob
bool DoIt_prob(double a_probability)
Return chance out of 0 to 1.
Definition: Farm.cpp:864
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
dk_ctp_npk2_s9_10
Definition: DK_ChristmasTrees_Perm.h:147
dk_ctp_herbicide1_9_10
Definition: DK_ChristmasTrees_Perm.h:155
dk_ctp_plough1_autumn
Definition: DK_ChristmasTrees_Perm.h:67
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
dk_ctp_calcium_s11
Definition: DK_ChristmasTrees_Perm.h:160
cfg_herbi_app_prop
CfgFloat cfg_herbi_app_prop
dk_ctp_herbicide1_3_4
Definition: DK_ChristmasTrees_Perm.h:100
Farm::FA_Manure
virtual bool FA_Manure(LE *a_field, double a_user, int a_days)
Spread manure on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1110
tos_SandyLoam
Definition: LandscapeFarmingEnums.h:721
cfg_fungi_app_prop1
CfgFloat cfg_fungi_app_prop1
cfg_CTP_InsecticideDay
CfgInt cfg_CTP_InsecticideDay
DK_CTP_YEAR
#define DK_CTP_YEAR
A flag used to indicate year.
Definition: DK_ChristmasTrees_Perm.h:57
cfg_ins_app_prop3
CfgFloat cfg_ins_app_prop3
dk_ctp_plant_trees
Definition: DK_ChristmasTrees_Perm.h:80
dk_ctp_grazing_3_4
Definition: DK_ChristmasTrees_Perm.h:104
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
dk_ctp_herbicide1_5
Definition: DK_ChristmasTrees_Perm.h:115
dk_ctp_ferti_clay_p3_4
Definition: DK_ChristmasTrees_Perm.h:94
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
dk_ctp_calcium_s6
Definition: DK_ChristmasTrees_Perm.h:123
dk_ctp_npk_clay_p3_4
Definition: DK_ChristmasTrees_Perm.h:96
Farm::FA_NPK
virtual bool FA_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer to a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:982
dk_ctp_npk_sand_p5
Definition: DK_ChristmasTrees_Perm.h:111
DK_CTP_BASE
#define DK_CTP_BASE
Definition: DK_ChristmasTrees_Perm.h:53
dk_ctp_npk1_p6
Definition: DK_ChristmasTrees_Perm.h:121
l_pest_insecticide_amount
CfgFloat l_pest_insecticide_amount
Crop
The base class for all crops.
Definition: Farm.h:495
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
dk_ctp_calcium_p7_8
Definition: DK_ChristmasTrees_Perm.h:137
dk_ctp_herbicide
Definition: DK_ChristmasTrees_Perm.h:78
dk_ctp_ferti_clay_s2
Definition: DK_ChristmasTrees_Perm.h:81
dk_ctp_manual_cutting_7_8
Definition: DK_ChristmasTrees_Perm.h:144
Farm::FP_Manure
virtual bool FP_Manure(LE *a_field, double a_user, int a_days)
Spread manure on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:896
dk_ctp_herbicide3_9_10
Definition: DK_ChristmasTrees_Perm.h:157
dk_ctp_ferti_clay_s3_4
Definition: DK_ChristmasTrees_Perm.h:89
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
dk_ctp_npk1_s9_10
Definition: DK_ChristmasTrees_Perm.h:146
dk_ctp_npk1_s6
Definition: DK_ChristmasTrees_Perm.h:119
dk_ctp_pig_is_out_3_4
Definition: DK_ChristmasTrees_Perm.h:105
dk_ctp_calcium_p11
Definition: DK_ChristmasTrees_Perm.h:163
dk_ctp_npk_p5
Definition: DK_ChristmasTrees_Perm.h:110
cfg_ins_app_prop2
CfgFloat cfg_ins_app_prop2
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
dk_ctp_manual_cutting_3_4
Definition: DK_ChristmasTrees_Perm.h:103
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
cfg_greg_app_prop
CfgFloat cfg_greg_app_prop
dk_ctp_npk_clay_s3_4
Definition: DK_ChristmasTrees_Perm.h:91
dk_ctp_stubble_harrow_autumn
Definition: DK_ChristmasTrees_Perm.h:70
dk_ctp_herbicide2_6
Definition: DK_ChristmasTrees_Perm.h:129
dk_ctp_herbicide3
Definition: DK_ChristmasTrees_Perm.h:167
dk_ctp_grazing_7_8
Definition: DK_ChristmasTrees_Perm.h:138
Calendar::Date
long Date(void)
Definition: Calendar.h:57
dk_ctp_pig_is_out_5
Definition: DK_ChristmasTrees_Perm.h:113
dk_ctp_herbicide2_7_8
Definition: DK_ChristmasTrees_Perm.h:142
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
dk_ctp_ferti_clay_p2
Definition: DK_ChristmasTrees_Perm.h:83
LE::GetSoilType
int GetSoilType()
Definition: Elements.h:302
CfgBool
Bool configurator entry class.
Definition: Configurator.h:155
dk_ctp_harvest
Definition: DK_ChristmasTrees_Perm.h:170
dk_ctp_herbicide3_6
Definition: DK_ChristmasTrees_Perm.h:130
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
Farm::FA_Calcium
virtual bool FA_Calcium(LE *a_field, double a_user, int a_days)
Calcium applied on a_field owned by a stock farmer.
Definition: FarmFuncs.cpp:1168
dk_ctp_npk_sand1_s3_4
Definition: DK_ChristmasTrees_Perm.h:92
dk_ctp_manual_weeding_2
Definition: DK_ChristmasTrees_Perm.h:85
dk_ctp_herbicide4_3_4
Definition: DK_ChristmasTrees_Perm.h:107
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
dk_ctp_npk_s5
Definition: DK_ChristmasTrees_Perm.h:108
dk_ctp_npk_sand1_p3_4
Definition: DK_ChristmasTrees_Perm.h:97
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
dk_ctp_grazing_5
Definition: DK_ChristmasTrees_Perm.h:112
CfgArray_Double
Definition: Configurator.h:208
Farm::FP_Calcium
virtual bool FP_Calcium(LE *a_field, double a_user, int a_days)
Calcium applied on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:954
dk_ctp_herbicide2_5
Definition: DK_ChristmasTrees_Perm.h:116
dk_ctp_npk1_p11
Definition: DK_ChristmasTrees_Perm.h:161
dk_ctp_pig_is_out_7_8
Definition: DK_ChristmasTrees_Perm.h:139
Crop::StartUpCrop
bool StartUpCrop(int a_spring, std::vector< std::vector< int >> a_flexdates, int a_todo)
Holds the translation between the farm operation enum for each cropand the farm management category a...
Definition: Farm.cpp:652
dk_ctp_npk1_s11
Definition: DK_ChristmasTrees_Perm.h:158
dk_ctp_start
Definition: DK_ChristmasTrees_Perm.h:65
dk_ctp_sow_catch_crop3
Definition: DK_ChristmasTrees_Perm.h:152
dk_ctp_herbicide2_2
Definition: DK_ChristmasTrees_Perm.h:87
cfg_ins_app_prop1
CfgFloat cfg_ins_app_prop1
dk_ctp_pig_is_out_6
Definition: DK_ChristmasTrees_Perm.h:126
Farm::ManualWeeding
virtual bool ManualWeeding(LE *a_field, double a_user, int a_days)
Manual weeding on a_field - no tramlines since weeding by hand, the bush stays on field with same veg...
Definition: FarmFuncs.cpp:2002
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
dk_ctp_herbicide1
Definition: DK_ChristmasTrees_Perm.h:165
dk_ctp_herbicide4_9_10
Definition: DK_ChristmasTrees_Perm.h:153
dk_ctp_npk1_p9_10
Definition: DK_ChristmasTrees_Perm.h:149
Crop::m_ManagementCategories
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
dk_ctp_herbicide1_2
Definition: DK_ChristmasTrees_Perm.h:86
dk_ctp_manual_cutting_6
Definition: DK_ChristmasTrees_Perm.h:131
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
tos_Sand
Definition: LandscapeFarmingEnums.h:719
tov_DKChristmasTrees_Perm
Definition: LandscapeFarmingEnums.h:446
dk_ctp_herbicide2_9_10
Definition: DK_ChristmasTrees_Perm.h:156
Farm::SleepAllDay
virtual bool SleepAllDay(LE *a_field, double a_user, int a_days)
Nothing to to today on a_field.
Definition: FarmFuncs.cpp:272
dk_ctp_wait
Definition: DK_ChristmasTrees_Perm.h:171
dk_ctp_manual_weeding_7_8
Definition: DK_ChristmasTrees_Perm.h:140
dk_ctp_manual_weeding_6
Definition: DK_ChristmasTrees_Perm.h:127
TTypesOfCrops
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
dk_ctp_npk2_s11
Definition: DK_ChristmasTrees_Perm.h:159
dk_ctp_sow_catch_crop_11
Definition: DK_ChristmasTrees_Perm.h:168
Farm::RowCultivation
virtual bool RowCultivation(LE *a_field, double a_user, int a_days)
Carry out a harrowing between crop rows on a_field.
Definition: FarmFuncs.cpp:1183
dk_ctp_npk2_s6
Definition: DK_ChristmasTrees_Perm.h:120
LE
Definition: Elements.h:86
Crop::m_last_date
int m_last_date
Definition: Farm.h:503
Farm::AutumnPlough
virtual bool AutumnPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the autumn on a_field.
Definition: FarmFuncs.cpp:212
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
dk_ctp_harrow
Definition: DK_ChristmasTrees_Perm.h:77
dk_ctp_calcium_s7_8
Definition: DK_ChristmasTrees_Perm.h:134
DK_ChristmasTrees_Perm::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DK_ChristmasTrees_Perm.h:197
Farm::AutumnHarrow
virtual bool AutumnHarrow(LE *a_field, double a_user, int a_days)
Carry out a harrow event in the autumn on a_field.
Definition: FarmFuncs.cpp:285
dk_ctp_npk2_p6
Definition: DK_ChristmasTrees_Perm.h:122
dk_ctp_npk_sand_s5
Definition: DK_ChristmasTrees_Perm.h:109
dk_ctp_ferti_sand_s2
Definition: DK_ChristmasTrees_Perm.h:82
fmc_Grazing
Definition: LandscapeFarmingEnums.h:1010
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
CfgInt
Integer configurator entry class.
Definition: Configurator.h:102
cfg_DK_ChristmasTrees_Perm_SkScrapes
CfgBool cfg_DK_ChristmasTrees_Perm_SkScrapes("DK_CROP_CTP_SK_SCRAPES", CFG_CUSTOM, false)
Farm
The base class for all farm types.
Definition: Farm.h:755
Farm::Shredding
virtual bool Shredding(LE *a_field, double a_user, int a_days)
Shredding (destruction of the pruning residues with a shredders using hammer mower) applied on a_fiel...
Definition: FarmFuncs.cpp:1912
dk_ctp_depth_plough_autumn
Definition: DK_ChristmasTrees_Perm.h:68
dk_ctp_harrow_autumn
Definition: DK_ChristmasTrees_Perm.h:74
Farm::DeepPlough
virtual bool DeepPlough(LE *a_field, double a_user, int a_days)
Carry out a deep ploughing event on a_field.
Definition: FarmFuncs.cpp:408
CfgFloat
Double configurator entry class.
Definition: Configurator.h:126
dk_ctp_manual_weeding_5
Definition: DK_ChristmasTrees_Perm.h:114
Farm::AutumnSow
virtual bool AutumnSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out a sowing event in the autumn on a_field.
Definition: FarmFuncs.cpp:360
dk_ctp_ferti_sand_p3_4
Definition: DK_ChristmasTrees_Perm.h:95
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
dk_ctp_npk2_p9_10
Definition: DK_ChristmasTrees_Perm.h:150
Farm::Pruning
virtual bool Pruning(LE *a_field, double a_user, int a_days)
Pruning applied on a_field - details needs to be added (e.g., impact on biomass, influence/impacts in...
Definition: FarmFuncs.cpp:1897
dk_ctp_herbicide3_3_4
Definition: DK_ChristmasTrees_Perm.h:102
cfg_fungi_app_prop2
CfgFloat cfg_fungi_app_prop2
dk_ctp_manual_cutting_5
Definition: DK_ChristmasTrees_Perm.h:118
CFG_CUSTOM
Definition: Configurator.h:70
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
DK_ChristmasTrees_Perm::Do
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
The one and only method for a crop management plan. All farm actions go through here.
Definition: DK_ChristmasTrees_Perm.cpp:98
dk_ctp_calcium_p6
Definition: DK_ChristmasTrees_Perm.h:124
dk_ctp_manual_weeding_9_10
Definition: DK_ChristmasTrees_Perm.h:154
dk_ctp_npk1_p7_8
Definition: DK_ChristmasTrees_Perm.h:135
dk_ctp_crush_trees
Definition: DK_ChristmasTrees_Perm.h:75
dk_ctp_ferti_sand_p2
Definition: DK_ChristmasTrees_Perm.h:84
dk_ctp_herbicide2_3_4
Definition: DK_ChristmasTrees_Perm.h:101
dk_ctp_manual_weeding_11
Definition: DK_ChristmasTrees_Perm.h:164
dk_ctp_herbicide1_7_8
Definition: DK_ChristmasTrees_Perm.h:141
dk_ctp_herbicide3_7_8
Definition: DK_ChristmasTrees_Perm.h:143
cfg_CTP_InsecticideMonth
CfgInt cfg_CTP_InsecticideMonth
DK_ChristmasTrees_Perm::DK_ChristmasTrees_Perm
DK_ChristmasTrees_Perm(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: DK_ChristmasTrees_Perm.h:189
dk_ctp_sow_catch_crop2
Definition: DK_ChristmasTrees_Perm.h:106
Farm::PigsOut
virtual bool PigsOut(LE *a_field, double a_user, int a_days)
Generate a 'pigs_out' event for every day the cattle are on a_field.
Definition: FarmFuncs.cpp:2650
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
tos_LoamySand
Definition: LandscapeFarmingEnums.h:720
dk_ctp_sow_cover_crop_autumn
Definition: DK_ChristmasTrees_Perm.h:71
dk_ctp_herbicide3_2
Definition: DK_ChristmasTrees_Perm.h:88
dk_ctp_manual_weeding_3_4
Definition: DK_ChristmasTrees_Perm.h:99
dk_ctp_herbicide1_6
Definition: DK_ChristmasTrees_Perm.h:128
dk_ctp_sow_inter_crops
Definition: DK_ChristmasTrees_Perm.h:76
WARN_BUG
Definition: MapErrorMsg.h:34
DK_ChristmasTrees_Perm
DK_ChristmasTrees_Perm class .
Definition: DK_ChristmasTrees_Perm.h:185
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
dk_ctp_manual_cutting2_7_8
Definition: DK_ChristmasTrees_Perm.h:145
Farm::StubbleHarrowing
virtual bool StubbleHarrowing(LE *a_field, double a_user, int a_days)
Carry out stubble harrowing on a_field.
Definition: FarmFuncs.cpp:1523
dk_ctp_npk1_s7_8
Definition: DK_ChristmasTrees_Perm.h:132
dk_ctp_foobar
Definition: DK_ChristmasTrees_Perm.h:172
dk_ctp_manual_cutting_11
Definition: DK_ChristmasTrees_Perm.h:169