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

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