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/OGrazingPigs.h"
45 m_field->SetMDates(0,0,g_date->DayInYear(2,11));
46 m_field->SetMDates(1,0,g_date->DayInYear(2,11));
55 g_msg->Warn( WARN_BUG,
"GrazingPigs::Do(): "
56 "Autumn Crop Following Grazing Pigs is not allowed!!!",
"" );
61 int today=g_date->Date();
63 int d1 = g_date->OldDays() + g_date->DayInYear( 1,7 );
67 g_msg->Warn( WARN_BUG,
"GrazingPigs::Do(): "
68 "Crop start attempt between 1st Jan & 1st July",
"" );
77 g_msg->Warn( WARN_BUG,
"GrazingPigs::Do(): "
78 "Crop start attempt after last possible start date",
"" );
131 g_msg->Warn( WARN_BUG,
"OGrazingPigs::Do(): "
132 "Unknown event type! ",
"" );
virtual bool PigsAreOut(LE *a_field, double a_user, int a_days)
Start a pig grazing event on a_field today or soon.
virtual bool PigsAreOutForced(LE *a_field, double a_user, int a_days)
Start a pig grazing event on a_field today - no exceptions.
A struct to hold the information required to trigger a farm event.
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
The base class for all farm types.
#define PGP_FIRST_PIGS_IN_DATE
#define PGP_LAST_PIGS_IN_DATE
virtual bool PigsOut(LE *a_field, double a_user, int a_days)
Generate a 'pigs_out' event for every day the cattle are on a_field.