Exemple #1
0
        //---------------------------------------------------------------------
        //---------------------------------------------------------------------

        public Parameters(IEcoregionDataset ecoregionDataset,
                          ISpeciesDataset speciesDataset,
                          int litterCnt, int functionalCnt)
            : base(ecoregionDataset,
                   speciesDataset)
        {
            this.speciesDataset   = speciesDataset;
            this.ecoregionDataset = ecoregionDataset;

            functionalTypes        = new FunctionalTypeTable(functionalCnt);
            fireReductionsTable    = new FireReductions[6];
            harvestReductionsTable = new List <HarvestReductions>();

            sppFunctionalType = new Species.AuxParm <int>(speciesDataset);
            nFixer            = new Species.AuxParm <bool>(speciesDataset);
            gddMin            = new Species.AuxParm <int>(speciesDataset);
            gddMax            = new Species.AuxParm <int>(speciesDataset);
            minJanTemp        = new Species.AuxParm <int>(speciesDataset);
            maxDrought        = new Species.AuxParm <double>(speciesDataset);
            leafLongevity     = new Species.AuxParm <double>(speciesDataset);
            epicormic         = new Species.AuxParm <bool>(speciesDataset);
            leafLignin        = new Species.AuxParm <double>(speciesDataset);
            woodLignin        = new Species.AuxParm <double>(speciesDataset);
            coarseRootLignin  = new Species.AuxParm <double>(speciesDataset);
            fineRootLignin    = new Species.AuxParm <double>(speciesDataset);
            leafCN            = new Species.AuxParm <double>(speciesDataset);
            woodCN            = new Species.AuxParm <double>(speciesDataset);
            coarseRootCN      = new Species.AuxParm <double>(speciesDataset);
            foliageLitterCN   = new Species.AuxParm <double>(speciesDataset);
            fineRootCN        = new Species.AuxParm <double>(speciesDataset);

            minRelativeBiomass = new Ecoregions.AuxParm <Percentage> [6];
            for (byte shadeClass = 1; shadeClass <= 5; shadeClass++)
            {
                minRelativeBiomass[shadeClass] = new Ecoregions.AuxParm <Percentage>(ecoregionDataset);
            }
            sufficientLight = new List <ISufficientLight>();

            percentClay       = new Ecoregions.AuxParm <double>(ecoregionDataset);
            percentSand       = new Ecoregions.AuxParm <double>(ecoregionDataset);
            soilDepth         = new Ecoregions.AuxParm <int>(ecoregionDataset);
            fieldCapacity     = new Ecoregions.AuxParm <double>(ecoregionDataset);
            wiltingPoint      = new Ecoregions.AuxParm <double>(ecoregionDataset);
            stormFlowFraction = new Ecoregions.AuxParm <double>(ecoregionDataset);
            baseFlowFraction  = new Ecoregions.AuxParm <double>(ecoregionDataset);
            drain             = new Ecoregions.AuxParm <double>(ecoregionDataset);
            atmosNslope       = new Ecoregions.AuxParm <double>(ecoregionDataset);
            atmosNintercept   = new Ecoregions.AuxParm <double>(ecoregionDataset);
            latitude          = new Ecoregions.AuxParm <double>(ecoregionDataset);
            decayRateSurf     = new Ecoregions.AuxParm <double>(ecoregionDataset);
            decayRateSOM1     = new Ecoregions.AuxParm <double>(ecoregionDataset);
            decayRateSOM2     = new Ecoregions.AuxParm <double>(ecoregionDataset);
            decayRateSOM3     = new Ecoregions.AuxParm <double>(ecoregionDataset);
            denitrif          = new Ecoregions.AuxParm <double>(ecoregionDataset);
            initSOM1surfC     = new Ecoregions.AuxParm <double>(ecoregionDataset);
            initSOM1surfN     = new Ecoregions.AuxParm <double>(ecoregionDataset);
            initSOM1soilC     = new Ecoregions.AuxParm <double>(ecoregionDataset);
            initSOM1soilN     = new Ecoregions.AuxParm <double>(ecoregionDataset);
            initSOM2C         = new Ecoregions.AuxParm <double>(ecoregionDataset);
            initSOM2N         = new Ecoregions.AuxParm <double>(ecoregionDataset);
            initSOM3C         = new Ecoregions.AuxParm <double>(ecoregionDataset);
            initSOM3N         = new Ecoregions.AuxParm <double>(ecoregionDataset);
            initMineralN      = new Ecoregions.AuxParm <double>(ecoregionDataset);


            this.dynamicUpdates = new List <Dynamic.ParametersUpdate>();
        }
Exemple #2
0
 //---------------------------------------------------------------------
 public static void Initialize(IInputParameters parameters)
 {
     Table = parameters.FunctionalTypes;
     //PlugIn.ModelCore.UI.WriteLine("  Functional Table [1].PPDF1={0}.", parameters.FunctionalTypeTable[1].PPDF1);
 }
 //---------------------------------------------------------------------
 public static void Initialize(IInputParameters parameters)
 {
     Table = parameters.FunctionalTypes;
     //PlugIn.ModelCore.UI.WriteLine("  Functional Table [1].PPDF1={0}.", parameters.FunctionalTypeTable[1].PPDF1);
 }