• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ISiteCohorts类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ISiteCohorts的典型用法代码示例。如果您正苦于以下问题:C# ISiteCohorts类的具体用法?C# ISiteCohorts怎么用?C# ISiteCohorts使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ISiteCohorts类属于命名空间,在下文中一共展示了ISiteCohorts类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ComputeAge

        //---------------------------------------------------------------------
        public static int ComputeAge(ISiteCohorts cohorts)
        {
            int dominantAge = 0;
            Dictionary<int, int> ageDictionary = new Dictionary<int, int>();
            if (cohorts != null)
                foreach (ISpeciesCohorts speciesCohorts in cohorts)
                {
                    foreach (ICohort cohort in speciesCohorts)
                    {
                        int age = cohort.Age;
                        int biomass = cohort.Biomass;
                        if (ageDictionary.ContainsKey(age))
                        {
                            ageDictionary[age] = ageDictionary[age] + biomass;
                        }
                        else
                        {
                            ageDictionary[age] = biomass;
                        }
                    }
                }

            int maxBiomass = 0;
            foreach (var kvp in ageDictionary)
            {
                if (kvp.Value > maxBiomass)
                {
                    dominantAge = kvp.Key;
                    maxBiomass = kvp.Value;
                }

            }

            return dominantAge;
        }
开发者ID:LANDIS-II-Foundation,项目名称:Extension-Output-Bird-Habitat,代码行数:36,代码来源:Util.cs


示例2: InitialBiomass

        //---------------------------------------------------------------------
        /// <summary>
        /// Computes the initial biomass for a cohort at a site.
        /// </summary>
        public static float[] InitialBiomass(ISpecies species, ISiteCohorts siteCohorts,
            ActiveSite  site)
        {
            IEcoregion ecoregion = PlugIn.ModelCore.Ecoregion[site];

            double leafFrac = FunctionalType.Table[SpeciesData.FuncType[species]].FCFRACleaf;
            double branchFraction = FunctionalType.Table[SpeciesData.FuncType[species]].FCFRACbranch;
            //double Ndemand = 0.0;

            double B_ACT = SiteVars.ActualSiteBiomass(site);
            double B_MAX = SpeciesData.B_MAX_Spp[species][ecoregion];

            //  Initial biomass exponentially declines in response to
            //  competition.
            double initialBiomass = 0.002 * B_MAX *
                                    Math.Exp(-1.6 * B_ACT / B_MAX);

            //Initial biomass is limited by nitrogen availability.
            //initialBiomass *= SpeciesData.NLimits[species];
            initialBiomass = Math.Max(initialBiomass, 5.0);

            double initialLeafB = initialBiomass * leafFrac;
            double initialBranchB = initialBiomass* branchFraction;
            double initialWoodB = initialBiomass*(1 - leafFrac - branchFraction);
            double[] initialB = new double[3] { initialWoodB, initialBranchB, initialLeafB };

            //PlugIn.ModelCore.Log.WriteLine("Yr={0},Mo={1}, InitialB={2:0.0}, InitBleaf={3:0.00}, InitBwood={4:0.00}. LeafFrac={5:0.0}", PlugIn.ModelCore.CurrentTime, month, initialBiomass, initialB[1], initialB[0], leafFrac);
            //PlugIn.ModelCore.Log.WriteLine("Yr={0},Mo={1}, B_MAX={2:0.0}, B_ACT={3:0.00}", PlugIn.ModelCore.CurrentTime, month, B_MAX, B_ACT);

               float[] initialWoodLeafBiomass = new float[3] { (float)initialB[0], (float)initialB[1], (float)initialB[2] }; //wang?

            return initialWoodLeafBiomass;
        }
开发者ID:YongLuo007,项目名称:Extensions-Succession,代码行数:37,代码来源:CohortBiomass.cs


