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>();
        }
        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;
        }
        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;
        }
		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[]>();
		}
Beispiel #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[]>();
        }
		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>();
		}
        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;
        }
        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>();
        }
Beispiel #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;
        }
        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>();
        }