ALMaSS Vole ODDox
1.1
The vole model description following ODdox protocol
|
WinterWheat class
.
More...
#include <WinterWheat.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... | |
WinterWheat () | |
Public Member Functions inherited from Crop | |
virtual | ~Crop () |
Crop () | |
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) |
Additional Inherited Members | |
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... | |
Protected Attributes inherited from Crop | |
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_CropClassification |
WinterWheat class
.
See WinterWheat.h::WinterWheatToDo 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.
Definition at line 116 of file WinterWheat.h.
|
inline |
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 - in this case conventional winter wheat.
Inputs to a farm mangement event call.
bool forcing a_eve->m_lock bool probability (if forcing lock is false) Farm management to try (function address) Event type Finish date Flags to set on success Flage value to set Next event Start date for next evemt
Reimplemented from Crop.
Definition at line 101 of file WinterWheat.cpp.
References Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnRoll(), Farm::AutumnSow(), Landscape::BackTranslateVegTypes(), cfg_fungi_app_prop1, cfg_fungi_app_prop2, cfg_greg_app_prop, cfg_herbi_app_prop, cfg_ins_app_prop1, cfg_ins_app_prop2, cfg_ins_app_prop3, cfg_pest_product_1_amount, cfg_pest_winterwheat_on, cfg_WinterWheat_SkScrapes(), cfg_WW_InsecticideDay, cfg_WW_InsecticideMonth, Crop::ChooseNextCrop(), Farm::DeepPlough(), Farm::DoIt(), Farm::FA_Manure(), Farm::FA_NPK(), Farm::FA_Slurry(), Farm::FP_ManganeseSulphate(), Farm::FP_NPK(), Farm::FP_Slurry(), Farm::FungicideTreat(), g_landscape_p, Farm::GetType(), Farm::GrowthRegulator(), Farm::Harvest(), Farm::HayBailing(), Farm::HayTurning(), Farm::HerbicideTreat(), Farm::InsecticideTreat(), Farm::IsStockFarmer(), Crop::m_farm, Crop::m_field, Crop::m_first_date, FarmEvent::m_first_year, FarmEvent::m_lock, FarmEvent::m_next_tov, FarmEvent::m_startday, FarmEvent::m_todo, ppp_1, Farm::Prob_multiplier(), Farm::ProductApplication(), Crop::SimpleEvent(), Farm::Spraying_fungins(), Farm::Spraying_herbicides(), Farm::SpringRoll(), Farm::StrawChopping(), Farm::Strigling(), Farm::StubbleHarrowing(), Landscape::SupplyShouldSpray(), tof_OptimisingFarm, Farm::Water(), ww_autumn_harrow, WW_AUTUMN_PLOUGH, ww_autumn_plough, ww_autumn_roll, ww_autumn_sow, WW_DECIDE_TO_FI, WW_DECIDE_TO_HERB, ww_ferti_p1, ww_ferti_p2, ww_ferti_p3, ww_ferti_p4, ww_ferti_p5, ww_ferti_s1, ww_ferti_s2, ww_ferti_s3, ww_ferti_s4, ww_ferti_s5, ww_fungicide, ww_fungicide2, ww_GR, ww_grubning, ww_harvest, ww_hay_baling, ww_hay_turning, ww_herbicide1, ww_herbicide2, ww_insecticide1, ww_insecticide2, ww_insecticide3, ww_spring_roll, ww_start, ww_straw_chopping, ww_strigling1, ww_strigling2, ww_stubble_harrow1, ww_stubble_harrow2, ww_water1, and ww_water2.