示例#1
0
        }         // end of

        #endregion

        #region CreateModel

        public void CreateModel()
        {
            //_simulationModel = new SimulationModelQueuing((DateTime)DatePickerStartDate.SelectedDate,
            //    (DateTime)DatePickerEndDate.SelectedDate,
            //    2,
            //    3,
            //    5,
            //    10);

            DrawingSystem.ClearSystem();


            _simulationModel = new HospitalSimulationModelWithVisualization((DateTime)DatePickerStartDate.SelectedDate,
                                                                            (DateTime)DatePickerEndDate.SelectedDate);

            _simulationEngine = new SimulationEngine();
            SimulationEngine.LoggingEngine   = new BaseLoggingEngine(SimulationModel);
            SimulationEngine.CreateEventLog  = true;
            SimulationEngine.SimulationModel = SimulationModel;
            SimulationModel.Initialize(SimulationEngine);
            SimulationModel.InitializeVisualization(DrawingSystem);
        } // end of CreateModel