コード例 #1
0
        //---------------------------------------------------------------------
        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);
        }
コード例 #2
0
        //---------------------------------------------------------------------

        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);
        }
コード例 #3
0
        //---------------------------------------------------------------------
        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);
        }
コード例 #4
0
        //---------------------------------------------------------------------

        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);
        }
コード例 #5
0
        //---------------------------------------------------------------------

        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);
        }
コード例 #6
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);
            }*/
        }
コード例 #7
0
 //---------------------------------------------------------------------
 public static void SiteDisturbed(object               sender,
     DisturbanceEventArgs eventArgs)
 {
     ThrowException();
 }
コード例 #8
0
        //---------------------------------------------------------------------

        public static void SiteDisturbed(object sender,
                                         DisturbanceEventArgs eventArgs)
        {
            ThrowException();
        }