//--------------------------------------------------------------------- /// <summary> /// Add a new cohort to a site following reproduction or planting. Does not include initial communities. /// This is a Delegate method to base succession. /// </summary> public void AddNewCohort(ISpecies species, ActiveSite site, string reproductionType) { float[] initialBiomass = CohortBiomass.InitialBiomass(species, SiteVars.Cohorts[site], site); SiteVars.Cohorts[site].AddNewCohort(species, 1, initialBiomass[0], initialBiomass[1]); if (reproductionType == "plant") { SpeciesByPlant[species.Index]++; } else if (reproductionType == "serotiny") { SpeciesBySerotiny[species.Index]++; } else if (reproductionType == "resprout") { SpeciesByResprout[species.Index]++; } else if (reproductionType == "seed") { SpeciesBySeed[species.Index]++; } }
//--------------------------------------------------------------------- /// <summary> /// Add a new cohort to a site following reproduction or planting. Does not include initial communities. /// This is a Delegate method to base succession. /// </summary> public void AddNewCohort(ISpecies species, ActiveSite site) { float[] initialBiomass = CohortBiomass.InitialBiomass(species, SiteVars.Cohorts[site], site); SiteVars.Cohorts[site].AddNewCohort(species, 1, initialBiomass[0], initialBiomass[1]); }