ALMaSS Skylark ODDox
1.1
The skylark model description following ODdox protocol
|
#include <NLCarrots.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... | |
NLCarrots () | |
![]() | |
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 |
NLCarrots class
.
See NLCarrots.h::NLCarrotsToDo for a complete list of all possible events triggered codes by the carrots 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 |
References Crop::m_first_date.
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 carrots.
Reimplemented from Crop.
References Landscape::BackTranslateVegTypes(), 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_ca_bed_forming, nl_ca_ferti_p1, nl_ca_ferti_p2, nl_ca_ferti_s1, nl_ca_ferti_s2, NL_CA_FUNGI1, NL_CA_FUNGI2, nl_ca_fungicide1, nl_ca_fungicide2, nl_ca_fungicide3, nl_ca_harvest, NL_CA_HERBI1, NL_CA_HERBI2, nl_ca_herbicide1, nl_ca_herbicide2, nl_ca_herbicide3, nl_ca_preseeding_cultivator, nl_ca_spring_plough_sandy, nl_ca_spring_sow, nl_ca_start, nl_ca_winter_deep_harrow_clay, NL_CA_WINTER_PLOUGH, nl_ca_winter_plough_clay, Crop::SimpleEvent_(), Farm::SpringPlough(), and tof_OptimisingFarm.