/// <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; }
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; }
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"); }
public ForestFloor() { woodyDebris = new Pool(); litter = new Pool(); }