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
PTVineyards Class Reference

PTVineyards class
. More...

#include <PTVineyards.h>

Inheritance diagram for PTVineyards:
Crop

Public Member Functions

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. More...
 
 PTVineyards (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
void SetUpFarmCategoryInformation ()
 
- Public Member Functions inherited from Crop
virtual ~Crop ()
 
 Crop (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
int GetFirstDate (void)
 
void ChooseNextCrop (int a_no_dates)
 Chooses the next crop to grow in a field. More...
 
int GetCropClassification ()
 
void SetCropClassification (int a_classification)
 
void GetCropType (TTypesOfCrops a_toc)
 
TTypesOfCrops GetCropType ()
 
FarmManagementCategory LookUpManagementCategory (int a_todo)
 
bool GetForceSpringOK ()
 

Additional Inherited Members

- Public Attributes inherited from Crop
TTypesOfVegetation m_tov
 
- Protected Member Functions inherited from Crop
void SimpleEvent (long a_date, int a_todo, bool a_lock)
 Adds an event to this crop management. More...
 
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. More...
 
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 associated with it More...
 
bool AphidDamage (LE *a_field)
 Compares aphid numbers per m2 with a threshold to return true if threshold is exceeded. More...
 
- Protected Attributes inherited from Crop
Farmm_farm
 
LEm_field
 
FarmEventm_ev
 
int m_first_date
 
int m_count
 
int m_last_date
 
int m_ddegstoharvest
 
int m_base_elements_no
 
Landscapem_OurLandscape
 
bool m_forcespringpossible = false
 Used to signal that the crop can be forced to start in spring. More...
 
TTypesOfCrops m_toc
 The Crop type in terms of the TTypesOfCrops list (smaller list than tov, no country designation) More...
 
int m_CropClassification
 Contains information on whether this is a winter crop, spring crop, or catch crop that straddles the year boundary (0,1,2) More...
 
vector< FarmManagementCategorym_ManagementCategories
 Holds the translation between the farm operation enum for each crop and the farm management category associated with it. More...
 
- Static Protected Attributes inherited from Crop
static int m_date_modifier = 0
 Holds a value that shifts test pesticide use by this many days in crops modified to use it. More...
 

Detailed Description

PTVineyards class
.

See PTVineyards.h::PTVineyardsToDo for a complete list of all possible events triggered codes by the winter wheat management plan. When triggered these events are handled by Farm and are available as information for other objects such as animal and bird models.

Constructor & Destructor Documentation

◆ PTVineyards()

PTVineyards::PTVineyards ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
109  : Crop(a_tov, a_toc, a_L)
110  {
111  // When we start it off, the first possible date for a farm operation is 10th September
112  // This information is used by other crops when they decide how much post processing of
113  // the management is allowed after harvest before the next crop starts.
114  m_first_date=g_date->DayInYear( 31,12 );// AAS:Last possible date to do the first operation, i.e. plough or sow
116  }

References Calendar::DayInYear(), g_date, Crop::m_first_date, and SetUpFarmCategoryInformation().

Member Function Documentation

◆ Do()

bool PTVineyards::Do ( Farm a_farm,
LE a_field,
FarmEvent a_ev 
)
virtual

The one and only method for a crop management plan. All farm actions go through here.

Called every time something is done to the crop by the farmer in the first instance it is always called with m_ev->todo set to start, but subsequently will be called whenever the farmer wants to carry out a new operation.
This method details all the management and relationships between operations necessary to grow and ALMaSS crop - in this case conventional winter wheat.

Reimplemented from Crop.

62 {
63  /******************** This block can be added to the top of all Crop::Do methods ***********************************************/
64  m_farm = a_farm; // These assignments are necessary, not for this method but for related event calls
65  m_field = a_field;
66  m_ev = a_ev;
67  bool done = false; // The boolean value done indicates when we are totally finished with this plan (i.e. it is set to true).
68  int d1 = 0;
69  TTypesOfVegetation l_tov = tov_PTVineyards; // The current type - change to match the crop you have
70 /**********************************************To Here *************************************************************************/
71  int add_year = 0;
72 
73  // Depending what event has occured jump to the correct bit of code
74  switch (m_ev->m_todo)
75  {
76  case pt_vine_start:
77  {
79  PT_VINE_PRUNING_DONE = false;
80 
82 
83  m_last_date = g_date->DayInYear(10, 10); // Should match the last flexdate below
84  //Create a 2d array of 1 plus the number of operations you use. Change only 4+1 to what you need in the line below
85  std::vector<std::vector<int>> flexdates(1 + 1, std::vector<int>(2, 0));
86  // Set up the date management stuff
87  // Start and stop dates for all events after harvest
88  flexdates[0][1] = g_date->DayInYear(10, 10); // last possible day of harvest - this is in effect day before the earliest date that a following crop can use
89 
90  flexdates[1][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 1)
91  flexdates[1][1] = g_date->DayInYear(10, 10); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1)
92 
93  // Below if this is a spring crop use 365, otherwise set this to 0, second parameter is fixed, and the third is the start up operation in the first year
94  int isSpring = 0;
95  if (StartUpCrop(isSpring, flexdates, int(pt_vine_suckering))) break;
96 
97  // End single block date checking code. Please see next line comment as well.
98  // Reinit d1 to first possible starting date.
99  d1 = g_date->OldDays() + g_date->DayInYear(22, 11) + isSpring;
100  // OK, let's go.
101  // Here we queue up the first event which changes dependent on whether it is a forced spring sow or not
103  break;
104  }
105  break;
106 
107  // This is the first real farm operation
109  // Here we need to make sure that Pruning it is not forced at the end of the period
110  if (!m_farm->Pruning(m_field, 0.0, g_date->DayInYear(31, 12) - g_date->DayInYear())) {
112  break;
113  }
114  /* The next line contains a function call that only works during the same day. E.g.
115  If you ask the same question tomorrow the answer will always be Sleep_All_Day,
116  unless of cours other things are done */
118  PT_VINE_PRUNING_DONE = true;
119  }
120  if (bool(PT_VINE_PRUNING_DONE) == true) {
121  // Fork of 5 events
122  // Vine care treatments - MAIN TREAT
124  // Mowing treat
126  // NPK treat
127  SimpleEvent_(g_date->OldDays() + g_date->DayInYear(1, 2) + 365, pt_vine_npk1, false, m_farm, m_field);
128  // Herbicide treat
130  // Insecticide treat
132  // Fungicide treat
134  break;
135  }
136  else {
138  break;
139  }
141  if (!m_farm->Pruning(m_field, 0.0, g_date->DayInYear(18, 02) - g_date->DayInYear())) {
143  break;
144  }
146 
147  // Fork of 5 events
148  // Vine care treatments - MAIN TREAT
149  d1 = PT_VINE_PRUNING_DATE + 10; // min 10 days after pruning - to be checked
151  // Mowing treat
153  // NPK treat
155  // Herbicide treat
157  // Insecticide treat
159  // Fungicide treat
161  break;
162  case pt_vine_shredding:
163  if (!m_farm->Shredding(m_field, 0.0, g_date->DayInYear(28, 2) - g_date->DayInYear())) {
165  break;
166  }
168  break;
169  case pt_vine_suckering:
170  if (!m_farm->Pruning(m_field, 0.0, g_date->DayInYear(31, 5) - g_date->DayInYear())) {
172  break;
173  }
174  d1 = g_date->Date() + 14; // min 2 weeks after suckering - to be checked
175  if (d1 < g_date->OldDays() + g_date->DayInYear(15, 5)) {
176  d1 = g_date->OldDays() + g_date->DayInYear(15, 5);
177  }
179  break;
180  case pt_vine_trimming:
181  if (!m_farm->Pruning(m_field, 0.0, g_date->DayInYear(20, 6) - g_date->DayInYear())) {
183  break;
184  }
185  d1 = g_date->Date() + 1; // min 1 day after trimming - to be checked
186  if (d1 < g_date->OldDays() + g_date->DayInYear(1, 6)) {
187  d1 = g_date->OldDays() + g_date->DayInYear(1, 6);
188  }
190  break;
192  if (!m_farm->LeafThinning(m_field, 0.0, g_date->DayInYear(20, 6) - g_date->DayInYear())) {
194  break;
195  }
197  break;
199  if (!m_farm->GreenHarvest(m_field, 0.0, g_date->DayInYear(31, 8) - g_date->DayInYear())) {
201  break;
202  }
203  d1 = g_date->Date() + 30; // min 1 month after green harvest - to be checked / related to develop stages
204  if (d1 < g_date->OldDays() + g_date->DayInYear(15, 8)) {
205  d1 = g_date->OldDays() + g_date->DayInYear(15, 8);
206  }
208  break;
209  // Mowing treat
210  case pt_vine_mowing1:
211  if (!m_farm->CutOrch(m_field, 0.0, g_date->DayInYear(30, 4) - g_date->DayInYear())) {
213  break;
214  }
216  break;
217  case pt_vine_mowing2:
218  if (!m_farm->CutOrch(m_field, 0.0, g_date->DayInYear(15, 7) - g_date->DayInYear())) {
220  break;
221  }
222  // end of treat
223  break;
224  // NPK treat
225  case pt_vine_npk1:
226  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(20, 3) - g_date->DayInYear())) {
228  break;
229  }
231  break;
232  case pt_vine_npk2:
233  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(20, 7) - g_date->DayInYear())) {
235  break;
236  }
237  // end of treat
238  break;
239  // Herbicide treat - check if there is any specific break between events
240  case pt_vine_herbicide1:
241  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(20, 4) - g_date->DayInYear())) {
243  break;
244  }
246  break;
247  case pt_vine_herbicide2:
248  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 6) - g_date->DayInYear())) {
250  break;
251  }
252  // end of treat
253  break;
254  // Insecticide treat - check if there is any specific break between events
256  // here we check wheter we are using ERA pesticide or not
257  if (!cfg_pest_vineyard_on.value() ||
258  !m_field->GetLandscape()->SupplyShouldSpray()) // Not using pesticide spray
259  {
260  if (!m_farm->InsecticideTreat(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
262  break;
263  }
264  }
265  else {
267  }
268  d1 = g_date->Date() + 30; // min 1 month after herbicide1 - to be checked / related to develop stages
269  if (d1 < g_date->OldDays() + g_date->DayInYear(15, 4)) {
270  d1 = g_date->OldDays() + g_date->DayInYear(15, 4);
271  }
273  break;
275  // here we check wheter we are using ERA pesticide or not
276  if (!cfg_pest_vineyard_on.value() ||
277  !m_field->GetLandscape()->SupplyShouldSpray()) // Not using pesticide spray
278  {
279  if (!m_farm->InsecticideTreat(m_field, 0.0, g_date->DayInYear(15, 6) - g_date->DayInYear())) {
281  break;
282  }
283  }
284  else {
286  }
288  break;
290  // here we check wheter we are using ERA pesticide or not
291  if (!cfg_pest_vineyard_on.value() ||
292  !m_field->GetLandscape()->SupplyShouldSpray()) // Not using pesticide spray
293  {
294  if (!m_farm->InsecticideTreat(m_field, 0.0, g_date->DayInYear(31, 7) - g_date->DayInYear())) {
296  break;
297  }
298  }
299  else {
301  }
302  d1 = g_date->Date() + 14; // min 2 weeks after herbicide3 - to be checked / related to develop stages
303  if (d1 < g_date->OldDays() + g_date->DayInYear(15, 7)) {
304  d1 = g_date->OldDays() + g_date->DayInYear(15, 7);
305  }
307  break;
309  // here we check wheter we are using ERA pesticide or not
310  if (!cfg_pest_vineyard_on.value() ||
311  !m_field->GetLandscape()->SupplyShouldSpray()) // Not using pesticide spray
312  {
313  if (!m_farm->InsecticideTreat(m_field, 0.0, g_date->DayInYear(31, 8) - g_date->DayInYear())) {
315  break;
316  }
317  }
318  else {
320  }
321  // end of treat
322  break;
323  // Fungicide treat - check if there is any specific break between events
324  case pt_vine_fungicide1:
325  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(12, 4) - g_date->DayInYear())) {
327  break;
328  }
330  break;
331  case pt_vine_fungicide2:
332  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(5, 5) - g_date->DayInYear())) {
334  break;
335  }
337  break;
338  case pt_vine_fungicide3:
339  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(31, 5) - g_date->DayInYear())) {
341  break;
342  }
344  break;
345  case pt_vine_fungicide4:
346  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(20, 6) - g_date->DayInYear())) {
348  break;
349  }
351  break;
352  case pt_vine_fungicide5:
353  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(5, 7) - g_date->DayInYear())) {
355  break;
356  }
358  break;
359  case pt_vine_fungicide6:
360  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(31, 7) - g_date->DayInYear())) {
362  break;
363  }
364  // end of treat
365  break;
366  case pt_vine_harvest:
367  if (!m_farm->FruitHarvest(m_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
369  break;
370  }
371  done = true;
372  // So we are done, and somwhere else the farmer will queue up the start event of the next crop
373  // END of MAIN THREAD
374  break;
375  default:
376  g_msg->Warn(WARN_BUG, "PTVineyards::Do(): "
377  "Unknown event type! ", "");
378  exit(1);
379  }
380  return done;
381 }

