Beispiel #1
0
 public void BerekenResultaat()
 {
     Resultaat = Rijen.Sum(r => r.Resultaat);
     if (Formule == Formule.FormuleKost1)
     {
         Resultaat *= 12;
     }
 }
Beispiel #2
0
        public List <State> Run()
        {
            List <State> states = new List <State>();

            for (int i = 0; i < Iteraties; i++)
            {
                if (Visualiseer)
                {
                    Display.Show(this);
                    Thread.Sleep(300);
                    //Console.ReadKey();
                }

                states.Add(new State
                {
                    AantalKlanten = Rijen.Sum(r => r.Count),
                    AVGRijlengte  = Rijen.Average(r => Convert.ToDouble(r.Count)),
                    Weggelopen    = Step(),
                    AantalKassas  = Rijen.Where(rij => rij.IsOpen).Count()
                });
            }

            return(states);
        }