![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
DE_MaizeSilage class
.
More...
#include <DE_MaizeSilage.h>
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... | |
DE_MaizeSilage (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L) | |
void | SetUpFarmCategoryInformation () |
![]() | |
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 | |
![]() | |
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... | |
DE_MaizeSilage class
.
See DE_MaizeSilage.h::DE_MaizeSilageToDo for a complete list of all possible events triggered codes by the Maize Silage management plan. When triggered these events are handled by Farm and are available as information for other objects such as animal and bird models.
|
inline |
When we start it off, the first possible date for a farm operation is 15th September This information is used by other crops when they decide how much post processing of the management is allowed after harvest before the next crop starts.
References Calendar::DayInYear(), g_date, Crop::m_first_date, Crop::m_forcespringpossible, and SetUpFarmCategoryInformation().
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 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 - in this case conventional winter wheat.
Reimplemented from Crop.
References cfg_pest_maize_on, cfg_pest_product_amounts, LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), de_ms_ferti_p1, de_ms_ferti_p2, de_ms_ferti_s1, de_ms_ferti_s2, de_ms_harvest, de_ms_herbicide1, de_ms_insecticide, de_ms_preseeding_cultivator, de_ms_spring_plough_sandy, de_ms_spring_sow_with_ferti, de_ms_start, DE_MS_START_FERTI, de_ms_straw_chopping, de_ms_stubble_harrow, de_ms_winter_plough, Farm::DoIt_prob(), Farm::FA_AmmoniumSulphate(), Farm::FA_Slurry(), Farm::FP_AmmoniumSulphate(), Farm::FP_Slurry(), g_date, g_landscape_ptr, g_msg, LE::GetGreenBiomass(), LE::GetMDates(), LE::GetSoilType(), Farm::Harvest(), Farm::HerbicideTreat(), Farm::InsecticideTreat(), Farm::IsStockFarmer(), Crop::m_date_modifier, Crop::m_ev, Crop::m_farm, Crop::m_field, FarmEvent::m_forcespring, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_todo, Calendar::OldDays(), ppp_1, Farm::PreseedingCultivator(), Farm::ProductApplication(), Crop::SimpleEvent(), Crop::SimpleEvent_(), Farm::SpringPlough(), Farm::SpringSowWithFerti(), Crop::StartUpCrop(), Farm::StrawChopping(), Farm::StubbleHarrowing(), Landscape::SupplyPestIncidenceFactor(), tov_DEMaizeSilage, CfgBool::value(), CfgArray_Double::value(), MapErrorMsg::Warn(), WARN_BUG, and Farm::WinterPlough().
|
inline |
References DE_MAIZESILAGE_BASE, de_ms_foobar, fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Herbicide, fmc_Insecticide, fmc_Others, Crop::m_base_elements_no, and Crop::m_ManagementCategories.
Referenced by DE_MaizeSilage().