References cfg_pest_product_amounts, cfg_pest_vineyard_on, LE::ClearManagementActionSum(), Farm::CutOrch(), Calendar::Date(), Calendar::DayInYear(), Farm::FP_NPK(), Farm::FruitHarvest(), Farm::FungicideTreat(), g_date, g_msg, LE::GetLastTreatment(), LE::GetMDates(), Farm::GreenHarvest(), Farm::HerbicideTreat(), Farm::InsecticideTreat(), Farm::LeafThinning(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_last_date, FarmEvent::m_todo, Calendar::OldDays(), ppp_1, Farm::ProductApplication(), Farm::Pruning(), pt_vine_autumn_pruning, pt_vine_fungicide1, pt_vine_fungicide2, pt_vine_fungicide3, pt_vine_fungicide4, pt_vine_fungicide5, pt_vine_fungicide6, pt_vine_greenharvest, pt_vine_harvest, pt_vine_herbicide1, pt_vine_herbicide2, pt_vine_insecticide1, pt_vine_insecticide2, pt_vine_insecticide3, pt_vine_insecticide4, pt_vine_leafthinning, pt_vine_mowing1, pt_vine_mowing2, pt_vine_npk1, pt_vine_npk2, PT_VINE_PRUNING_DATE, PT_VINE_PRUNING_DONE, pt_vine_shredding, pt_vine_spring_pruning, pt_vine_start, pt_vine_suckering, pt_vine_trimming, Farm::Shredding(), Crop::SimpleEvent(), Crop::SimpleEvent_(), Crop::StartUpCrop(), tov_PTVineyards, CfgBool::value(), CfgArray_Double::value(), MapErrorMsg::Warn(), and WARN_BUG.

◆ SetUpFarmCategoryInformation()

void PTVineyards::SetUpFarmCategoryInformation ( )
inline
117  {
118  const int elements = 2 + (pt_vine_foobar - PTVINEYARDS_BASE);
120 
121  FarmManagementCategory catlist[elements] =
122  {
123  fmc_Others, // zero element unused but must be here
124  fmc_Others, //pt_vine_start = 1, // Compulsory, must always be 1 (one).
125  fmc_Others, //pt_vine_sleep_all_day = PTVINEYARDS_BASE,
126  fmc_Others, //pt_vine_autumn_pruning,
127  fmc_Others, //pt_vine_spring_pruning,
128  fmc_Others, //pt_vine_shredding,
129  fmc_Others, //pt_vine_suckering,
130  fmc_Others, //pt_vine_trimming,
131  fmc_Others, //pt_vine_leafthinning,
132  fmc_Others, //pt_vine_greenharvest,
133  fmc_Cutting, //pt_vine_mowing1,
134  fmc_Cutting, //pt_vine_mowing2,
135  fmc_Fertilizer, //pt_vine_npk1,
136  fmc_Fertilizer, //pt_vine_npk2,
137  fmc_Herbicide, //pt_vine_herbicide1,
138  fmc_Herbicide, //pt_vine_herbicide2,
139  fmc_Insecticide, //pt_vine_insecticide1,
140  fmc_Insecticide, //pt_vine_insecticide2,
141  fmc_Insecticide, //pt_vine_insecticide3,
142  fmc_Insecticide, //pt_vine_insecticide4,
143  fmc_Fungicide, //pt_vine_fungicide1,
144  fmc_Fungicide, //pt_vine_fungicide2,
145  fmc_Fungicide, //pt_vine_fungicide3,
146  fmc_Fungicide, //pt_vine_fungicide4,
147  fmc_Fungicide, //pt_vine_fungicide5,
148  fmc_Fungicide, //pt_vine_fungicide6,
149  fmc_Harvest, //pt_vine_harvest,
150 
151  // no foobar entry
152 
153  };
154  // Iterate over the catlist elements and copy them to vector
155  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
156 
157  }

References fmc_Cutting, fmc_Fertilizer, fmc_Fungicide, fmc_Harvest, fmc_Herbicide, fmc_Insecticide, fmc_Others, Crop::m_base_elements_no, Crop::m_ManagementCategories, pt_vine_foobar, and PTVINEYARDS_BASE.

Referenced by PTVineyards().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
pt_vine_npk2
Definition: PTVineyards.h:74
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_vine_insecticide4
Definition: PTVineyards.h:82
Farm::ProductApplication
virtual bool ProductApplication(LE *a_field, double a_user, int a_days, double a_applicationrate, PlantProtectionProducts a_ppp, bool a_isgranularpesticide=false, int a_orcharddrifttype=0)
Apply test pesticide to a_field.
Definition: FarmFuncs.cpp:2267
pt_vine_mowing2
Definition: PTVineyards.h:71
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
pt_vine_harvest
Definition: PTVineyards.h:91
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
PTVineyards::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: PTVineyards.h:117
pt_vine_insecticide2
Definition: PTVineyards.h:80
pt_vine_fungicide1
Definition: PTVineyards.h:84
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
Farm::FungicideTreat
virtual bool FungicideTreat(LE *a_field, double a_user, int a_days)
Apply fungicide to a_field.
Definition: FarmFuncs.cpp:2101
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
CfgBool::value
bool value() const
Definition: Configurator.h:164
pt_vine_suckering
Definition: PTVineyards.h:65
pt_vine_insecticide3
Definition: PTVineyards.h:81
pt_vine_mowing1
Definition: PTVineyards.h:70
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
tov_PTVineyards
Definition: LandscapeFarmingEnums.h:320
Farm::GreenHarvest
virtual bool GreenHarvest(LE *a_field, double a_user, int a_days)
GreenHarvest (remove of excess production that may affect the desired quality of the fruits,...
Definition: FarmFuncs.cpp:1942
pt_vine_insecticide1
Definition: PTVineyards.h:79
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
pt_vine_shredding
Definition: PTVineyards.h:64
Calendar::Date
long Date(void)
Definition: Calendar.h:57
pt_vine_spring_pruning
Definition: PTVineyards.h:63
pt_vine_fungicide5
Definition: PTVineyards.h:88
cfg_pest_vineyard_on
CfgBool cfg_pest_vineyard_on
Turn on pesticides for wineyard.
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
LE::GetLastTreatment
int GetLastTreatment(int *a_index)
Definition: Elements.cpp:1077
pt_vine_foobar
Definition: PTVineyards.h:92
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
Farm::CutOrch
virtual bool CutOrch(LE *a_field, double a_user, int a_days)
Cut vegetation on orchard crop. //based on cut to silage - values from cutting function of orchard.
Definition: FarmFuncs.cpp:1666
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
pt_vine_fungicide2
Definition: PTVineyards.h:85
PT_VINE_PRUNING_DONE
#define PT_VINE_PRUNING_DONE
Definition: PTVineyards.h:51
pt_vine_trimming
Definition: PTVineyards.h:66
pt_vine_herbicide1
Definition: PTVineyards.h:76
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
CfgArray_Double::value
std::vector< double > value() const
Definition: Configurator.h:219
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
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::InsecticideTreat
virtual bool InsecticideTreat(LE *a_field, double a_user, int a_days)
Apply insecticide to a_field.
Definition: FarmFuncs.cpp:2135
pt_vine_fungicide6
Definition: PTVineyards.h:89
pt_vine_leafthinning
Definition: PTVineyards.h:67
pt_vine_npk1
Definition: PTVineyards.h:73
Crop::m_last_date
int m_last_date
Definition: Farm.h:503
pt_vine_greenharvest
Definition: PTVineyards.h:68
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Farm::LeafThinning
virtual bool LeafThinning(LE *a_field, double a_user, int a_days)
LeafThinning (leaf removal to increase areation and sun exposure of fruits, e.g., grapes) applied on ...
Definition: FarmFuncs.cpp:1927
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
pt_vine_fungicide3
Definition: PTVineyards.h:86
pt_vine_start
Definition: PTVineyards.h:59
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
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
Farm::FruitHarvest
virtual bool FruitHarvest(LE *a_field, double a_user, int a_days)
FruitHarvest (harvest of the mature fruits, e.g., grapes) applied on a_field.
Definition: FarmFuncs.cpp:1959
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
PT_VINE_PRUNING_DATE
#define PT_VINE_PRUNING_DATE
A flag used to indicate autumn ploughing status.
Definition: PTVineyards.h:50
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
pt_vine_herbicide2
Definition: PTVineyards.h:77
pt_vine_fungicide4
Definition: PTVineyards.h:87
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
WARN_BUG
Definition: MapErrorMsg.h:34
pt_vine_autumn_pruning
Definition: PTVineyards.h:62
ppp_1
Definition: LandscapeFarmingEnums.h:1079
fmc_Fungicide
Definition: LandscapeFarmingEnums.h:1007
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
PTVINEYARDS_BASE
#define PTVINEYARDS_BASE
Definition: PTVineyards.h:45
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