コード例 #1
0
ファイル: Simulation.cs プロジェクト: pscrv/BoardSimulator
        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;
 }