//--------------------------------------------------------------------- protected override void AgeCohorts(ActiveSite site, ushort years, int?successionTimestep) { SpeciesData.ChangeDynamicParameters(PlugIn.ModelCore.CurrentTime); SiteVars.Cohorts[site].Grow(years, site, successionTimestep, modelCore); }
//--------------------------------------------------------------------- public override void Initialize() { Timestep = parameters.Timestep; SiteVars.Initialize(); Cohort.DeathEvent += CohortDied; //establishProbabilities = parameters.EstablishProbabilities; DynamicInputs.Initialize(parameters.DynamicInputFile, false); SpeciesData.ChangeDynamicParameters(0); // Year 0 //Reproduction.SufficientResources = SufficientLight; Reproduction.Establish = Establish; Reproduction.AddNewCohort = AddNewCohort; Reproduction.MaturePresent = MaturePresent; Reproduction.PlantingEstablish = PlantingEstablish; base.Initialize(modelCore, parameters.SeedAlgorithm); InitializeSites(parameters.InitialCommunities, parameters.InitialCommunitiesMap, modelCore); }