Loading [MathJax]/extensions/ams.js
 |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Go to the documentation of this file.
45 #define PTSORGHUM_BASE 30300
49 #define PT_S_START_FERTI a_field->m_user[1]
135 #endif // PTSORGHUM_H
int GetMDates(int a, int b)
Definition: Elements.h:405
bool m_forcespring
Definition: Farm.h:392
virtual bool SpringPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the spring on a_field.
Definition: FarmFuncs.cpp:421
Definition: PTSorghum.h:57
bool IsStockFarmer(void)
Definition: Farm.h:961
void SetUpFarmCategoryInformation()
Definition: PTSorghum.h:100
virtual bool Harvest(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field.
Definition: FarmFuncs.cpp:1364
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
virtual bool Irrigation(LE *a_field, double a_user, int a_days, int a_max)
Generate an 'irrigation' event with a frequency defined by a_freq in the irrigation period on a_field...
Definition: FarmFuncs.cpp:1856
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
virtual bool FP_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:645
Definition: PTSorghum.h:71
class Calendar * g_date
Definition: Calendar.cpp:37
virtual bool SpringSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out a sowing event in the spring on a_field.
Definition: FarmFuncs.cpp:501
Definition: PTSorghum.h:61
int m_base_elements_no
Definition: Farm.h:505
int m_first_date
Definition: Farm.h:501
virtual bool FA_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer to a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:982
PTSorghumToDo
Definition: PTSorghum.h:56
The base class for all crops.
Definition: Farm.h:495
Definition: PTSorghum.h:67
Definition: PTSorghum.h:74
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
Definition: PTSorghum.h:75
virtual bool IrrigationStart(LE *a_field, double a_user, int a_days)
Start a irrigation event on a_field today.
Definition: FarmFuncs.cpp:1834
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: LandscapeFarmingEnums.h:1004
Definition: PTSorghum.h:63
long Date(void)
Definition: Calendar.h:57
Definition: PTSorghum.h:60
CfgBool g_farm_fixed_crop_enable
Definition: LandscapeFarmingEnums.h:1008
Bool configurator entry class.
Definition: Configurator.h:155
Definition: PTSorghum.h:66
virtual bool HayBailing(LE *a_field, double a_user, int a_days)
Carry out hay bailing on a_field.
Definition: FarmFuncs.cpp:1507
Definition: LandscapeFarmingEnums.h:1003
Definition: LandscapeFarmingEnums.h:311
Definition: LandscapeFarmingEnums.h:1011
long OldDays(void)
Definition: Calendar.h:60
Definition: PTSorghum.h:72
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
bool StartUpCrop(int a_spring, std::vector< std::vector< int >> a_flexdates, int a_todo)
Holds the translation between the farm operation enum for each cropand the farm management category a...
Definition: Farm.cpp:652
Farm * m_farm
Definition: Farm.h:498
LE * m_field
Definition: Farm.h:499
PTSorghum class .
Definition: PTSorghum.h:88
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
int m_todo
Definition: Farm.h:388
Definition: PTSorghum.h:70
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: Elements.h:86
#define PTSORGHUM_BASE
Definition: PTSorghum.h:45
int m_last_date
Definition: Farm.h:503
Definition: PTSorghum.h:59
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
The base class for all farm types.
Definition: Farm.h:755
Definition: PTSorghum.h:58
Definition: LandscapeFarmingEnums.h:1012
Definition: PTSorghum.h:69
Definition: PTSorghum.h:64
Definition: PTSorghum.h:68
PTSorghum(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: PTSorghum.h:92
Definition: PTSorghum.h:65
int DayInYear(void)
Definition: Calendar.h:58
Definition: PTSorghum.h:73
FarmEvent * m_ev
Definition: Farm.h:500
Definition: PTSorghum.h:62
Definition: MapErrorMsg.h:34
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.
Definition: PTSorghum.cpp:55
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
virtual bool StubbleHarrowing(LE *a_field, double a_user, int a_days)
Carry out stubble harrowing on a_field.
Definition: FarmFuncs.cpp:1523
virtual bool SpringHarrow(LE *a_field, double a_user, int a_days)
Carry out a harrow event in the spring on a_field.
Definition: FarmFuncs.cpp:459
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.
Definition: Farm.cpp:751