コード例 #1
0
        public void Init()
        {
            poputrem = Data.Species["poputrem"];

            bool[,] grid = new bool[, ] {
                { true, false },
                { false, true }
            };
            DataGrid <bool> dataGrid  = new DataGrid <bool>(grid);
            ILandscape      landscape = new Landscape.Landscape(dataGrid);

            activeSite  = landscape[1, 1];
            activeSite2 = landscape[2, 2];

            expectedSender   = null;
            expectedDistType = null;
            expectedSite     = null;

            mockCalculator = new MockCalculator();
            Landis.Biomass.Cohorts.Initialize(successionTimestep,
                                              mockCalculator);

            Landis.Biomass.Cohort.DeathEvent += CohortDeath;

            expectedCohorts            = new Dictionary <ISpecies, ushort[]>();
            deadCohorts                = new List <ICohort>();
            cohortsKilledByAgeOnlyDist = new List <ICohort>();
        }
コード例 #2
0
        public void Init()
        {
            betualle = Data.Species["betualle"];

            bool[,] grid = new bool[,]{ {true} };
            DataGrid<bool> dataGrid = new DataGrid<bool>(grid);
            ILandscape landscape = new Landscape.Landscape(dataGrid);
            activeSite = landscape[1,1];

            mockCalculator = new MockCalculator();

            Landis.Biomass.Cohort.DeathEvent += DeathNotExpected;
        }
コード例 #3
0
        public void Init()
        {
            betualle = Data.Species["betualle"];

            bool[,] grid = new bool[, ] {
                { true }
            };
            DataGrid <bool> dataGrid  = new DataGrid <bool>(grid);
            ILandscape      landscape = new Landscape.Landscape(dataGrid);

            activeSite = landscape[1, 1];

            mockCalculator = new MockCalculator();

            Landis.Biomass.Cohort.DeathEvent += DeathNotExpected;
        }
コード例 #4
0
		public void Init()
		{
			abiebals = Data.Species["abiebals"];

			bool[,] grid = new bool[,]{ {true} };
			DataGrid<bool> dataGrid = new DataGrid<bool>(grid);
			ILandscape landscape = new Landscape.Landscape(dataGrid);
			activeSite = landscape[1,1];

			mockCalculator = new MockCalculator();
			Landis.Biomass.Cohorts.Initialize(successionTimestep,
			                                  this.DeathNotExpected,
			                                  mockCalculator);

			expectedCohorts = new Dictionary<ISpecies, ushort[]>();
		}
コード例 #5
0
        public void Init()
        {
            abiebals = Data.Species["abiebals"];

            bool[,] grid = new bool[, ] {
                { true }
            };
            DataGrid <bool> dataGrid  = new DataGrid <bool>(grid);
            ILandscape      landscape = new Landscape.Landscape(dataGrid);

            activeSite = landscape[1, 1];

            mockCalculator = new MockCalculator();
            Landis.Biomass.Cohorts.Initialize(successionTimestep,
                                              this.DeathNotExpected,
                                              mockCalculator);

            expectedCohorts = new Dictionary <ISpecies, ushort[]>();
        }
コード例 #6
0
		public void Init()
		{
			poputrem = Data.Species["poputrem"];

			bool[,] grid = new bool[,]{ {true} };
			DataGrid<bool> dataGrid = new DataGrid<bool>(grid);
			ILandscape landscape = new Landscape.Landscape(dataGrid);
			activeSite = landscape[1,1];

			expectedSite = null;

			mockCalculator = new MockCalculator();
			Landis.Biomass.Cohorts.Initialize(successionTimestep,
			                                  this.CohortDeath,
			                                  mockCalculator);

			expectedCohorts = new Dictionary<ISpecies, ushort[]>();
			deadCohorts = new List<ICohort>();
		}
コード例 #7
0
        public void Init()
        {
            abiebals = Data.Species["abiebals"];
            betualle = Data.Species["betualle"];

            bool[,] grid = new bool[,]{ {true} };
            DataGrid<bool> dataGrid = new DataGrid<bool>(grid);
            ILandscape landscape = new Landscape.Landscape(dataGrid);
            activeSite = landscape[1,1];

            mockCalculator = new MockCalculator();
            Landis.Biomass.Cohorts.Initialize(successionTimestep,
                                              mockCalculator);
            CreateInitialCohorts();

            disturbance = new MockSpeciesCohortsDisturbance();
            disturbance.CurrentSite = activeSite;
            deadCohorts = new Dictionary<ISpecies, List<int>>();

            Cohort.DeathEvent += MyCohortDiedMethod;
        }
コード例 #8
0
        public void Init()
        {
            poputrem = Data.Species["poputrem"];

            bool[,] grid = new bool[, ] {
                { true }
            };
            DataGrid <bool> dataGrid  = new DataGrid <bool>(grid);
            ILandscape      landscape = new Landscape.Landscape(dataGrid);

            activeSite = landscape[1, 1];

            expectedSite = null;

            mockCalculator = new MockCalculator();
            Landis.Biomass.Cohorts.Initialize(successionTimestep,
                                              this.CohortDeath,
                                              mockCalculator);

            expectedCohorts = new Dictionary <ISpecies, ushort[]>();
            deadCohorts     = new List <ICohort>();
        }
コード例 #9
0
        public void Init()
        {
            abiebals = Data.Species["abiebals"];
            betualle = Data.Species["betualle"];

            bool[,] grid = new bool[, ] {
                { true }
            };
            DataGrid <bool> dataGrid  = new DataGrid <bool>(grid);
            ILandscape      landscape = new Landscape.Landscape(dataGrid);

            activeSite = landscape[1, 1];

            mockCalculator = new MockCalculator();
            Landis.Biomass.Cohorts.Initialize(successionTimestep,
                                              mockCalculator);
            CreateInitialCohorts();

            disturbance             = new MockSpeciesCohortsDisturbance();
            disturbance.CurrentSite = activeSite;
            deadCohorts             = new Dictionary <ISpecies, List <int> >();

            Cohort.DeathEvent += MyCohortDiedMethod;
        }
コード例 #10
0
        public void Init()
        {
            poputrem = Data.Species["poputrem"];

            bool[,] grid = new bool[,]{
                {true,  false},
                {false, true}
            };
            DataGrid<bool> dataGrid = new DataGrid<bool>(grid);
            ILandscape landscape = new Landscape.Landscape(dataGrid);
            activeSite = landscape[1,1];
            activeSite2 = landscape[2,2];

            expectedSender = null;
            expectedDistType = null;
            expectedSite = null;

            mockCalculator = new MockCalculator();
            Landis.Biomass.Cohorts.Initialize(successionTimestep,
                                              mockCalculator);

            Landis.Biomass.Cohort.DeathEvent += CohortDeath;

            expectedCohorts = new Dictionary<ISpecies, ushort[]>();
            deadCohorts = new List<ICohort>();
            cohortsKilledByAgeOnlyDist = new List<ICohort>();
        }