Beispiel #1
0
 public void Run()
 {
     for (int i = 0; i < Globals.simulations; i++)
     {
         Setup(i);
         //for (int i = 0; i < 129600; i++)
         while (SaveData.Infectious > 0 || SaveData.Exposed > 0)
         {
             step++;
             foreach (Person p in people)
             {
                 p.Move();
             }
             foreach (Person p in people)
             {
                 p.Sickness();
             }
             if ((float)step * Globals.timestep > hours)
             {
                 hours++;
                 dataWriter.Write();
             }
         }
         dataWriter.End();
     }
 }