ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
|
Go to the documentation of this file.
28 #include "../../Landscape/ls.h"
29 #include "../../Landscape/cropprogs/OrchardCrop.h"
50 int today = g_date->Date();
59 m_field->SetMDates(0,0,g_date->DayInYear(1,9));
61 m_field->SetMDates(1,0,g_date->DayInYear(1,9));
72 g_msg->Warn( WARN_BUG,
"OrchardCrop::Do(): Harvest too late for the next crop to start!!!",
"" );
76 for (
int i=0; i<noDates; i++) {
91 g_msg->Warn( WARN_BUG,
" OrchardCrop::Do(): Crop start attempt after last possible start date",
"" );
98 if ( g_date->Date() > d1 ){
115 if ( ( today == 259 ) || ( today == 122 ) || ( today == 92 ) || ( today == 196 ) )
119 if ( ( today == 259 ) || ( today == 122 ) || ( today == 92 ) )
m_farm->
CutOrch(
m_field, 0.0, -1);
180 g_msg->Warn( WARN_BUG,
"OrchardCrop::Do(): Unknown event type! ",
"" );
virtual bool ProductApplication(LE *a_field, double a_user, int a_days, double a_applicationrate, PlantProtectionProducts a_ppp)
Apply test pesticide to a_field.
A struct to hold the information required to trigger a farm event.
bool DoIt(double a_probability)
Return chance out of 0 to 100.
CfgFloat cfg_ins_app_prop1
TTypesOfFarm GetType(void)
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
CfgFloat cfg_pest_product_1_amount
virtual bool CutOrch(LE *a_field, double a_user, int a_days)
Cut vegetation on orchard crop. //based on cut to silage - values from cutting function of orchard.
int SupplyYearNumber(void)
CfgInt cfg_productapplicstartyear
The base class for all farm types.
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
CfgInt cfg_productapplicendyear
CfgInt cfg_OrchardNoCutsDay
CfgInt cfg_pest_productapplic_startdate2
void ChooseNextCrop(int a_no_dates)
Chooses the next crop to grow in a field.
Landscape * g_landscape_p
CfgInt cfg_pest_productapplic_startdate