ALMaSS Vole ODDox
1.1
The vole model description following ODdox protocol
|
NLPermanentGrassGrazed class
.
More...
#include <NLPermanentGrassGrazed.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... | |
NLPermanentGrassGrazed () | |
![]() | |
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 |
NLPermanentGrassGrazed class
.
See NLPermanentGrassGrazed.h::NLPermanentGrassGrazedToDo for a complete list of all possible events triggered codes by the PermanentGrassGrazed 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 83 of file NLPermanentGrassGrazed.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 PermanentGrassGrazed.
Reimplemented from Crop.
Definition at line 54 of file NLPermanentGrassGrazed.cpp.
References Landscape::BackTranslateVegTypes(), Farm::DoIt_prob(), Farm::FP_NPK(), g_landscape_p, Farm::GetType(), Farm::IsStockFarmer(), Crop::m_first_date, FarmEvent::m_first_year, FarmEvent::m_lock, FarmEvent::m_next_tov, FarmEvent::m_startday, FarmEvent::m_todo, nl_pgg_cattle_is_out, nl_pgg_cattle_out, NL_PGG_CUT_DATE, nl_pgg_cut_to_silage1, nl_pgg_cut_to_silage2, nl_pgg_cut_to_silage3, nl_pgg_cut_to_silage4, nl_pgg_cut_to_silage5, nl_pgg_cut_to_silage6, NL_PGG_FERTI_DATE, nl_pgg_ferti_p1, nl_pgg_ferti_p10, nl_pgg_ferti_p11, nl_pgg_ferti_p2, nl_pgg_ferti_p3, nl_pgg_ferti_p4, nl_pgg_ferti_p5, nl_pgg_ferti_p6, nl_pgg_ferti_p7, nl_pgg_ferti_p8, nl_pgg_ferti_p9, nl_pgg_ferti_s1, nl_pgg_ferti_s10, nl_pgg_ferti_s11, nl_pgg_ferti_s2, nl_pgg_ferti_s3, nl_pgg_ferti_s4, nl_pgg_ferti_s5, nl_pgg_ferti_s6, nl_pgg_ferti_s7, nl_pgg_ferti_s8, nl_pgg_ferti_s9, nl_pgg_start, NL_PGG_WATER_DATE, nl_pgg_watering, Crop::SimpleEvent_(), and tof_OptimisingFarm.