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); cohortDiedEventHandler = new CohortDiedEventHandler(this.DeathNotExpected); Landis.Biomass.Cohort.DiedEvent += cohortDiedEventHandler; 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, mockCalculator); cohortDiedEventHandler = new CohortDiedEventHandler(this.CohortDeath); Landis.Biomass.Cohort.DiedEvent += cohortDiedEventHandler; 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); cohortDiedEventHandler = new CohortDiedEventHandler(this.DeathNotExpected); Landis.Biomass.Cohort.DiedEvent += cohortDiedEventHandler; 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, mockCalculator); cohortDiedEventHandler = new CohortDiedEventHandler(this.CohortDeath); Landis.Biomass.Cohort.DiedEvent += cohortDiedEventHandler; expectedCohorts = new Dictionary <ISpecies, ushort[]>(); deadCohorts = new List <ICohort>(); }