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
PTOliveGroveSuperIntensive.h
Go to the documentation of this file.
1 
14 //
15 //PTOliveGroveSuperIntensive.h
16 //
17 /*
18 *******************************************************************************************************
19 Copyright (c) 2024, Christopher John Topping, University of Aarhus
20 All rights reserved.
21 
22 Redistribution and use in source and binary forms, with or without modification, are permitted provided
23 that the following conditions are met:
24 
25 Redistributions of source code must retain the above copyright notice, this list of conditions and the
26 following disclaimer.
27 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
28 the following disclaimer in the documentation and/or other materials provided with the distribution.
29 
30 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
31 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
32 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
33 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
34 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
35 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
37 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 ********************************************************************************************************
39 */
40 
41 
42 #ifndef PTOLIVEGROVESUPERINTENSIVE_H
43 #define PTOLIVEGROVESUPERINTENSIVE_H
44 #define PTOLIVEGROVESUPERINTENSIVE_BASE 31600
45 typedef enum {
77 
79 {
80 public:
81  virtual bool Do(Farm* a_farm, LE* a_field, FarmEvent* a_ev);
83  {
84  m_first_date = g_date->DayInYear(1, 1);
86  }
88  const int elements = 2 + (pt_ol_s_i_foobar - PTOLIVEGROVESUPERINTENSIVE_BASE);
90 
91  FarmManagementCategory catlist[elements] =
92  {
93  fmc_Others,
94  fmc_Others,
95  fmc_Others,
96  fmc_Others,
104  fmc_Watering,
121  fmc_Harvest,
122  // no foobar entry
123 
124  };
125  // Iterate over the catlist elements and copy them to vector
126  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
127 
128  }
129 
130 
131 private:
132 
133 };
134 #endif // !PTOLIVEGROVESUPERINTENSIVE_H
pt_ol_s_i_pest_1
Definition: PTOliveGroveSuperIntensive.h:58
PTOliveGroveSuperIntensiveToDo
PTOliveGroveSuperIntensiveToDo
Definition: PTOliveGroveSuperIntensive.h:45
fmc_Insecticide
Definition: LandscapeFarmingEnums.h:1005
Farm::HerbicideTreat
virtual bool HerbicideTreat(LE *a_field, double a_user, int a_days)
Apply herbicide to a_field.
Definition: FarmFuncs.cpp:2025
pt_ol_s_i_shredding
Definition: PTOliveGroveSuperIntensive.h:49
pt_ol_s_i_herb_6
Definition: PTOliveGroveSuperIntensive.h:67
pt_ol_s_i_herb_2
Definition: PTOliveGroveSuperIntensive.h:53
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
pt_ol_s_i_fert_4
Definition: PTOliveGroveSuperIntensive.h:56
PTOliveGroveSuperIntensive::Do
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: PTOliveGroveSuperIntensive.cpp:45
pt_ol_s_i_herb_4
Definition: PTOliveGroveSuperIntensive.h:63
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
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
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
pt_ol_s_i_pest_5
Definition: PTOliveGroveSuperIntensive.h:73
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
pt_ol_s_i_fert_1
Definition: PTOliveGroveSuperIntensive.h:51
Farm::FungicideTreat
virtual bool FungicideTreat(LE *a_field, double a_user, int a_days)
Apply fungicide to a_field.
Definition: FarmFuncs.cpp:2101
pt_ol_s_i_water
Definition: PTOliveGroveSuperIntensive.h:57
pt_ol_s_i_sleep_all_day
Definition: PTOliveGroveSuperIntensive.h:47
Crop
The base class for all crops.
Definition: Farm.h:495
pt_ol_s_i_pruning
Definition: PTOliveGroveSuperIntensive.h:48
pt_ol_s_i_foobar
Definition: PTOliveGroveSuperIntensive.h:75
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
PTOliveGroveSuperIntensive::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: PTOliveGroveSuperIntensive.h:87
pt_ol_s_i_herb_3
Definition: PTOliveGroveSuperIntensive.h:61
Calendar::Date
long Date(void)
Definition: Calendar.h:57
pt_ol_s_i_pest_2
Definition: PTOliveGroveSuperIntensive.h:59
pt_ol_s_i_pest_4
Definition: PTOliveGroveSuperIntensive.h:70
pt_ol_s_i_fert_6
Definition: PTOliveGroveSuperIntensive.h:62
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
pt_ol_s_i_fert_9
Definition: PTOliveGroveSuperIntensive.h:69
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
PTOLIVEGROVESUPERINTENSIVE_BASE
#define PTOLIVEGROVESUPERINTENSIVE_BASE
Definition: PTOliveGroveSuperIntensive.h:44
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
pt_ol_s_i_herb_7
Definition: PTOliveGroveSuperIntensive.h:72
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
pt_ol_s_i_fungi_1
Definition: PTOliveGroveSuperIntensive.h:55
pt_ol_s_i_fert_10
Definition: PTOliveGroveSuperIntensive.h:71
pt_ol_s_i_fert_8
Definition: PTOliveGroveSuperIntensive.h:66
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
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
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
Farm::InsecticideTreat
virtual bool InsecticideTreat(LE *a_field, double a_user, int a_days)
Apply insecticide to a_field.
Definition: FarmFuncs.cpp:2135
TTypesOfCrops
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
pt_ol_s_i_fert_2
Definition: PTOliveGroveSuperIntensive.h:52
LE
Definition: Elements.h:86
Farm::Water
virtual bool Water(LE *a_field, double a_user, int a_days)
Carry out a watering on a_field.
Definition: FarmFuncs.cpp:1330
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
pt_ol_s_i_herb_1
Definition: PTOliveGroveSuperIntensive.h:50
PTOliveGroveSuperIntensive
Definition: PTOliveGroveSuperIntensive.h:78
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
Farm
The base class for all farm types.
Definition: Farm.h:755
pt_ol_s_i_pest_3
Definition: PTOliveGroveSuperIntensive.h:68
pt_ol_s_i_herb_5
Definition: PTOliveGroveSuperIntensive.h:65
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
pt_ol_s_i_start
Definition: PTOliveGroveSuperIntensive.h:46
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
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
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
WARN_BUG
Definition: MapErrorMsg.h:34
pt_ol_s_i_fert_5
Definition: PTOliveGroveSuperIntensive.h:60
fmc_Fungicide
Definition: LandscapeFarmingEnums.h:1007
PTOliveGroveSuperIntensive::PTOliveGroveSuperIntensive
PTOliveGroveSuperIntensive(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: PTOliveGroveSuperIntensive.h:82
pt_ol_s_i_fert_3
Definition: PTOliveGroveSuperIntensive.h:54
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
pt_ol_s_i_harvest
Definition: PTOliveGroveSuperIntensive.h:74
Crop::SimpleEvent_
void SimpleEvent_(long a_date, int a_todo, bool a_lock, Farm *a_farm, LE *a_field)
Adds an event to this crop management without relying on member variables.
Definition: Farm.cpp:751
pt_ol_s_i_fert_7
Definition: PTOliveGroveSuperIntensive.h:64