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

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