private static void TestEpidemicSimulator() { // TODO | dj | remove this! Process.GetCurrentProcess().MaxWorkingSet = new IntPtr(4294967296); // should limit the RAM to ~4GB. FactorContainer fc = new FactorContainer(new int[] { 0, 0, 0, 0, 0, 0, 0, 0 }); var sim = EpidemicSimulator.Create(new Disease() { Name = "TestDisease", HealingFactor = fc, ResistanceFactor = fc, MortalityRate = fc, Transferability = 75 }, "../../../EpidemicSim_InputDataParsers/germany.dep", new ConsoleOutputTarget(), DateTime.Now, new DebugInfectionComponent()); sim.SetSimulationIntervall(1); sim.SetSnapshotIntervall(1); sim.ProcessFinished += (_, __) => { ReviewManager sm = new ReviewManager(); sm.OpenSimFile(DESKTOP_PATH + "\\TestDisease.sim"); sm.LoadTickSnapshot(sm.Entries[0]); sm.CreateGraphics((EStatField)255, EColorPalette.Red, "testmap"); Console.WriteLine("DONE!"); }; sim.StartSimulation(DESKTOP_PATH + "\\dat.sim", InfectionInitState.Empty, 1); }
public FactorContainerForm(FactorContainer factors) : this() { Factors = factors; }