示例3: CheckCohorts

        /// <summary>
        /// Checks that two sets of site cohorts are the same.  Also checks the
        /// site's total biomass.
        /// </summary>
        /// <param name="expected">
        /// Keys are expected species.  A species' value is an array of the
        /// ages and biomasses of its expected cohorts from oldest to youngest.
        /// Ages and biomasses are alternate:
        /// 
        /// <pre>
        ///     item 0 = expected age of oldest cohort
        ///     item 1 =    "     biomass  "      "
        ///     item 2 =    "     age of 2nd oldest cohort
        ///     item 3 =    "     biomass "    "      "
        ///     ...
        /// </pre>
        /// </param>
        /// <param name="actual">
        /// The actual site cohorts to verify.
        /// </param>
        public static void CheckCohorts(Dictionary<ISpecies, ushort[]> expected,
                                        ISiteCohorts                   actual)
        {
            int expectedTotalBiomass = 0;

            foreach (ISpecies species in expected.Keys) {
                ISpeciesCohorts speciesCohorts = actual[species];
                Assert.IsNotNull(speciesCohorts);

                //  Assume cohorts are ordered from oldest to youngest
                ushort[] expectedCohortData = expected[species];
                Assert.AreEqual(expectedCohortData.Length, speciesCohorts.Count * 2);
                int i = 0;
                foreach (ICohort cohort in speciesCohorts) {
                    Assert.AreEqual(expectedCohortData[i], cohort.Age);
                    Assert.AreEqual(expectedCohortData[i+1], cohort.Biomass);
                    expectedTotalBiomass += expectedCohortData[i+1];
                    i += 2;
                }
            }

            //  Check if any extra species beyond those that were expected
            foreach (ISpeciesCohorts speciesCohorts in actual)
                Assert.IsTrue(expected.ContainsKey(speciesCohorts.Species));

            Assert.AreEqual(expectedTotalBiomass, actual.TotalBiomass);
        }
开发者ID:LANDIS-II-Foundation,项目名称:Libraries,代码行数:47,代码来源:Util.cs


示例4: InitialBiomass

        //---------------------------------------------------------------------
        /// <summary>
        /// Computes the initial biomass for a cohort at a site.
        /// </summary>
        public static float[] InitialBiomass(ISpecies species, ISiteCohorts siteCohorts,
            ActiveSite  site)
        {
            IEcoregion ecoregion = PlugIn.ModelCore.Ecoregion[site];

            double leafFrac = FunctionalType.Table[SpeciesData.FuncType[species]].FCFRACleaf;

            double B_ACT = SiteVars.ActualSiteBiomass(site);
            double B_MAX = SpeciesData.B_MAX_Spp[species][ecoregion];

            //  Initial biomass exponentially declines in response to
            //  competition.
            double initialBiomass = 0.002 * B_MAX * Math.Exp(-1.6 * B_ACT / B_MAX);

            initialBiomass = Math.Max(initialBiomass, 5.0);

            double initialLeafB = initialBiomass * leafFrac;
            double initialWoodB = initialBiomass - initialLeafB;
            double[] initialB = new double[2]{initialWoodB, initialLeafB};
            float[] initialWoodLeafBiomass = new float[2] { (float)initialB[0], (float)initialB[1] };

            //PlugIn.ModelCore.UI.WriteLine("Yr={0},Mo={1}, InitialB={2:0.0}, InitBleaf={3:0.00}, InitBwood={4:0.00}. LeafFrac={5:0.0}", PlugIn.ModelCore.CurrentTime, month, initialBiomass, initialB[1], initialB[0], leafFrac);
            //PlugIn.ModelCore.UI.WriteLine("Yr={0},Mo={1}, B_MAX={2:0.0}, B_ACT={3:0.00}", PlugIn.ModelCore.CurrentTime, month, B_MAX, B_ACT);

            return initialWoodLeafBiomass;
        }
开发者ID:YongLuo007,项目名称:Extensions-Succession,代码行数:30,代码来源:CohortBiomass.cs


示例5: ComputeBiomass

        //---------------------------------------------------------------------

        public static int ComputeBiomass(ISiteCohorts cohorts)
        {
            int total = 0;
            if (cohorts != null)
                foreach (ISpeciesCohorts speciesCohorts in cohorts)
                    total += ComputeBiomass(speciesCohorts);
            return total;
        }
开发者ID:LANDIS-II-Foundation,项目名称:Libraries,代码行数:10,代码来源:Util.cs


示例6: ComputeTotalBiomass

 //---------------------------------------------------------------------
 private static int ComputeTotalBiomass(ISiteCohorts cohorts)
 {
     int total = 0;
     if (cohorts != null)
         foreach (ISpeciesCohorts speciesCohorts in cohorts)
         {
             total += ComputeSpeciesBiomass(speciesCohorts);
         }
     return total;
 }
