![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
#include <DK_OLegume.h>
Public Member Functions | |
bool | Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev) |
DK_OLegume (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... | |
|
inline |
References Calendar::DayInYear(), g_date, Crop::m_first_date, and SetUpFarmCategoryInformation().
Reimplemented from Crop.
References Farm::AutumnHarrow(), Farm::AutumnPlough(), LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), dk_ol_autumn_harrow, dk_ol_autumn_plough, DK_OL_DO_CATCHCROP, dk_ol_harvest, dk_ol_ks_ferti, dk_ol_rowcultivation, dk_ol_spring_harrow1, dk_ol_spring_harrow2, dk_ol_spring_plough, dk_ol_spring_row_sow, dk_ol_start, dk_ol_strigling, dk_ol_water, Farm::DoIt_prob(), Farm::FP_SK(), g_date, g_msg, LE::GetMDates(), Farm::Harvest(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_first_date, FarmEvent::m_first_year, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_startday, FarmEvent::m_todo, Calendar::OldDays(), Farm::RowCultivation(), LE::SetMDates(), LE::SetVegPatchy(), Farm::ShallowHarrow(), Crop::SimpleEvent(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringSow(), Farm::Strigling(), MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().
|
inline |
References DK_OL_BASE, dk_ol_foobar, fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Others, fmc_Watering, Crop::m_base_elements_no, and Crop::m_ManagementCategories.
Referenced by DK_OLegume().