ALMaSS Partridge ODdox
1.1
The partridge model description following ODdox protocol
|
The base class for all crops. More...
#include <farm.h>
Public Member Functions | |
virtual | ~Crop () |
Crop () | |
int | GetFirstDate (void) |
virtual bool | Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev) |
void | ChooseNextCrop (int a_no_dates) |
Chooses the next crop to grow in a field. More... | |
int | GetCropClassification () |
void | SetCropClassification (int a_classification) |
Protected Member Functions | |
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 | |
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 |
Crop::Crop | ( | ) |
Definition at line 297 of file farm.cpp.
References tocc_Winter.
void Crop::ChooseNextCrop | ( | int | a_no_dates | ) |
Chooses the next crop to grow in a field.
The function finds the next crop to grow on a field where the current crop's management has finished. If necessary, it adjusts current crop's management to the new crop.
Definition at line 318 of file farm.cpp.
References cfg_OptimiseBedriftsmodelCrops, cfg_OptimisingFarms, Calendar::DayInYear(), g_date, g_msg, Calendar::GetYearNumber(), OptimisingFarm::Match_crop_to_field(), tof_OptimisingFarm, CfgBool::value(), MapErrorMsg::Warn(), and WARN_BUG.
|
inline |
|
inline |
|
inline |
|
protected |
Adds an event to this crop management.
Definition at line 307 of file farm.cpp.
|
protected |
Adds an event to this crop management without relying on member variables.
Definition at line 312 of file farm.cpp.
References Farm::AddNewEvent().
|
protected |
Definition at line 545 of file farm.h.
Referenced by GetCropClassification(), and SetCropClassification().
|
protected |
Definition at line 540 of file farm.h.
Referenced by GetFirstDate().