Beispiel #1
0
        private void _processCirculatingCases()
        {
            while (_circulatingCases.Count > 0)
            {
                AppealCase appealCase = _circulatingCases.Dequeue();
                Allocation allocation = _activeCases[appealCase];
                Member     nextWorker = allocation.Enqueue(appealCase);

                if (nextWorker == null)
                {
                    appealCase.AdvanceState();
                    Hour opStartHour = _scheduleOP(appealCase);
                    Hour opEndHour   = opStartHour.Add(OPDURATION);
                    allocation.NotifyOPSchedule(appealCase, opStartHour, opEndHour);
                }
            }
        }
Beispiel #2
0
 internal BoardLog GetForHour(Hour h)
 {
     return(_log[h]);
 }
Beispiel #3
0
 internal SimulationTimeSpan(Hour start, Hour end)
 {
     _start = start;
     _end   = end;
 }
Beispiel #4
0
 internal static void Reset()
 {
     Current = new Hour(0);
 }
Beispiel #5
0
 internal static void Increment()
 {
     Current = Current.Next();
 }
Beispiel #6
0
 static SimulationTime()
 {
     Current = new Hour(0);
 }