Beispiel #1
0
        public List <Event> Begin(List <Event> scheduler, Restaurant restaurant, int[] parameters)
        {
            int seed = 12334;
            int x    = 0;

            for (int i = 0; i < 10 * 10000; i++)
            {
                Generators.Uniform(ref seed);
                if ((i % 10000) == 0)
                {
                    Generators.Seeds[x++] = seed;
                }
            }

            Event.SystemTime = 0;
            var           time   = (int)Generators.Normal(ref Generators.Seeds[1], ref Generators.Seeds[2], parameters[0], parameters[1]);
            ClientArrival client = new ClientArrival(time, "ClientArrival");

            client.Execute(scheduler, restaurant, parameters);
            return(scheduler);
        }