Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 2
0
 internal BoardLog GetForHour(Hour h)
 {
     return(_log[h]);
 }
Exemplo n.º 3
0
 internal SimulationTimeSpan(Hour start, Hour end)
 {
     _start = start;
     _end   = end;
 }
Exemplo n.º 4
0
 internal static void Reset()
 {
     Current = new Hour(0);
 }
Exemplo n.º 5
0
 internal static void Increment()
 {
     Current = Current.Next();
 }
Exemplo n.º 6
0
 static SimulationTime()
 {
     Current = new Hour(0);
 }