Esempio n. 1
0
        //---------------------------------------------------------------------

        public int ReduceOrKillMarkedCohort(ICohort cohort)
        {
            if (ageCohortDisturbance.MarkCohortForDeath(cohort))
            {
                Cohort.KilledByAgeOnlyDisturbance(this, cohort,
                                                  ageCohortDisturbance.CurrentSite,
                                                  ageCohortDisturbance.Type);
                return(cohort.Biomass);
            }
            else
            {
                return(0);
            }
        }
        //---------------------------------------------------------------------

        public int ReduceOrKillMarkedCohort(Landis.Library.DensityCohorts.ICohort cohort)
        {
            if (ageCohortDisturbance.MarkCohortForDeath(cohort))
            {
                Cohort.KilledByAgeOnlyDisturbance(this, cohort,
                                                  ageCohortDisturbance.CurrentSite,
                                                  ageCohortDisturbance.Type);
                return(cohort.Treenumber);
            }
            else
            {
                return(0);
            }
        }
Esempio n. 3
0
        //---------------------------------------------------------------------

        public float[] ReduceOrKillMarkedCohort(ICohort cohort)
        {
            float[] damage = new float[] { 0, 0 };
            if (ageCohortDisturbance.MarkCohortForDeath(cohort))
            {
                Cohort.KilledByAgeOnlyDisturbance(this, cohort,
                                                  ageCohortDisturbance.CurrentSite,
                                                  ageCohortDisturbance.Type);

                damage[0] = cohort.WoodBiomass;
                damage[1] = cohort.LeafBiomass;
                return(damage);
            }

            //else
            return(damage);
        }