开发者ID:LANDIS-II-Foundation,项目名称:Extension-Output-Biomass,代码行数:11,代码来源:PlugIn.cs


示例7: ComputeLivingBiomass

 //---------------------------------------------------------------------
 public static int ComputeLivingBiomass(ISiteCohorts cohorts)
 {
     int total = 0;
     if (cohorts != null)
         foreach (ISpeciesCohorts speciesCohorts in cohorts)
             foreach (ICohort cohort in speciesCohorts)
                 total += (int) (cohort.WoodBiomass + cohort.LeafBiomass);
             //total += ComputeBiomass(speciesCohorts);
     return total;
 }
开发者ID:YongLuo007,项目名称:Extensions-Succession,代码行数:11,代码来源:Century.cs


示例8: CalculateNLimits

        //New method for calculating N limits, called from Century.cs Run method before calling Grow
        //Iterates through cohorts, assigning each a N gathering efficiency based on fine root biomass
        //and N tolerance.
        public static double CalculateNLimits(ActiveSite site, ISiteCohorts siteCohorts)
        {
            // BEN:   Your new method belongs here
            //Iterate through the first time, assigning each cohort un un-normalized N multiplier
            double NMultTotal=0.0;
            foreach (ISpeciesCohorts speciesCohorts in siteCohorts)
                foreach (ICohort cohort in speciesCohorts)
                {
                            int Ntolerance = SpeciesData.NTolerance[cohort.Species];

                            //NMultiplier is a measure of how much N a cohort can gather relative to other cohorts
                            double NMultiplier = CalculateNMultiplier(cohort.Biomass,Ntolerance);
                            NMultTotal += NMultiplier;
                            Dictionary<int,double> newEntry = new Dictionary<int,double>();
                            newEntry.Add(cohort.Age,NMultiplier);

                            if (CohortNlimits.ContainsKey(cohort.Species.Index))
                            {
                               CohortNlimits[cohort.Species.Index].Add(cohort.Age,NMultiplier);
                            }
                            else
                            {
                               CohortNlimits.Add(cohort.Species.Index,newEntry);
                            }

                }

            double availableN = SiteVars.MineralN[site];  // g/m2

            //Console.WriteLine("NMultTotal="+NMultTotal);

            //Iterate through a second time now that we have total N multiplier
            //Divide through by total and multiply by total available N so each cohort has a max N value
            //and the sum of cohort max N values is the site available N
            double totalNUptake = 0.0;
            foreach (ISpeciesCohorts speciesCohorts in siteCohorts)
                        foreach (ICohort cohort in speciesCohorts)
                        {
                           double NMultiplier=CohortNlimits[cohort.Species.Index][cohort.Age];
                           double Nfrac=NMultiplier/NMultTotal;
                           CohortNlimits[cohort.Species.Index][cohort.Age] = Nfrac * availableN;

                           totalNUptake += Nfrac * availableN;
                           //Console.WriteLine("species={0} age={1} NMult={2:0.00} Nfrac={3:0.0000}",cohort.Species.Name,cohort.Age,NMultiplier,Nfrac);
                        }

            //Console.WriteLine("Total max N uptake = {0:0.0000}, availableN = {1:0.0000}, availableN-uptake={2:0.0000}", totalNUptake,availableN,availableN-totalNUptake);
            if (availableN - totalNUptake < -0.001 * availableN)
            {
                    UI.WriteLine("   ERROR:  Total max N uptake = {0:0.000}, availableN = {1:0.000}.", totalNUptake, availableN);
                    throw new ApplicationException("Error: Max N uptake > availableN.  See AvailableN.cs");
            }

            return 0.0;
        }
开发者ID:YongLuo007,项目名称:Extensions-Succession,代码行数:58,代码来源:AvailableN.cs


示例9: ComputeNonYoungBiomass

 //---------------------------------------------------------------------
 /// <summary>
 /// Computes the total biomass for all the cohorts, not including young cohorts.
 /// </summary>
 public static int ComputeNonYoungBiomass(ISiteCohorts siteCohorts)
 {
     int totalBiomass = 0;
     foreach (ISpeciesCohorts speciesCohorts in siteCohorts) {
         foreach (ICohort cohort in speciesCohorts) {
             if (cohort.Age >= successionTimeStep)
                 totalBiomass += cohort.Biomass;
         }
     }
     return totalBiomass;
 }
