ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
|
#include <NLBeet.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... | |
NLBeet () | |
Public Member Functions inherited from Crop | |
void | ChooseNextCrop (int a_no_dates) |
Chooses the next crop to grow in a field. More... | |
Crop () | |
int | GetCropClassification () |
int | GetFirstDate (void) |
void | SetCropClassification (int a_classification) |
virtual | ~Crop () |
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 | |
int | m_count |
int | m_CropClassification |
int | m_ddegstoharvest |
FarmEvent * | m_ev |
Farm * | m_farm |
LE * | m_field |
int | m_first_date |
int | m_last_date |
NLBeet class
.
See NLBeet.h::NLBeetToDo for a complete list of all possible events triggered codes by the beet 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 |
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 beet.
Reimplemented from Crop.
Definition at line 64 of file NLBeet.cpp.
References Landscape::BackTranslateVegTypes(), g_landscape_p, Farm::GetType(), Crop::m_first_date, FarmEvent::m_first_year, FarmEvent::m_lock, FarmEvent::m_next_tov, FarmEvent::m_startday, FarmEvent::m_todo, nl_be_ferti_p1, nl_be_ferti_p2, nl_be_ferti_s1, nl_be_ferti_s2, NL_BE_FUNGI1, nl_be_fungicide1, nl_be_fungicide2, nl_be_fungicide3, nl_be_harvest, NL_BE_HERBI1, nl_be_herbicide1, nl_be_herbicide2, nl_be_herbicide3, nl_be_herbicide4, nl_be_preseeding_cultivator, nl_be_spring_plough_sandy, nl_be_spring_sow, nl_be_start, nl_be_stubble_harrow_clay, nl_be_stubble_harrow_sandy, nl_be_winter_plough_clay, Crop::SimpleEvent_(), Farm::StubbleHarrowing(), and tof_OptimisingFarm.