示例#1
0
        //---------------------------------------------------------------------

        public Parameters(IEcoregionParameters parameters)
        {
            name        = parameters.Name;
            description = parameters.Description;
            mapCode     = parameters.MapCode;
            active      = parameters.Active;
        }
        //---------------------------------------------------------------------

        public EcoregionParameters(IEcoregionParameters parameters)
        {
            name           = parameters.Name;
            description    = parameters.Description;
            mapCode        = parameters.MapCode;
            moreEcoregionParameters = parameters.MoreEcoregionParameters;
        }
示例#3
0
        //---------------------------------------------------------------------

        private void CheckEcoregion(IEcoregion ecoregion,
                                    int expectedIndex)
        {
            Assert.IsNotNull(ecoregion);
            Assert.AreEqual(expectedIndex, ecoregion.Index);

            IEcoregionParameters expectedParms = ecoregionParms[expectedIndex];

            Assert.AreEqual(expectedParms.Name, ecoregion.Name);
            Assert.AreEqual(expectedParms.Description, ecoregion.Description);
            Assert.AreEqual(expectedParms.MapCode, ecoregion.MapCode);
            Assert.AreEqual(expectedParms.Active, ecoregion.Active);
        }
        //---------------------------------------------------------------------

        public Ecoregion(int                  index,
                         IEcoregionParameters parameters)
            : base(parameters)
        {
            this.index = index;
        }
        //---------------------------------------------------------------------

        public EcoregionParameters(IEcoregionParameters parameters)
        {
            name           = parameters.Name;
            description    = parameters.Description;
            mapCode        = parameters.MapCode;
            fireParameters = parameters.FireParameters;
            fireCurve      = parameters.FireCurve;
            windCurve      = parameters.WindCurve;
        }
示例#6
0
        //---------------------------------------------------------------------

        public Ecoregion(int index,
                         IEcoregionParameters parameters)
            : base(parameters)
        {
            this.index = index;
        }