ALMaSS Rabbit ODdox  1.00
The rabbit model description following ODdox protocol
Macros | Variables
farmfuncs.cpp File Reference

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

Landscapeg_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
 

Detailed Description

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.

Macro Definition Documentation

#define DO_IT_PROB   (l_farm_event_do_it_prob.value())
#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.

Variable Documentation

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
CfgFloat l_el_o_cut_height
CfgFloat l_el_o_cut_total
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
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
CfgBool l_farm_herbicide_kills("FARM_PESTICIDE_KILLS", CFG_CUSTOM, true)
static
CfgBool l_farm_insecticide_kills("FARM_INSECTICIDE_KILLS", CFG_CUSTOM, true)
static
CfgFloat l_farm_pig_veg_reduce("FARM_PIG_VEG_REDUCE", CFG_CUSTOM, 0.98)
static
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