ALMaSS Rabbit ODdox
1.00
The rabbit model description following ODdox protocol
|
Farmfuncs.cpp This file contains the source for implementing the farm events
More...
#include "ls.h"
Go to the source code of this file.
Macros | |
#define | UNREFERENCED_PARAMETER(P) (P) |
#define | DO_IT_PROB (l_farm_event_do_it_prob.value()) |
#define | DO_IT_PROB_LONG (l_farm_event_do_it_prob_long.value()) |
Variables | |
Landscape * | g_landscape_p |
CfgFloat | l_pest_insecticide_amount |
CfgFloat | l_pest_product_1_amount |
CfgFloat | l_pest_product_0_amount |
CfgInt | l_pest_productapplic_startdate |
CfgInt | l_pest_productapplic_enddate |
CfgInt | l_pest_productapplic_period |
CfgBool | cfg_OptimiseBedriftsmodelCrops |
If set to true, the original farm optimisation model's crop set is used in the farmer decision making model In this mode the optimisation is carried out only once; it is used for the comparioson of the optimisaiton results with the original model. More... | |
CfgInt | cfg_productapplicstartyear |
CfgInt | cfg_productapplicendyear |
static CfgInt | l_farm_event_do_it_prob ("FARM_EVENT_DO_IT_PROB", CFG_PRIVATE, 50) |
static CfgInt | l_farm_event_do_it_prob_long ("FARM_EVENT_DO_IT_PROB_LONG", CFG_PRIVATE, 5) |
static CfgFloat | l_farm_cattle_veg_reduce ("FARM_CATTLE_VEG_REDUCE", CFG_CUSTOM, 1.5) |
static CfgFloat | l_farm_cattle_veg_reduce2 ("FARM_CATTLE_VEG_REDUCE_LOW", CFG_CUSTOM, 1.00) |
static CfgFloat | l_farm_pig_veg_reduce ("FARM_PIG_VEG_REDUCE", CFG_CUSTOM, 0.98) |
static CfgBool | l_farm_insecticide_kills ("FARM_INSECTICIDE_KILLS", CFG_CUSTOM, true) |
static CfgBool | l_farm_herbicide_kills ("FARM_PESTICIDE_KILLS", CFG_CUSTOM, true) |
CfgInt | cfg_WW_InsecticideDay ("PEST_WWINSECTONEDAY", CFG_CUSTOM, 1) |
Provided to allow configuration control of the first insecticide spray in winter wheat - this changes the day in the month. More... | |
CfgInt | cfg_WW_InsecticideMonth ("PEST_WWINSECTONEMONTH", CFG_CUSTOM, 5) |
Provided to allow configuration control of the first insecticide spray in winter wheat - this changes the month. More... | |
CfgInt | cfg_SB_InsecticideDay ("PEST_SBINSECTONEDAY", CFG_CUSTOM, 15) |
Provided to allow configuration control of the first insecticide spray in spring barley crops - this changes the day in the month. More... | |
CfgInt | cfg_SB_InsecticideMonth ("PEST_SBINSECTONEMONTH", CFG_CUSTOM, 5) |
Provided to allow configuration control of the first insecticide spray in spring barley crops - this changes the month. More... | |
CfgInt | cfg_OSR_InsecticideDay ("PEST_OSRINSECTONEDAY", CFG_CUSTOM, 30) |
Provided to allow configuration control of the first insecticide spray in OSR - this changes the day in the month. More... | |
CfgInt | cfg_OSR_InsecticideMonth ("PEST_OSRINSECTONEMONTH", CFG_CUSTOM, 4) |
Provided to allow configuration control of the first insecticide spray in OSR - this changes the month. More... | |
CfgFloat | l_el_o_cut_height |
CfgFloat | l_el_o_cut_green |
CfgFloat | l_el_o_cut_total |
Farmfuncs.cpp This file contains the source for implementing the farm events
by Frank Nikolaisen & Chris J. Topping
Initial version of June 2003, but under continual change.
All rights reserved.
Doxygen formatted comments in July 2008
Definition in file farmfuncs.cpp.
#define DO_IT_PROB (l_farm_event_do_it_prob.value()) |
Definition at line 58 of file farmfuncs.cpp.
Referenced by Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnRoll(), Farm::AutumnSow(), Farm::BurnStrawStubble(), Farm::CattleOut(), Farm::CattleOutLowGrazing(), Farm::CutOrch(), Farm::CutToHay(), Farm::CutToSilage(), Farm::CutWeeds(), Farm::DeepPlough(), Farm::FA_AmmoniumSulphate(), Farm::FA_GreenManure(), Farm::FA_Manure(), Farm::FA_NPK(), Farm::FA_PK(), Farm::FA_Sludge(), Farm::FA_Slurry(), Farm::FP_GreenManure(), Farm::FP_LiquidNH3(), Farm::FP_ManganeseSulphate(), Farm::FP_Manure(), Farm::FP_NPK(), Farm::FP_NPKS(), Farm::FP_PK(), Farm::FP_Sludge(), Farm::FP_Slurry(), Farm::FungicideTreat(), OptimisingFarm::FungicideTreat(), Farm::GrowthRegulator(), Farm::Harvest(), OptimisingFarm::Harvest(), Farm::HayBailing(), Farm::HayTurning(), Farm::HerbicideTreat(), OptimisingFarm::HerbicideTreat(), Farm::HillingUp(), Farm::InsecticideTreat(), OptimisingFarm::InsecticideTreat(), Farm::Molluscicide(), Farm::PigsOut(), Farm::RowCultivation(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringRoll(), Farm::SpringSow(), Farm::StrawChopping(), Farm::Strigling(), Farm::StriglingSow(), Farm::StubbleHarrowing(), Farm::Swathing(), Farm::Water(), and Farm::WinterPlough().
#define DO_IT_PROB_LONG (l_farm_event_do_it_prob_long.value()) |
Definition at line 59 of file farmfuncs.cpp.
Referenced by Farm::HarvestLong().
#define UNREFERENCED_PARAMETER | ( | P | ) | (P) |
Definition at line 40 of file farmfuncs.cpp.
CfgBool cfg_OptimiseBedriftsmodelCrops |
If set to true, the original farm optimisation model's crop set is used in the farmer decision making model In this mode the optimisation is carried out only once; it is used for the comparioson of the optimisaiton results with the original model.
CfgInt cfg_OSR_InsecticideDay("PEST_OSRINSECTONEDAY", CFG_CUSTOM, 30) |
Provided to allow configuration control of the first insecticide spray in OSR - this changes the day in the month.
CfgInt cfg_OSR_InsecticideMonth("PEST_OSRINSECTONEMONTH", CFG_CUSTOM, 4) |
Provided to allow configuration control of the first insecticide spray in OSR - this changes the month.
CfgInt cfg_productapplicendyear |
Referenced by Landscape::Tick().
CfgInt cfg_productapplicstartyear |
Referenced by Landscape::Tick().
CfgInt cfg_SB_InsecticideDay("PEST_SBINSECTONEDAY", CFG_CUSTOM, 15) |
Provided to allow configuration control of the first insecticide spray in spring barley crops - this changes the day in the month.
CfgInt cfg_SB_InsecticideMonth("PEST_SBINSECTONEMONTH", CFG_CUSTOM, 5) |
Provided to allow configuration control of the first insecticide spray in spring barley crops - this changes the month.
CfgInt cfg_WW_InsecticideDay("PEST_WWINSECTONEDAY", CFG_CUSTOM, 1) |
Provided to allow configuration control of the first insecticide spray in winter wheat - this changes the day in the month.
CfgInt cfg_WW_InsecticideMonth("PEST_WWINSECTONEMONTH", CFG_CUSTOM, 5) |
Provided to allow configuration control of the first insecticide spray in winter wheat - this changes the month.
Landscape* g_landscape_p |
Definition at line 238 of file Landscape.cpp.
CfgFloat l_el_o_cut_green |
Referenced by Orchard::Cutting(), and MownGrass::Cutting().
CfgFloat l_el_o_cut_height |
Referenced by Orchard::Cutting(), and MownGrass::Cutting().
CfgFloat l_el_o_cut_total |
Referenced by Orchard::Cutting(), and MownGrass::Cutting().
|
static |
Referenced by Farm::CattleIsOut(), and Farm::CattleOut().
|
static |
Referenced by Farm::CattleIsOutLow(), and Farm::CattleOutLowGrazing().
|
static |
|
static |
|
static |
Referenced by Farm::HerbicideTreat(), and OptimisingFarm::HerbicideTreat().
|
static |
|
static |
Referenced by Farm::PigsAreOutForced(), and Farm::PigsOut().
CfgFloat l_pest_insecticide_amount |
CfgFloat l_pest_product_0_amount |
CfgFloat l_pest_product_1_amount |
CfgInt l_pest_productapplic_enddate |
CfgInt l_pest_productapplic_period |
CfgInt l_pest_productapplic_startdate |