//--------------------------------------------------------------------- public static void SiteDisturbed(object sender, DisturbanceEventArgs eventArgs) { PlugInType disturbanceType = eventArgs.DisturbanceType; PoolPercentages poolReductions = Module.Parameters.PoolReductions[disturbanceType]; ActiveSite site = eventArgs.Site; Dead.Pools.Woody[site].ReduceBiomass(poolReductions.Woody); Dead.Pools.NonWoody[site].ReduceBiomass(poolReductions.NonWoody); }
//--------------------------------------------------------------------- public void AgeOnlyDisturbanceEvent(object sender, DisturbanceEventArgs eventArgs) { Assert.IsTrue(sender is SiteCohorts); Assert.AreEqual(expectedDistType, eventArgs.DisturbanceType); Assert.AreEqual(expectedSite, eventArgs.Site); // No cohorts killed yet Assert.AreEqual(0, cohortsKilledByAgeOnlyDist.Count); }
//--------------------------------------------------------------------- public static void SiteDisturbed(object sender, DisturbanceEventArgs eventArgs) { PlugInType disturbanceType = eventArgs.DisturbanceType; PoolPercentages poolReductions = Module.Parameters.PoolReductions[disturbanceType]; ActiveSite site = eventArgs.Site; SiteVars.WoodyDebris[site].ReduceMass(poolReductions.Wood); SiteVars.Litter[site].ReduceMass(poolReductions.Foliar); }
//--------------------------------------------------------------------- public static void SiteDisturbed(object sender, DisturbanceEventArgs eventArgs) { ExtensionType disturbanceType = eventArgs.DisturbanceType; PoolPercentages poolReductions = Module.Parameters.PoolReductions[disturbanceType]; ActiveSite site = eventArgs.Site; SiteVars.WoodyDebris[site].ReduceMass(poolReductions.Wood); SiteVars.Litter[site].ReduceMass(poolReductions.Foliar); }
//--------------------------------------------------------------------- public static void SiteDisturbed(object sender, DisturbanceEventArgs eventArgs) { //Note that SiteDisturbed is called before Cohort Death, for a disturbed site. //Also, SiteDisturbed is called even if cohort death has not occurred. ExtensionType disturbanceType = eventArgs.DisturbanceType; //PoolPercentages poolReductions = Module.Parameters.PoolReductions[disturbanceType]; ActiveSite site = eventArgs.Site; //SiteVars.DeadWoodMass[site] *= poolReductions.Wood; //SiteVars.LitterMass[site] *= poolReductions.Foliar; SiteVars.soilClass[site].DisturbanceImpactsDOM(site, disturbanceType.Name, 0); }
//--------------------------------------------------------------------- public static void SiteDisturbed(object sender, DisturbanceEventArgs eventArgs) { //NOTE: This is now handled in FireEffects.ComputeFireEffects /*PlugInType disturbanceType = eventArgs.DisturbanceType; PoolPercentages poolReductions = Module.Parameters.PoolReductions[disturbanceType]; ActiveSite site = eventArgs.Site; SiteVars.WoodyDebris[site].ReducePercentage(poolReductions.Woody); foreach (PoolD litter in SiteVars.Litter[site]) { litter.Mass -= (litter.Mass * poolReductions.NonWoody); litter.ContentC -= (litter.ContentC * poolReductions.NonWoody); litter.ContentN -= (litter.ContentN * poolReductions.NonWoody); litter.ContentP -= (litter.ContentP * poolReductions.NonWoody); }*/ }
//--------------------------------------------------------------------- public static void SiteDisturbed(object sender, DisturbanceEventArgs eventArgs) { ThrowException(); }