开发者ID:LANDIS-II-Foundation,项目名称:Library-Biomass-Cohort,代码行数:15,代码来源:Cohorts.cs


示例10: InitialBiomass

        //---------------------------------------------------------------------
        private InitialBiomass(ISiteCohorts cohorts,
            
            Layer surfaceDeadWood,
            Layer surfaceDeadBranch,
            
            Layer surfaceStructural,
            Layer surfaceMetabolic,
            
            Layer soilDeadWood,
            Layer soilStructural,
            Layer soilMetabolic,
            
            Layer som1surface,
            Layer som1soil,
            Layer som2,
            Layer som3,
            
            double mineralN,
            double cohortLeafC,
            double cohortLeafN,
            double cohortWoodC,
            double cohortWoodN,
            
            double cohortBranchC,
            double cohortBranchN
            
            )
        {
            this.cohorts = cohorts;

            this.surfaceDeadWood = surfaceDeadWood;
            this.surfaceDeadBranch = surfaceDeadBranch;

            this.surfaceStructural = surfaceStructural;
            this.surfaceMetabolic = surfaceMetabolic;

            this.soilDeadWood = soilDeadWood;
            this.soilStructural = soilStructural;
            this.soilMetabolic = soilMetabolic;

            this.som1surface = som1surface;
            this.som1soil = som1soil;
            this.som2 = som2;
            this.som3 = som3;

            this.mineralN = mineralN;
            this.cohortLeafC = cohortLeafC;
            this.cohortLeafN = cohortLeafN;
            this.cohortWoodC = cohortWoodC;
            this.cohortWoodN = cohortWoodN;

            this.cohortBranchC = cohortBranchC;
            this.cohortBranchN = cohortBranchN;
        }
开发者ID:YongLuo007,项目名称:Extensions-Succession,代码行数:55,代码来源:InitialBiomass.cs


示例11: GetMaxAge

        //---------------------------------------------------------------------

        /// <summary>
        /// Gets the maximum age among all cohorts at a site.
        /// </summary>
        /// <returns>
        /// The age of the oldest cohort or 0 if there are no cohorts.
        /// </returns>
        public static ushort GetMaxAge(ISiteCohorts cohorts)
        {
            if (cohorts == null)
                return 0;
            ushort max = 0;
            foreach (ISpeciesCohorts speciesCohorts in cohorts) {
                ushort maxSpeciesAge = GetMaxAge(speciesCohorts);
                if (maxSpeciesAge > max)
                    max = maxSpeciesAge;
            }
            return max;
        }
开发者ID:LANDIS-II-Foundation,项目名称:Libraries,代码行数:20,代码来源:Util.cs


示例12: InitialBiomass

        //---------------------------------------------------------------------
        /// <summary>
        /// Computes the initial biomass for a cohort at a site.
        /// </summary>
        public static float[] InitialBiomass(ISpecies species, ISiteCohorts siteCohorts,
                                            ActiveSite  site)
        {
            IEcoregion ecoregion = PlugIn.ModelCore.Ecoregion[site];

            double leafFrac = FunctionalType.Table[SpeciesData.FuncType[species]].FCFRACleaf;
            //double Ndemand = 0.0;

            double B_ACT = SiteVars.ActualSiteBiomass(site);
            double B_MAX = SpeciesData.B_MAX_Spp[species][ecoregion];

            //  Initial biomass exponentially declines in response to
            //  competition.
            double initialBiomass = 0.002 * B_MAX *
                                    Math.Exp(-1.6 * B_ACT / B_MAX);

            //Initial biomass is limited by nitrogen availability.
            //initialBiomass *= SpeciesData.NLimits[species];
            initialBiomass = Math.Max(initialBiomass, 5.0);

            double initialLeafB = initialBiomass * leafFrac;
            double initialWoodB = initialBiomass - initialLeafB;
            double[] initialB = new double[2]{initialWoodB, initialLeafB};

            //PlugIn.ModelCore.Log.WriteLine("Yr={0},Mo={1}, InitialB={2:0.0}, InitBleaf={3:0.00}, InitBwood={4:0.00}. LeafFrac={5:0.0}", PlugIn.ModelCore.CurrentTime, month, initialBiomass, initialB[1], initialB[0], leafFrac);
            //PlugIn.ModelCore.Log.WriteLine("Yr={0},Mo={1}, B_MAX={2:0.0}, B_ACT={3:0.00}", PlugIn.ModelCore.CurrentTime, month, B_MAX, B_ACT);

            // Note:  The following if statement is critical for ensuring that young cohorts
            // get established properly.
            /*if (SiteVars.MineralN[site] <= 0 || initialBiomass < 5.0)
            {
                initialBiomass = Math.Min(initialBiomass, 5.0);
                initialB[0] = initialBiomass * (1.0 - leafFrac);
                initialB[1] = initialBiomass * leafFrac;
            }*/

            //Ndemand = AvailableN.CalculateCohortNDemand(species, site, initialB);
            //SiteVars.MineralN[site] -= Math.Min(SiteVars.MineralN[site], Nreduction);

            /*if (SiteVars.MineralN[site] > Nreduction)
                SiteVars.MineralN[site] -= Nreduction;
            else
            {
                double NreductionAdjusted = SiteVars.MineralN[site];
                SiteVars.MineralN[site] = 0.0;
                initialB[0] = NreductionAdjusted / Nreduction;
                initialB[1] = NreductionAdjusted / Nreduction;
            }*/

            float[] initialWoodLeafBiomass = new float[2]{(float) initialB[0], (float) initialB[1]};

            return initialWoodLeafBiomass;
        }
