Ejemplo n.º 1
0
        public void IniciarSimulacion()
        {
            var cantidadEventosOcurridos = 0;

            while (cantidadEventosOcurridos < 1000)
            {
                IEvento evento = this.RutinaDeTiempo();
                evento.RutinaEvento(this);

                //this.reporte.RegistrarEvento(this);

                //Console.ReadKey();

                cantidadEventosOcurridos++;
            }

            Console.ReadKey();

            // Calcular medidas de rendimiento.
            this.reporte.ObtenerMedidasDeRendimiento(this);

            throw new InvalidOperationException("Condición de fin de sumulación cumplida.");
        }