/// <summary>Method that calculates parameters for leaf cohort to appear and then calls event so leaf calss can make cohort appear</summary> public void DoLeafTipAppearance() { TipToAppear += 1; CohortParams = new ApparingLeafParams() { }; CohortParams.CohortToAppear = TipToAppear; CohortParams.TotalStemPopn = TotalStemPopn; CohortParams.CohortAge = 0; CohortParams.FinalFraction = NextLeafProportion; if (LeafTipAppearance != null) { LeafTipAppearance.Invoke(this, CohortParams); } }
/// <summary>Method that calculates parameters for leaf cohort to appear and then calls event so leaf calss can make cohort appear</summary> public void DoLeafTipAppearance() { TipToAppear += 1; CohortParams = new ApparingLeafParams() { }; CohortParams.CohortToAppear = TipToAppear; CohortParams.TotalStemPopn = TotalStemPopn; // if ((Math.Truncate(LeafTipsAppeared) + 1) == leaf.InitialisedCohortNo) // CohortParams.CohortAge = (PotLeafTipsAppeared - TipToAppear) * phyllochron.Value(); // else // CohortParams.CohortAge = (LeafTipsAppeared - TipToAppear) * phyllochron.Value(); CohortParams.CohortAge = 0; CohortParams.FinalFraction = NextLeafProportion; if (LeafTipAppearance != null) { LeafTipAppearance.Invoke(this, CohortParams); } }
/// <summary>Method that calculates parameters for leaf cohort to appear and then calls event so leaf calss can make cohort appear</summary> public void DoLeafTipAppearance() { TipToAppear += 1; CohortParams = new ApparingLeafParams() { }; CohortParams.CohortToAppear = TipToAppear; CohortParams.TotalStemPopn = TotalStemPopn; if ((Math.Truncate(LeafTipsAppeared) + 1) == Leaf.InitialisedCohortNo) { CohortParams.CohortAge = (PotLeafTipsAppeared - TipToAppear) * MainStemNodeAppearanceRate.Value(); } else { CohortParams.CohortAge = (LeafTipsAppeared - TipToAppear) * MainStemNodeAppearanceRate.Value(); } CohortParams.FinalFraction = NextLeafProportion; if (LeafTipAppearance != null) { LeafTipAppearance.Invoke(this, CohortParams); } }