コード例 #1
0
        /// <summary>
        /// Clone a copy of the pool
        /// </summary>
        /// <returns></returns>
        public Pool Clone()
        {
            Pool newPool = new Pool();

            newPool.Mass = this.mass;
            newPool.DecayValue = this.decayValue;
            newPool.InitialMass = this.initialMass;
            return newPool;
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public static void Initialize(IInputParameters parameters)
 {
     AET = parameters.AET;
      HeterotrophicRespiration = PlugIn.ModelCore.Landscape.NewSiteVar<float>();
      woodyDebris = PlugIn.ModelCore.Landscape.NewSiteVar<Pool>();
      litter = PlugIn.ModelCore.Landscape.NewSiteVar<Pool>();
      foreach (ActiveSite site in PlugIn.ModelCore.Landscape)
      {
          //  site cohorts are initialized by the PlugIn.InitializeSite method
          woodyDebris[site] = new Pool();
          litter[site] = new Pool();
          HeterotrophicRespiration[site] = 0;
      }
      PlugIn.ModelCore.RegisterSiteVar(WoodyDebris, "Succession.WoodyDebris");
      PlugIn.ModelCore.RegisterSiteVar(Litter, "Succession.Litter");
 }
コード例 #5
0
 public ForestFloor()
 {
     woodyDebris = new Pool();
     litter = new Pool();
 }