Goose Management Model ODdox
1.02
|
#include <plants.h>
Public Member Functions | |
double | GetBugPercentA (TTypesOfVegetation a_letype) |
double | GetBugPercentB (TTypesOfVegetation a_letype) |
double | GetBugPercentC (TTypesOfVegetation a_letype) |
double | GetBugPercentD (TTypesOfVegetation a_letype) |
double | GetHeightDiff (double a_ddegs, double a_yddegs, int a_plant, int a_phase) |
Get the differential in veg height for the day degrees experienced. More... | |
double | GetHeightDiffScaled (double a_ddegs, double a_yddegs, int a_plant, int a_phase, double a_scaler) |
Get the differential in veg height for the day degrees experienced, scalable depending on plant growth ability. More... | |
double | GetLAgreenDiff (double a_ddegs, double a_yddegs, int a_plant, int a_phase) |
Get the differential in LA green for the day degrees experienced. More... | |
double | GetLAgreenDiffScaled (double a_ddegs, double a_yddegs, int a_plant, int a_phase, double a_scaler) |
Get the differential in LA green for the day degrees experienced, scalable depending on plant growth ability. More... | |
double | GetLAtotalDiff (double a_ddegs, double a_yddegs, int a_plant, int a_phase) |
Get the differential in LA total for the day degrees experienced. More... | |
double | GetLAtotalDiffScaled (double a_ddegs, double a_yddegs, int a_plant, int a_phase, double a_scaler) |
Get the differential in LA total for the day degrees experienced, scalable depending on plant growth ability. More... | |
int | GetNumCrops () |
bool | GetNutStatus (int a_plant_num) |
bool | GetNutStatusExt (int a_plant) |
double | GetStartValue (int a_veg_type, int a_phase, int a_type) |
double | GetWeedPercent (TTypesOfVegetation a_letype) |
PlantGrowthData (const char *a_cropcurvefile) | |
bool | StartValid (int a_veg_type, int a_phase) |
int | VegTypeToCurveNum (TTypesOfVegetation VegReference) |
~PlantGrowthData () | |
Private Member Functions | |
unsigned int | FindCropNum (ifstream &ist) |
double | FindDiff (double a_ddegs, double a_yddegs, int a_plant, int a_phase, int a_type) |
void | MakeBugPercentArray (void) |
void | ReadBugPercentageFile (void) |
void | SetVegNum (unsigned int a_i, ifstream &ist, const char *a_cropcurvefile) |
Private Attributes | |
double * | m_bug_percent_a |
double * | m_bug_percent_b |
double * | m_bug_percent_c |
int * | m_bug_percent_d |
vector< CropGrowth * > | m_growth |
ifstream | m_ifile |
int | m_num_crops |
vector< int > | m_numbers |
double * | m_weed_percent |
PlantGrowthData::PlantGrowthData | ( | const char * | a_cropcurvefile | ) |
Definition at line 157 of file plants.cpp.
References FindCropNum(), FloatToDouble(), m_growth, MaxNoInflections, and SetVegNum().
PlantGrowthData::~PlantGrowthData | ( | ) |
Definition at line 210 of file plants.cpp.
References m_growth.
|
private |
Definition at line 103 of file plants.cpp.
References m_growth, m_num_crops, and m_numbers.
Referenced by PlantGrowthData().
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the differential in veg height for the day degrees experienced.
Definition at line 115 of file plants.h.
Referenced by VegElement::ForceGrowthSpringTest().
|
inline |
Get the differential in veg height for the day degrees experienced, scalable depending on plant growth ability.
Definition at line 125 of file plants.h.
Referenced by VegElement::DoDevelopment().
|
inline |
Get the differential in LA green for the day degrees experienced.
Definition at line 107 of file plants.h.
Referenced by VegElement::ForceGrowthSpringTest().
|
inline |
Get the differential in LA green for the day degrees experienced, scalable depending on plant growth ability.
Definition at line 121 of file plants.h.
Referenced by VegElement::DoDevelopment().
|
inline |
Get the differential in LA total for the day degrees experienced.
Definition at line 111 of file plants.h.
Referenced by VegElement::DoDevelopment(), UnsprayedFieldMargin::DoDevelopment(), and VegElement::ForceGrowthSpringTest().
|
inline |
Get the differential in LA total for the day degrees experienced, scalable depending on plant growth ability.
Definition at line 123 of file plants.h.
Referenced by VegElement::DoDevelopment().
|
inline |
Definition at line 135 of file plants.h.
Referenced by CropRotation::GetFirstCrop().
|
inline |
Definition at line 170 of file plants.h.
Referenced by CropRotation::GetFirstCrop().
|
inline |
|
inline |
Definition at line 127 of file plants.h.
Referenced by VegElement::ForceGrowthInitialize(), and VegElement::SetGrowthPhase().
|
inline |
|
private |
|
private |
|
private |
Definition at line 131 of file plants.cpp.
References g_msg, m_growth, m_numbers, MapErrorMsg::Warn(), and WARN_FILE.
Referenced by PlantGrowthData().
bool PlantGrowthData::StartValid | ( | int | a_veg_type, |
int | a_phase | ||
) |
Definition at line 409 of file plants.cpp.
References m_growth, and m_numbers.
Referenced by VegElement::ForceGrowthInitialize(), and VegElement::SetGrowthPhase().
int PlantGrowthData::VegTypeToCurveNum | ( | TTypesOfVegetation | VegReference | ) |
Definition at line 226 of file plants.cpp.
References g_msg, tov_AgroChemIndustryCereal, tov_BroadBeans, tov_Carrots, tov_CloverGrassGrazed1, tov_CloverGrassGrazed2, tov_DummyCropPestTesting, tov_FieldPeas, tov_FieldPeasSilage, tov_FieldPeasStrigling, tov_FodderBeet, tov_FodderGrass, tov_Heath, tov_Lawn, tov_Maize, tov_MaizeSilage, tov_MaizeStrigling, tov_NaturalGrass, tov_NLBeet, tov_NLBeetSpring, tov_NLCabbage, tov_NLCabbageSpring, tov_NLCarrots, tov_NLCarrotsSpring, tov_NLCatchPeaCrop, tov_NLGrassGrazed1, tov_NLGrassGrazed1Spring, tov_NLGrassGrazed2, tov_NLGrassGrazedLast, tov_NLMaize, tov_NLMaizeSpring, tov_NLPermanentGrassGrazed, tov_NLPotatoes, tov_NLPotatoesSpring, tov_NLSpringBarley, tov_NLSpringBarleySpring, tov_NLTulips, tov_NLWinterWheat, tov_NoGrowth, tov_NorwegianOats, tov_NorwegianPotatoes, tov_NorwegianSpringBarley, 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_PlantNursery, tov_PLBeans, tov_PLBeet, tov_PLBeetSpr, tov_PLCarrots, tov_PLFodderLucerne1, tov_PLFodderLucerne2, tov_PLMaize, tov_PLMaizeSilage, tov_PLPotatoes, tov_PLSpringBarley, tov_PLSpringBarleySpr, tov_PLSpringWheat, tov_PLWinterBarley, tov_PLWinterRape, tov_PLWinterRye, tov_PLWinterTriticale, tov_PLWinterWheat, tov_PLWinterWheatLate, 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_WaterBufferZone, 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(), RoadsideVerge::RoadsideVerge(), VegElement::SetVegType(), UnsprayedFieldMargin::UnsprayedFieldMargin(), VegElement::VegElement(), Wasteland::Wasteland(), WaterBufferZone::WaterBufferZone(), and YoungForest::YoungForest().
|
private |
Definition at line 82 of file plants.h.
Referenced by FindCropNum(), FindDiff(), PlantGrowthData(), SetVegNum(), StartValid(), and ~PlantGrowthData().
|
private |
Definition at line 84 of file plants.h.
Referenced by FindCropNum().
|
private |
Definition at line 83 of file plants.h.
Referenced by FindCropNum(), FindDiff(), SetVegNum(), and StartValid().