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
|
DK_OOrchCherry class
.
More...
#include <DK_OOrchCherry.h>
|
TTypesOfVegetation | m_tov |
|
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...
|
|
Farm * | m_farm |
|
LE * | m_field |
|
FarmEvent * | m_ev |
|
int | m_first_date |
|
int | m_count |
|
int | m_last_date |
|
int | m_ddegstoharvest |
|
int | m_base_elements_no |
|
Landscape * | m_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< FarmManagementCategory > | m_ManagementCategories |
| Holds the translation between the farm operation enum for each crop and the farm management category associated with it. More...
|
|
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...
|
|
DK_OOrchCherry class
.
See DK_OOrchCherry.h::DK_OOrchCherryToDo for a complete list of all possible events triggered codes by the management plan. When triggered these events are handled by Farm and are available as information for other objects such as animal and bird models.
◆ DK_OOrchCherry()
◆ Do()
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 a_ev->todo set to start, but susequently 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.
Reimplemented from Crop.
82 std::vector<std::vector<int>> flexdates(1 + 1, std::vector<int>(2, 0));
487 "Unknown event type! ",
"");
References LE::ClearManagementActionSum(), Farm::CutOrch(), Calendar::Date(), Calendar::DayInYear(), Farm::DeepPlough(), dk_ooch_autumn_plough, dk_ooch_cutting1, dk_ooch_cutting2, dk_ooch_cutting3, dk_ooch_cutting4, dk_ooch_cutting5, dk_ooch_cutting6, DK_OOCH_EST_YEAR, dk_ooch_harvest, dk_ooch_insecticide1, dk_ooch_insecticide2, dk_ooch_insecticide3, dk_ooch_insecticide4, dk_ooch_manual_cutting1, dk_ooch_manual_cutting10, dk_ooch_manual_cutting11, dk_ooch_manual_cutting12, dk_ooch_manual_cutting2, dk_ooch_manual_cutting3, dk_ooch_manual_cutting4, dk_ooch_manual_cutting5, dk_ooch_manual_cutting6, dk_ooch_manual_cutting7, dk_ooch_manual_cutting8, dk_ooch_manual_cutting9, dk_ooch_manure_p1, dk_ooch_manure_p2, dk_ooch_manure_s1, dk_ooch_manure_s2, dk_ooch_planting, dk_ooch_row_cultivation1, dk_ooch_row_cultivation2, dk_ooch_sleep_all_day, dk_ooch_sow_grass, dk_ooch_start, dk_ooch_subsoiler, dk_ooch_wait, dk_ooch_water1, dk_ooch_water2, dk_ooch_water3, dk_ooch_water4, dk_ooch_water5, dk_ooch_water6, dk_ooch_water7, DK_OOCH_YEARS_AFTER_PLANT, DK_OOCH_YEARS_HARVEST, Farm::DoIt_prob(), Farm::FA_Manure(), Farm::FA_Slurry(), Farm::FP_Manure(), Farm::FP_NPK(), Farm::FruitHarvest(), g_date, g_msg, LE::GetMDates(), LE::GetSoilType(), Calendar::GetYearNumber(), Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_todo, Calendar::OldDays(), Farm::OrganicInsecticide(), Farm::Pruning(), Farm::RowCultivation(), Crop::SimpleEvent(), Farm::SleepAllDay(), Farm::SpringPlough(), Farm::SpringSow(), Crop::StartUpCrop(), tos_LoamySand, tos_Sand, tos_SandyClayLoam, tos_SandyLoam, tov_DKOOrchCherry, MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().
◆ SetUpFarmCategoryInformation()
void DK_OOrchCherry::SetUpFarmCategoryInformation |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files:
int GetMDates(int a, int b)
Definition: Elements.h:405
#define DK_OOCH_EST_YEAR
Definition: DK_OOrchCherry.h:25
Definition: DK_OOrchCherry.h:53
virtual bool FA_Slurry(LE *a_field, double a_user, int a_days)
Spready slurry on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1067
#define DK_OOCH_YEARS_AFTER_PLANT
Definition: DK_OOrchCherry.h:23
virtual bool OrganicInsecticide(LE *a_field, double a_user, int a_days)
Biocide applied on a_field.
Definition: FarmFuncs.cpp:2195
void SetUpFarmCategoryInformation()
Definition: DK_OOrchCherry.h:104
virtual bool SpringPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the spring on a_field.
Definition: FarmFuncs.cpp:421
bool IsStockFarmer(void)
Definition: Farm.h:961
Definition: DK_OOrchCherry.h:60
bool m_lock
Definition: Farm.h:384
Definition: DK_OOrchCherry.h:52
Definition: DK_OOrchCherry.h:63
Definition: DK_OOrchCherry.h:46
Definition: DK_OOrchCherry.h:81
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
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
Definition: DK_OOrchCherry.h:58
int GetYearNumber(void)
Definition: Calendar.h:72
Definition: DK_OOrchCherry.h:72
Definition: DK_OOrchCherry.h:70
Definition: LandscapeFarmingEnums.h:722
Definition: DK_OOrchCherry.h:43
bool DoIt_prob(double a_probability)
Return chance out of 0 to 1.
Definition: Farm.cpp:864
class Calendar * g_date
Definition: Calendar.cpp:37
Definition: DK_OOrchCherry.h:45
Definition: DK_OOrchCherry.h:61
Definition: DK_OOrchCherry.h:76
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
Definition: LandscapeFarmingEnums.h:721
Definition: DK_OOrchCherry.h:69
virtual bool SpringSow(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 spring on a_field.
Definition: FarmFuncs.cpp:501
int m_base_elements_no
Definition: Farm.h:505
Definition: DK_OOrchCherry.h:55
int m_first_date
Definition: Farm.h:501
Definition: DK_OOrchCherry.h:41
Definition: LandscapeFarmingEnums.h:468
Definition: DK_OOrchCherry.h:73
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
Definition: DK_OOrchCherry.h:66
Definition: DK_OOrchCherry.h:47
Definition: DK_OOrchCherry.h:44
Definition: DK_OOrchCherry.h:59
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
Definition: LandscapeFarmingEnums.h:1009
#define DK_OOCH_YEARS_HARVEST
Definition: DK_OOrchCherry.h:24
Definition: LandscapeFarmingEnums.h:1004
Definition: DK_OOrchCherry.h:65
long Date(void)
Definition: Calendar.h:57
Definition: LandscapeFarmingEnums.h:1008
int GetSoilType()
Definition: Elements.h:302
Definition: DK_OOrchCherry.h:64
Definition: LandscapeFarmingEnums.h:1003
Definition: DK_OOrchCherry.h:50
Definition: DK_OOrchCherry.h:56
Definition: LandscapeFarmingEnums.h:1011
long OldDays(void)
Definition: Calendar.h:60
Definition: DK_OOrchCherry.h:39
Definition: DK_OOrchCherry.h:75
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
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
Definition: DK_OOrchCherry.h:49
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
Definition: DK_OOrchCherry.h:51
Definition: DK_OOrchCherry.h:68
Definition: DK_OOrchCherry.h:54
Farm * m_farm
Definition: Farm.h:498
LE * m_field
Definition: Farm.h:499
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
Definition: DK_OOrchCherry.h:79
int m_todo
Definition: Farm.h:388
Definition: LandscapeFarmingEnums.h:719
Definition: DK_OOrchCherry.h:74
virtual bool SleepAllDay(LE *a_field, double a_user, int a_days)
Nothing to to today on a_field.
Definition: FarmFuncs.cpp:272
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
Definition: DK_OOrchCherry.h:42
virtual bool Water(LE *a_field, double a_user, int a_days)
Carry out a watering on a_field.
Definition: FarmFuncs.cpp:1330
Definition: DK_OOrchCherry.h:71
int m_last_date
Definition: Farm.h:503
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
Definition: DK_OOrchCherry.h:48
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
Definition: LandscapeFarmingEnums.h:1012
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
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
Definition: DK_OOrchCherry.h:67
int DayInYear(void)
Definition: Calendar.h:58
Definition: DK_OOrchCherry.h:57
Definition: DK_OOrchCherry.h:78
Definition: DK_OOrchCherry.h:80
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
Definition: DK_OOrchCherry.h:38
FarmEvent * m_ev
Definition: Farm.h:500
Definition: LandscapeFarmingEnums.h:720
Definition: DK_OOrchCherry.h:77
#define DK_OOCH_BASE
Definition: DK_OOrchCherry.h:27
Definition: DK_OOrchCherry.h:40
Definition: MapErrorMsg.h:34
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
Definition: DK_OOrchCherry.h:62