Пример #1
0
        internal Simulation(
            int lengthInHours,
            BoardParameters boardParameters,
            int minimumDaysBetweenOP,
            int initialCaseCount,
            Dictionary <Hour, int> arriving)
        {
            OPSchedule opSchedule = new SimpleOPScheduler(minimumDaysBetweenOP);
            Registrar  registrar  = new Registrar(opSchedule);

            _board         = boardParameters.MakeBoard(registrar);
            _timeSpan      = new SimulationTimeSpan(new Hour(0), new Hour(lengthInHours - 1));
            _reports       = new HourlyReports();
            _arrivingCases = arriving;

            _assembleInitialCases(initialCaseCount);
        }
Пример #2
0
 public SimulationReport(ReadOnlyCollection <CompletedCaseReport> finished, HourlyReports reports)
 {
     FinishedCases = finished;
     _reports      = reports;
 }