ALMaSS Vole ODDox
1.1
The vole model description following ODdox protocol
|
NLCatchPeaCrop class
.
More...
#include <NLCatchPeaCrop.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... | |
NLCatchPeaCrop () | |
![]() | |
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 | |
![]() | |
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... | |
![]() | |
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 |
NLCatchPeaCrop class
.
See NLCatchPeaCrop.h::NLCatchPeaCropToDo for a complete list of all possible events triggered codes by the CatchPeaCrop 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 54 of file NLCatchPeaCrop.h.
|
inline |
Definition at line 58 of file NLCatchPeaCrop.h.
References Crop::m_first_date, Crop::SetCropClassification(), and tocc_Catch.
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 CatchPeaCrop.
Reimplemented from Crop.
Definition at line 56 of file NLCatchPeaCrop.cpp.
References Landscape::BackTranslateVegTypes(), g_farm_fixed_crop_enable, g_landscape_p, Farm::GetType(), Farm::IsStockFarmer(), Crop::m_first_date, FarmEvent::m_first_year, FarmEvent::m_next_tov, FarmEvent::m_startday, FarmEvent::m_todo, nl_cpc_ferti_p1, nl_cpc_ferti_p2_clay, nl_cpc_ferti_p2_sandy, nl_cpc_ferti_s1, nl_cpc_ferti_s2_clay, nl_cpc_ferti_s2_sandy, nl_cpc_preseeding_cultivator_with_sow, nl_cpc_sleep_all_day, nl_cpc_start, nl_cpc_stubble_cultivator, nl_cpc_winter_plough_clay, Crop::SimpleEvent_(), Farm::StubbleHarrowing(), and tof_OptimisingFarm.