Пример #1
0
        //---------------------------------------------------------------------
        /// <summary>
        /// Objects and Lists must be initialized.
        /// </summary>
        public Agent(int sppCount, int ecoCount)
        {
            SppParameters = new ISppParameters[sppCount];
            EcoParameters = new IEcoParameters[ecoCount];
            //DistParameters = new IDistParameters[distCount];
            disturbanceTypes = new List <IDisturbanceType>();
            negSppList       = new List <ISpecies>();
            //advRegenSppList = new List<ISpecies>();
            dispersalNeighbors = new List <RelativeLocation>();
            resourceNeighbors  = new List <RelativeLocationWeighted>();
            severity           = PlugIn.ModelCore.Landscape.NewSiteVar <byte>();
            outbreakZone       = PlugIn.ModelCore.Landscape.NewSiteVar <Zone>();
            climateDataTable   = new DataTable();

            for (int i = 0; i < sppCount; i++)
            {
                SppParameters[i] = new SppParameters();
            }
            for (int i = 0; i < ecoCount; i++)
            {
                EcoParameters[i] = new EcoParameters();
            }
            //for (int i = 0; i < distCount; i++)
            //   DistParameters[i] = new DistParameters();
        }
        //---------------------------------------------------------------------

        public InputParameters(int ecoregionCount)
        {
            severities        = new List <ISeverity>();
            windDirPct        = new List <double>(4);
            tornadoWindIntPct = new List <double>(5);
            derechoWindIntPct = new List <double>(5);
            EcoParameters     = new IEcoParameters[ecoregionCount];
            for (int i = 0; i < ecoregionCount; i++)
            {
                EcoParameters[i] = new EcoParameters();
            }
        }
Пример #3
0
        //---------------------------------------------------------------------
        /// <summary>
        /// Objects and Lists must be initialized.
        /// </summary>
        public Agent(int sppCount, int ecoCount, int distCount)
        {
            SppParameters      = new ISppParameters[sppCount];
            EcoParameters      = new IEcoParameters[ecoCount];
            DistParameters     = new IDistParameters[distCount];
            negSppList         = new List <ISpecies>();
            dispersalNeighbors = new List <RelativeLocation>();
            resourceNeighbors  = new List <RelativeLocationWeighted>();
            severity           = Model.Core.Landscape.NewSiteVar <byte>();
            outbreakZone       = Model.Core.Landscape.NewSiteVar <Zone>();

            for (int i = 0; i < sppCount; i++)
            {
                SppParameters[i] = new SppParameters();
            }
        }
        //---------------------------------------------------------------------
        /// <summary>
        /// Objects and Lists must be initialized.
        /// </summary>
        public AgentParameters(int sppCount, int ecoCount)
        {
            SppParameters         = new ISppParameters[sppCount];
            EcoParameters         = new IEcoParameters[ecoCount];
            EcoWeatherIndexNormal = new double[ecoCount];
            disturbanceTypes      = new List <IDisturbanceType>();
            negSppList            = new List <ISpecies>();
            climateVarDefn        = new List <IClimateVariableDefinition>();
            derivedClimateVars    = new List <IDerivedClimateVariable>();
            weatherIndexVars      = new List <string>();
            climateDataTable      = new DataTable();

            for (int i = 0; i < sppCount; i++)
            {
                SppParameters[i] = new SppParameters();
            }
            for (int i = 0; i < ecoCount; i++)
            {
                EcoParameters[i] = new EcoParameters();
            }
        }
Пример #5
0
        //---------------------------------------------------------------------
        /// <summary>
        /// Objects and Lists must be initialized.
        /// </summary>
        public Agent(int sppCount, int ecoCount)
        {
            SppParameters = new ISppParameters[sppCount];
            EcoParameters = new IEcoParameters[ecoCount];
            //DistParameters = new IDistParameters[distCount];
            disturbanceTypes = new List<IDisturbanceType>();
            negSppList = new List<ISpecies>();
            //advRegenSppList = new List<ISpecies>();
            dispersalNeighbors = new List<RelativeLocation>();
            resourceNeighbors = new List<RelativeLocationWeighted>();
            severity       = PlugIn.ModelCore.Landscape.NewSiteVar<byte>();
            outbreakZone   = PlugIn.ModelCore.Landscape.NewSiteVar<Zone>();

            for (int i = 0; i < sppCount; i++)
                SppParameters[i] = new SppParameters();
            for (int i = 0; i < ecoCount; i++)
                EcoParameters[i] = new EcoParameters();
            //for (int i = 0; i < distCount; i++)
            //   DistParameters[i] = new DistParameters();
        }
        //---------------------------------------------------------------------
        /// <summary>
        /// Objects and Lists must be initialized.
        /// </summary>
        public Agent(int sppCount, int ecoCount, int distCount)
        {
            SppParameters = new ISppParameters[sppCount];
            EcoParameters = new IEcoParameters[ecoCount];
            DistParameters = new IDistParameters[distCount];
            negSppList = new List<ISpecies>();
            dispersalNeighbors = new List<RelativeLocation>();
            resourceNeighbors = new List<RelativeLocationWeighted>();
            severity       = Model.Core.Landscape.NewSiteVar<byte>();
            outbreakZone   = Model.Core.Landscape.NewSiteVar<Zone>();

            for(int i=0; i<sppCount; i++)
                SppParameters[i] = new SppParameters();
        }