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 InputGridCtor_GetSite_RowColumn() { InputGrid <bool> inputGrid = new InputGrid <bool>(grid); ILandscape myLandscape = new Landscape.Landscape(inputGrid); CheckGetSite_RowColumn(myLandscape); }
public void Init() { string path = Path.Combine(Data.Directory, "mixed.txt"); bool[,] array = Bool.Read2DimArray(path); grid = new DataGrid<bool>(array); landscape = new Landscape.Landscape(grid); path = Path.Combine(Data.Directory, "true-locs-in-mixed.txt"); activeSites = Data.ReadLocations(path); }
public void Init() { string path = Path.Combine(Data.Directory, "mixed.txt"); bool[,] array = Bool.Read2DimArray(path); grid = new DataGrid <bool>(array); landscape = new Landscape.Landscape(grid); path = Path.Combine(Data.Directory, "true-locs-in-mixed.txt"); activeSites = Data.ReadLocations(path); }
public void Init() { species = Data.Species[0]; deadCohorts = new List<ICohort>(); bool[,] grid = new bool[,]{ {true} }; DataGrid<bool> dataGrid = new DataGrid<bool>(grid); ILandscape landscape = new Landscape.Landscape(dataGrid); activeSite = landscape[1,1]; originalSenescenceDeathMethod = Cohort.SenescenceDeath; Cohort.SenescenceDeath = MySenescenceDeathMethod; }
public void Init() { species = Data.Species[0]; expectedSender = null; deadCohorts = new List<ICohort>(); bool[,] grid = new bool[,]{ {true} }; DataGrid<bool> dataGrid = new DataGrid<bool>(grid); ILandscape landscape = new Landscape.Landscape(dataGrid); activeSite = landscape[1,1]; Cohort.DeathEvent += MySenescenceDeathMethod; }
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"]; const ushort age = 100; const int biomass = 500; CohortData data = new CohortData(age, biomass); myCohort = new Cohort(betualle, data); bool[,] grid = new bool[,]{ {true} }; DataGrid<bool> dataGrid = new DataGrid<bool>(grid); ILandscape landscape = new Landscape.Landscape(dataGrid); myActiveSite = landscape[1,1]; }
public void Init() { species = Data.Species[0]; deadCohorts = new List <ICohort>(); bool[,] grid = new bool[, ] { { true } }; DataGrid <bool> dataGrid = new DataGrid <bool>(grid); ILandscape landscape = new Landscape.Landscape(dataGrid); activeSite = landscape[1, 1]; originalDiedMethod = Cohort.Died; Cohort.Died = MyCohortDiedMethod; }
public void Init() { species = Data.Species[0]; expectedSender = null; deadCohorts = new List <ICohort>(); bool[,] grid = new bool[, ] { { true } }; DataGrid <bool> dataGrid = new DataGrid <bool>(grid); ILandscape landscape = new Landscape.Landscape(dataGrid); activeSite = landscape[1, 1]; Cohort.DeathEvent += MySenescenceDeathMethod; }
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"]; 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]; disturbance = new MockSpeciesCohortsDisturbance(); disturbance.CurrentSite = activeSite; deadCohorts = new Dictionary<ISpecies, List<ushort>>(); Cohort.DeathEvent += MyCohortDiedMethod; }
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() { string path = Path.Combine(Data.Directory, "mixed.txt"); bool[,] array = Bool.Read2DimArray(path); grid = new DataGrid<bool>(array); landscape = new Landscape.Landscape(grid); intShare = landscape.NewSiteVar<int>(InactiveSiteMode.Share1Value); intDistinct = landscape.NewSiteVar<int>(InactiveSiteMode.DistinctValues); objShare = landscape.NewSiteVar<Foo>(InactiveSiteMode.Share1Value); objDistinct = landscape.NewSiteVar<Foo>(InactiveSiteMode.DistinctValues); fooObjs = new Foo[landscape.SiteCount]; for (int i = 0; i < fooObjs.Length; ++i) fooObjs[i] = new Foo(i+1); }
public void Init() { betualle = Data.Species["betualle"]; const ushort age = 100; const ushort biomass = 500; CohortData data = new CohortData(age, biomass); myCohort = new Cohort(betualle, data); bool[,] grid = new bool[, ] { { true } }; DataGrid <bool> dataGrid = new DataGrid <bool>(grid); ILandscape landscape = new Landscape.Landscape(dataGrid); myActiveSite = landscape[1, 1]; }
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]; disturbance = new MockSpeciesCohortsDisturbance(); disturbance.CurrentSite = activeSite; deadCohorts = new Dictionary <ISpecies, List <ushort> >(); Cohort.DeathEvent += MyCohortDiedMethod; }
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() { string path = Path.Combine(Data.Directory, "mixed.txt"); bool[,] array = Bool.Read2DimArray(path); grid = new DataGrid <bool>(array); landscape = new Landscape.Landscape(grid); intShare = landscape.NewSiteVar <int>(InactiveSiteMode.Share1Value); intDistinct = landscape.NewSiteVar <int>(InactiveSiteMode.DistinctValues); objShare = landscape.NewSiteVar <Foo>(InactiveSiteMode.Share1Value); objDistinct = landscape.NewSiteVar <Foo>(InactiveSiteMode.DistinctValues); fooObjs = new Foo[landscape.SiteCount]; for (int i = 0; i < fooObjs.Length; ++i) { fooObjs[i] = new Foo(i + 1); } }
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>(); }
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>(); }
public void InputGridCtor_GetSite_RowColumn() { InputGrid<bool> inputGrid = new InputGrid<bool>(grid); ILandscape myLandscape = new Landscape.Landscape(inputGrid); CheckGetSite_RowColumn(myLandscape); }