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

        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        /// <param name="speciesDataset">
        /// The dataset of species to look up species' names in.
        /// </param>
        /// <param name="scenarioStart">
        /// The year that the model scenario starts.
        /// </param>
        /// <param name="scenarioEnd">
        /// The year that the model scenario ends.
        /// </param>
        public ParametersParser(Species.IDataset speciesDataset,
                                int              scenarioStart,
                                int              scenarioEnd)
            : base(new SpeciesDataset(speciesDataset), scenarioStart, scenarioEnd)
        {
            this.speciesDataset = speciesDataset;
            ageSelectors = new SpecificAgesCohortSelector[speciesDataset.Count];
        }
Пример #2
0
            //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

            public SpeciesList(IEnumerable<ISpecies> speciesList,
                               Species.IDataset      speciesDataset)
            {
                bitArray = new BitArray(speciesDataset.Count);
                if (speciesList != null) {
                    foreach (ISpecies species in speciesList) {
                        bitArray.Set(species.Index, true);
                    }
                }
            }
 //     : base(ecoregionDataset,
 //            speciesDataset)
 //---------------------------------------------------------------------
 /*        public List<DynamicChange.ParametersUpdate> DynamicChangeUpdates
 {
     get {
         return dynamicChangeUpdates;
     }
 }*/
 //---------------------------------------------------------------------
 public InputParameters(Ecoregions.IDataset ecoregionDataset,
     Species.IDataset    speciesDataset)
 {
     sufficientLight = new List<ISufficientLight>();
     pctSun1 = new double();
     pctSun2 = new double();
     pctSun3 = new double();
     pctSun4 = new double();
     pctSun5 = new double();
     leafLongevity       = new Species.AuxParm<double>(speciesDataset);
     woodyDecayRate      = new Species.AuxParm<double>(speciesDataset);
     mortCurveShapeParm  = new Species.AuxParm<double>(speciesDataset);
     growthCurveShapeParm = new Species.AuxParm<double>(speciesDataset);
     leafLignin = new Species.AuxParm<double>(speciesDataset);
     maxLAI              = new Species.AuxParm<double>(speciesDataset);
     lightExtinctionCoeff= new Species.AuxParm<double>(speciesDataset);
     pctBioMaxLAI        = new Species.AuxParm<double>(speciesDataset);
     aet                 = new Ecoregions.AuxParm<int>(ecoregionDataset);
     //this.dynamicChangeUpdates = new List<DynamicChange.ParametersUpdate>();
 }