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

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