开发者ID:LANDIS-II-Foundation,项目名称:Extensions-Succession,代码行数:57,代码来源:CohortBiomass.cs


示例13: ComputeBiomass

 //---------------------------------------------------------------------
 /// <summary>
 /// Computes the total biomass for all the cohorts at a site, and the
 /// total biomass for all the young cohorts.
 /// </summary>
 public static int ComputeBiomass(ISiteCohorts siteCohorts,
     out int      youngBiomass)
 {
     youngBiomass = 0;
     int totalBiomass = 0;
     foreach (ISpeciesCohorts speciesCohorts in siteCohorts) {
         foreach (ICohort cohort in speciesCohorts) {
             totalBiomass += cohort.Biomass;
             if (cohort.Age < successionTimeStep)
                 youngBiomass += cohort.Biomass;
         }
     }
     return totalBiomass;
 }
开发者ID:LANDIS-II-Foundation,项目名称:Library-Biomass-Cohort,代码行数:19,代码来源:Cohorts.cs


示例14: ComputeResorbedN

        //---------------------------------------------------------------------
        public static void ComputeResorbedN(ISiteCohorts cohorts, ActiveSite site, int month)
        {
            if (cohorts != null)
                foreach (ISpeciesCohorts speciesCohorts in cohorts)
                    foreach (ICohort cohort in speciesCohorts)
                    {
                        // Resorbed N:  We are assuming that any leaves dropped as a function of normal
                        // growth and maintenance (e.g., fall senescence) will involve resorption of leaf N.
                        double resorbedN = AvailableN.CalculateResorbedN(site, cohort.Species, cohort.LeafBiomass, month);

                        AvailableN.SetResorbedNallocation(cohort, resorbedN);

                    }
            return;
        }
开发者ID:LANDIS-II-Foundation,项目名称:Extensions-Succession,代码行数:16,代码来源:Century.cs


示例15: GetAgeRichness

 //---------------------------------------------------------------------
 public static ushort GetAgeRichness(ISiteCohorts siteCohorts)
 {
     //return total count of cohorts
     ushort count = 0;
     if (siteCohorts == null)
         return 0;
     foreach (ISpeciesCohorts speciesCohorts in siteCohorts)
     {
         foreach (ICohort cohort in speciesCohorts)
         {
             count++;
         }
     }
     return count;
 }
开发者ID:LANDIS-II-Foundation,项目名称:Extensions-Output,代码行数:16,代码来源:Utils.cs


示例16: InitialBiomass

 private InitialBiomass(ISiteCohorts cohorts,
                        Pool deadWoodyPool,
                        Pool deadNonWoodyPool,
                        float water,
                        float annualtrans,
                        float canopylai,
                        float canopylaimax,
                        float subcanopypar 
                        )
 {
     this.canopylaimax = canopylaimax;
     this.cohorts = cohorts;
     this.deadWoodyPool = deadWoodyPool;
     this.deadNonWoodyPool = deadNonWoodyPool;
     this.water = water;
     this.annualtrans = annualtrans;
     this.canopylai = canopylai;
     this.subcanopypar = subcanopypar;
 }
