Пример #1
0
 internal Simulation(
     int lengthInHours,
     BoardParameters boardParameters,
     int initialCaseCount)
     : this(
         lengthInHours,
         boardParameters,
         0,
         initialCaseCount,
         new Dictionary <Hour, int>())
 {
 }
Пример #2
0
 internal Simulation(
     int lengthInHours,
     BoardParameters boardParameters,
     int minimumDaysBetweenOP,
     int initialCaseCount,
     Dictionary <int, int> arriving)
     : this(
         lengthInHours,
         boardParameters,
         minimumDaysBetweenOP,
         initialCaseCount,
         __scheduleArrivals(arriving))
 {
 }
Пример #3
0
 public static Simulation MakeSimulation(
     int years,
     BoardParameters boardParameters,
     int minimumDaysBetweenOP,
     int initialCaseCount,
     int arrivalsPerMonth = 0)
 {
     return(new Simulation(
                years * TimeParameters.HoursPerYear,
                boardParameters,
                minimumDaysBetweenOP,
                initialCaseCount,
                arrivalsPerMonth));
 }
Пример #4
0
 internal Simulation(
     int lengthInHours,
     BoardParameters boardParameters,
     int minimumDaysBetweenOP,
     int initialCaseCount,
     int arrivalsPerMonth)
     : this(
         lengthInHours,
         boardParameters,
         minimumDaysBetweenOP,
         initialCaseCount,
         __scheduleArrivals(arrivalsPerMonth, lengthInHours))
 {
 }
Пример #5
0
        internal Simulation(
            int lengthInHours,
            BoardParameters boardParameters,
            int minimumDaysBetweenOP,
            int initialCaseCount,
            Dictionary <Hour, int> arriving)
        {
            OPSchedule opSchedule = new SimpleOPScheduler(minimumDaysBetweenOP);

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

            _assembleInitialCases(initialCaseCount);
        }
Пример #6
0
        public void Initialise()
        {
            MemberParameterCollection chair = new MemberParameterCollection(
                new MemberParameters(6, 6, 12),
                new MemberParameters(40, 8, 24),
                new MemberParameters(3, 4, 8));

            List <MemberParameterCollection> technicals = new List <MemberParameterCollection>
            {
                new MemberParameterCollection(
                    new MemberParameters(7, 7, 13),
                    new MemberParameters(41, 9, 25),
                    new MemberParameters(4, 5, 9)),

                new MemberParameterCollection(
                    new MemberParameters(8, 8, 14),
                    new MemberParameters(42, 10, 26),
                    new MemberParameters(5, 6, 10))
            };

            List <MemberParameterCollection> legals = new List <MemberParameterCollection>
            {
                new MemberParameterCollection(
                    new MemberParameters(7, 7, 13),
                    new MemberParameters(41, 9, 25),
                    new MemberParameters(4, 5, 9)),

                new MemberParameterCollection(
                    new MemberParameters(8, 8, 14),
                    new MemberParameters(42, 10, 26),
                    new MemberParameters(5, 6, 10)),

                new MemberParameterCollection(
                    new MemberParameters(9, 9, 15),
                    new MemberParameters(43, 11, 27),
                    new MemberParameters(6, 7, 11))
            };

            parameters = new TechnicalBoardParameters(
                chair,
                technicals,
                legals);
        }
 public FullSimulationViewModel(BoardParameters boardParameters)
 {
     _boardParameters = boardParameters;
 }