ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
|
PLFodderLucerne1 class
.
More...
#include <PLFodderLucerne1.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... | |
PLFodderLucerne1 () | |
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 |
PLFodderLucerne1 class
.
See PLFodderLucerne1.h::PLFodderLucerne1ToDo for a complete list of all possible events triggered codes by the fodder lucerne1 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 79 of file PLFodderLucerne1.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 fodder lucerne in the first year.
Reimplemented from Crop.
Definition at line 56 of file PLFodderLucerne1.cpp.
References Landscape::BackTranslateVegTypes(), Farm::DoIt(), g_landscape_p, Farm::GetType(), Farm::HerbicideTreat(), Farm::IsStockFarmer(), Crop::m_first_date, FarmEvent::m_first_year, FarmEvent::m_lock, FarmEvent::m_next_tov, FarmEvent::m_startday, FarmEvent::m_todo, pl_fl1_autumn_harrow1, pl_fl1_autumn_harrow2, pl_fl1_cut_to_silage1, pl_fl1_cut_to_silage2, PL_FL1_FERTI_P1, pl_fl1_ferti_p1, pl_fl1_ferti_p2, pl_fl1_ferti_p3, pl_fl1_ferti_p4, PL_FL1_FERTI_S1, pl_fl1_ferti_s1, pl_fl1_ferti_s2, pl_fl1_ferti_s3, pl_fl1_ferti_s4, pl_fl1_heavy_cultivator, PL_FL1_HERBI_DATE, pl_fl1_herbicide0, PL_FL1_HERBICIDE1, pl_fl1_herbicide1, pl_fl1_herbicide2, pl_fl1_herbicide3, pl_fl1_preseeding_cultivator, PL_FL1_SPRING_FERTI, pl_fl1_spring_harrow, pl_fl1_spring_sow, pl_fl1_start, pl_fl1_stubble_harrow, PL_FL1_STUBBLE_PLOUGH, pl_fl1_stubble_plough, PL_FL1_WINTER_PLOUGH, pl_fl1_winter_plough, pl_fl1_winter_stubble_cultivator_heavy, Crop::SimpleEvent_(), and tof_OptimisingFarm.