示例#1
0
        private BoardReport _passWorkToMembers(Hour currentHour)
        {
            BoardReport report = new BoardReport(_members);

            WorkCase   workCase;
            WorkReport workReport;

            foreach (Member member in _members)
            {
                workCase   = _registrar.GetMemberWork(currentHour, member);
                workReport = (workCase == null)
                    ? new NullWorkReport()
                    : workCase.Work(currentHour, member);
                report.Add(member, workReport);
            }

            return(report);
        }
示例#2
0
        internal override WorkCase GetMemberWork(Hour currentHour, Member member)
        {
            if (_memberHasOP(currentHour, member))
            {
                return(_opSchedule.GetOPWork(currentHour, member));
            }

            if (_decisionQueues[member].Count > 0)
            {
                return(_decisionQueues[member].Peek());
            }

            if (_summonsQueues[member].Count > 0)
            {
                return(_summonsQueues[member].Peek());
            }

            return(null);
        }
示例#3
0
 internal void LogFinished(Hour hour, WorkCase workCase, CaseWorker worker)
 { }
示例#4
0
 internal abstract void CirculateCases(Hour currentHour);
示例#5
0
 internal void LogStarted(Hour hour, WorkCase workCase, CaseWorker worker)
 { }
示例#6
0
 internal abstract void LogEnqueued(Hour currentHour);
示例#7
0
 internal abstract void ProcessFinishedCase(Hour currentHour, Registrar registrar);
示例#8
0
 internal void LogStarted(Hour hour, SummonsCase workCase, RapporteurWorker worker)
 {
     _checkIsNotAlreadyLogged(SummonsStartedRapporteur);
     SummonsStartedRapporteur = hour;
 }
示例#9
0
 internal override void ProcessFinishedCase(Hour currentHour, Registrar registrar)
 {
     registrar.ScheduleOP(currentHour, _case, _caseBoard);
 }
示例#10
0
 internal void LogFinished(Hour hour, OPCase workCase, SecondWorker worker)
 {
     _checkIsNotAlreadyLogged(OPFinishedSecondMember);
     OPFinishedSecondMember = hour;
 }
示例#11
0
 internal void LogFinished(Hour hour, DecisionCase workCase, ChairWorker worker)
 {
     _checkIsNotAlreadyLogged(DecisionFinishedChair);
     DecisionFinishedChair = hour;
 }
示例#12
0
 internal void LogFinished(Hour hour, OPCase workCase, ChairWorker worker)
 {
     _checkIsNotAlreadyLogged(OPFinishedChair);
     OPFinishedChair = hour;
 }
示例#13
0
 internal void LogFinished(Hour hour, OPCase workCase, RapporteurWorker worker)
 {
     _checkIsNotAlreadyLogged(OPFinishedRapporteur);
     OPFinishedRapporteur = hour;
 }
示例#14
0
 internal abstract void UpdateQueuesAndCirculate(Hour currentHour);
示例#15
0
 internal abstract void ScheduleOP(Hour currentHour, AppealCase appealCase, CaseBoard workers);
示例#16
0
 internal abstract WorkCase GetMemberWork(Hour currentHour, Member member);
示例#17
0
 internal void LogEnqueued(Hour hour, SummonsCase workCase, SecondWorker worer)
 {
     _checkIsNotAlreadyLogged(SummonsEnqueuedSecondMember);
     SummonsEnqueuedSecondMember = hour;
 }
示例#18
0
 internal void LogFinished(Hour hour, DecisionCase workCase, RapporteurWorker worker)
 {
     _checkIsNotAlreadyLogged(DecisionFinishedRapporteur);
     DecisionFinishedRapporteur = hour;
 }
示例#19
0
 internal void LogStarted(Hour hour, SummonsCase workCase, ChairWorker worker)
 {
     _checkIsNotAlreadyLogged(SummonsStartedChair);
     SummonsStartedChair = hour;
 }
示例#20
0
 internal void LogFinished(Hour hour, DecisionCase workCase, SecondWorker worer)
 {
     _checkIsNotAlreadyLogged(DecisionFinishedSecondMember);
     DecisionFinishedSecondMember = hour;
 }
示例#21
0
 internal override void LogEnqueued(Hour currentHour)
 => Log.LogEnqueued(currentHour, this as dynamic, _currentWorker as dynamic);
示例#22
0
 internal void LogFinished(Hour hour)
 {
     _checkIsNotAlreadyLogged(Finished);
     Finished = hour;
 }
示例#23
0
        internal override void ProcessFinishedCase(Hour currentHour, Registrar registrar)
        {
            WorkCase decisionCase = new DecisionCase(_case, _caseBoard);

            registrar.AddToDecisionCirculation(decisionCase);
        }
示例#24
0
 internal abstract void ProcessNewCase(AppealCase appealCase, Hour currentHour);
示例#25
0
 internal abstract WorkReport Work(Hour currentHour, Member member);
示例#26
0
 private bool _memberHasOP(Hour currentHour, Member member)
 {
     return(_opSchedule.HasOPWork(currentHour, member));
 }
示例#27
0
 private void _checkIsNotAlreadyLogged(Hour logEntry)
 {
     if (logEntry != null)
         throw new InvalidOperationException("Entry has already been logged.");
 }
示例#28
0
 private void _updateOPSchedule(Hour currentHour)
 {
     _opSchedule.UpdateSchedule(currentHour);
 }
示例#29
0
 internal abstract BoardReport DoWork(Hour currentHour);
示例#30
0
 internal void LogEnqueued(Hour hour, WorkCase workCase, CaseWorker worker)
 {  }