开发者ID:LANDIS-II-Foundation,项目名称:Extension-PnET-Succession,代码行数:19,代码来源:InitialBiomass.cs


示例17: GetAgeEvenness

        //---------------------------------------------------------------------
        //Use E = Hprime / ln S   where S apparently is # species)
        //where Hprime = -sum (pI * ln(pI))   where pI is proportion of individuals found in Ith species
        //from Magurran, A.  1988.  Ecological diversity and its measurements.  Princeton, NJ: Princeton University Press.  Pp 35-37)
        //Return E * 100 to fit within ushort range
        public static ushort GetAgeEvenness(ISiteCohorts siteCohorts)
        {
            double E = 0;
            double Hprime = 0;
            double proportion=0;
            ushort evenness = 0;
            ushort total_count = 0;
            Dictionary<ushort, ushort> cohort_counts = new Dictionary<ushort, ushort>();
            if (siteCohorts == null)
                return 0;
            foreach (ISpeciesCohorts speciesCohorts in siteCohorts)
            {
                foreach (ICohort cohort in speciesCohorts)
                {
                    total_count++;
                    if (!cohort_counts.ContainsKey(cohort.Age))
                    {
                        cohort_counts.Add(cohort.Age, 1);
                    }
                    else
                    {
                        cohort_counts[cohort.Age]++;
                    }
                }
            }

            foreach (KeyValuePair<ushort,ushort> cohortIter in cohort_counts)
            {
                proportion = (double)cohortIter.Value / (double)total_count;
                Hprime += proportion * System.Math.Log(proportion);
            }
            Hprime = - Hprime;
            E = Hprime / System.Math.Log(cohort_counts.Count);
            evenness = (ushort)(E * 100.0);

            return evenness;
        }
开发者ID:LANDIS-II-Foundation,项目名称:Extensions-Output,代码行数:42,代码来源:Utils.cs


示例18: ComputeTotalCohortCN

        //---------------------------------------------------------------------
        private static void ComputeTotalCohortCN(ActiveSite site, ISiteCohorts cohorts)
        {
            SiteVars.CohortLeafC[site] = 0;
            SiteVars.CohortFRootC[site] = 0;
            SiteVars.CohortLeafN[site] = 0;
            SiteVars.CohortFRootN[site] = 0;
            SiteVars.CohortWoodC[site] = 0;
            SiteVars.CohortCRootC[site] = 0;
            SiteVars.CohortWoodN[site] = 0;
            SiteVars.CohortCRootN[site] = 0;

            if (cohorts != null)
                foreach (ISpeciesCohorts speciesCohorts in cohorts)
                    foreach (ICohort cohort in speciesCohorts)
                        CalculateCohortCN(site, cohort);
            return;
        }
开发者ID:YongLuo007,项目名称:Extensions-Succession,代码行数:18,代码来源:Century.cs


示例19: Community

		//---------------------------------------------------------------------

		public Community(ushort                          mapCode,
		                 ISiteCohorts<AgeCohort.ICohort> cohorts)
		{
			this.mapCode = mapCode;
			this.cohorts = cohorts;
		}
开发者ID:LANDIS-II-Foundation,项目名称:Libraries,代码行数:8,代码来源:Community.cs


示例20: Clone

 //---------------------------------------------------------------------
 public static ISiteCohorts Clone(ISiteCohorts site_cohorts)
 {
     ISiteCohorts clone = new SiteCohorts();
     foreach (ISpeciesCohorts speciesCohorts in site_cohorts)
         foreach (ICohort cohort in speciesCohorts)
             clone.AddNewCohort(cohort.Species, cohort.Age, cohort.WoodBiomass, cohort.LeafBiomass);  //species.cohorts.Add(speciesCohorts.Clone());
     return clone;
 }
开发者ID:YongLuo007,项目名称:Extensions-Succession,代码行数:9,代码来源:InitialBiomass.cs



注:本文中的ISiteCohorts类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ISiteMap类代码示例发布时间:2022-05-24
下一篇:
C# ISite类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap