ALMaSS Rabbit ODdox
1.00
The rabbit model description following ODdox protocol
|
#include <plants.h>
Public Member Functions | |
double | GetLAtotalDiff (double a_ddegs, double a_yddegs, int a_plant, int a_phase) |
double | GetLAgreenDiff (double a_ddegs, double a_yddegs, int a_plant, int a_phase) |
double | GetHeightDiff (double a_ddegs, double a_yddegs, int a_plant, int a_phase) |
double | GetStartValue (int a_veg_type, int a_phase, int a_type) |
bool | StartValid (int a_veg_type, int a_phase) |
int | GetNumCrops () |
int | VegTypeToCurveNum (TTypesOfVegetation VegReference) |
double | GetWeedPercent (TTypesOfVegetation a_letype) |
double | GetBugPercentA (TTypesOfVegetation a_letype) |
double | GetBugPercentB (TTypesOfVegetation a_letype) |
double | GetBugPercentC (TTypesOfVegetation a_letype) |
double | GetBugPercentD (TTypesOfVegetation a_letype) |
bool | GetNutStatus (int a_plant_num) |
bool | GetNutStatusExt (int a_plant) |
CropData (const char *a_cropcurvefile) | |
~CropData () | |
Private Member Functions | |
double | FindDiff (double a_ddegs, double a_yddegs, int a_plant, int a_phase, int a_type) |
unsigned int | FindCropNum (const char *a_cropcurvefile) |
void | SetVegNum (unsigned int a_i, const char *a_cropcurvefile) |
void | MakeBugPercentArray (void) |
void | ReadBugPercentageFile (void) |
Private Attributes | |
vector< CropGrowth * > | m_growth |
vector< int > | m_numbers |
int | m_num_crops |
FILE * | m_ifile |
double * | m_weed_percent |
double * | m_bug_percent_a |
double * | m_bug_percent_b |
double * | m_bug_percent_c |
int * | m_bug_percent_d |
CropData::CropData | ( | const char * | a_cropcurvefile | ) |
Definition at line 174 of file plants.cpp.
References FindCropNum(), FloatToDouble(), m_growth, m_ifile, MaxNoInflections, and SetVegNum().
CropData::~CropData | ( | ) |
|
private |
Definition at line 124 of file plants.cpp.
References g_msg, m_growth, m_ifile, m_num_crops, m_numbers, MapErrorMsg::Warn(), and WARN_FILE.
Referenced by CropData().
|
private |
Definition at line 41 of file plants.cpp.
References m_growth, m_numbers, and MaxNoInflections.
Referenced by GetHeightDiff(), GetLAgreenDiff(), and GetLAtotalDiff().
|
inline |
|
inline |
|
inline |
|
inline |
double CropData::GetHeightDiff | ( | double | a_ddegs, |
double | a_yddegs, | ||
int | a_plant, | ||
int | a_phase | ||
) |
Definition at line 116 of file plants.cpp.
References FindDiff().
Referenced by VegElement::DoDevelopment(), and VegElement::ForceGrowthSpringTest().
double CropData::GetLAgreenDiff | ( | double | a_ddegs, |
double | a_yddegs, | ||
int | a_plant, | ||
int | a_phase | ||
) |
Definition at line 102 of file plants.cpp.
References FindDiff().
Referenced by VegElement::DoDevelopment(), and VegElement::ForceGrowthSpringTest().
double CropData::GetLAtotalDiff | ( | double | a_ddegs, |
double | a_yddegs, | ||
int | a_plant, | ||
int | a_phase | ||
) |
Definition at line 109 of file plants.cpp.
References FindDiff().
Referenced by VegElement::DoDevelopment(), UnsprayedFieldMargin::DoDevelopment(), and VegElement::ForceGrowthSpringTest().
|
inline |
Definition at line 113 of file plants.h.
Referenced by CropRotation::GetFirstCrop().
|
inline |
|
inline |
Definition at line 105 of file plants.h.
Referenced by VegElement::ForceGrowthInitialize(), and VegElement::SetGrowthPhase().
|
inline |
|
private |
|
private |
|
private |
Definition at line 149 of file plants.cpp.
References g_msg, m_growth, m_ifile, m_numbers, MapErrorMsg::Warn(), and WARN_FILE.
Referenced by CropData().
bool CropData::StartValid | ( | int | a_veg_type, |
int | a_phase | ||
) |
Definition at line 364 of file plants.cpp.
References m_growth, and m_numbers.
Referenced by VegElement::ForceGrowthInitialize(), and VegElement::SetGrowthPhase().
int CropData::VegTypeToCurveNum | ( | TTypesOfVegetation | VegReference | ) |
Definition at line 231 of file plants.cpp.
References g_msg, tov_AgroChemIndustryCereal, tov_BroadBeans, tov_Carrots, tov_CloverGrassGrazed1, tov_CloverGrassGrazed2, tov_FieldPeas, tov_FieldPeasSilage, tov_FieldPeasStrigling, tov_FodderBeet, tov_FodderGrass, tov_Heath, tov_Lawn, tov_Maize, tov_MaizeSilage, tov_MaizeStrigling, tov_NaturalGrass, tov_NoGrowth, tov_Oats, tov_OBarleyPeaCloverGrass, tov_OCarrots, tov_OCloverGrassGrazed1, tov_OCloverGrassGrazed2, tov_OCloverGrassSilage1, tov_OFieldPeas, tov_OFieldPeasSilage, tov_OFodderBeet, tov_OGrazingPigs, tov_OMaizeSilage, tov_OOats, tov_OPermanentGrassGrazed, tov_OPotatoes, tov_OrchardCrop, tov_OSBarleySilage, tov_OSeedGrass1, tov_OSeedGrass2, tov_OSetaside, tov_OSpringBarley, tov_OSpringBarleyClover, tov_OSpringBarleyExt, tov_OSpringBarleyGrass, tov_OSpringBarleyPigs, tov_OTriticale, tov_OWinterBarley, tov_OWinterBarleyExt, tov_OWinterRape, tov_OWinterRye, tov_OWinterWheat, tov_OWinterWheatUndersown, tov_PermanentGrassGrazed, tov_PermanentGrassLowYield, tov_PermanentGrassTussocky, tov_PermanentSetaside, tov_Potatoes, tov_PotatoesIndustry, tov_SeedGrass1, tov_SeedGrass2, tov_Setaside, tov_SpringBarley, tov_SpringBarleyCloverGrass, tov_SpringBarleyCloverGrassStrigling, tov_SpringBarleyPeaCloverGrassStrigling, tov_SpringBarleyPTreatment, tov_SpringBarleySeed, tov_SpringBarleySilage, tov_SpringBarleySKManagement, tov_SpringBarleySpr, tov_SpringBarleyStrigling, tov_SpringBarleyStriglingCulm, tov_SpringBarleyStriglingSingle, tov_SpringRape, tov_SugarBeet, tov_Triticale, tov_Wasteland, tov_WinterBarley, tov_WinterBarleyStrigling, tov_WinterRape, tov_WinterRapeStrigling, tov_WinterRye, tov_WinterRyeStrigling, tov_WinterWheat, tov_WinterWheatShort, tov_WinterWheatStrigling, tov_WinterWheatStriglingCulm, tov_WinterWheatStriglingSingle, tov_WWheatPControl, tov_WWheatPToxicControl, tov_WWheatPTreatment, tov_YoungForest, MapErrorMsg::Warn(), and WARN_FILE.
Referenced by BeetleBank::BeetleBank(), FieldBoundary::FieldBoundary(), Heath::Heath(), HedgeBank::HedgeBank(), Hedges::Hedges(), Marsh::Marsh(), MownGrass::MownGrass(), NaturalGrassDry::NaturalGrassDry(), NaturalGrassWet::NaturalGrassWet(), Orchard::Orchard(), OrchardBand::OrchardBand(), PermanentSetaside::PermanentSetaside(), VegElement::SetVegType(), UnsprayedFieldMargin::UnsprayedFieldMargin(), VegElement::VegElement(), Wasteland::Wasteland(), and YoungForest::YoungForest().
|
private |
Definition at line 81 of file plants.h.
Referenced by CropData(), FindCropNum(), FindDiff(), SetVegNum(), StartValid(), and ~CropData().
|
private |
Definition at line 84 of file plants.h.
Referenced by CropData(), FindCropNum(), and SetVegNum().
|
private |
Definition at line 83 of file plants.h.
Referenced by FindCropNum().
|
private |
Definition at line 82 of file plants.h.
Referenced by FindCropNum(), FindDiff(), SetVegNum(), and StartValid().