protected void _setupDayData() { int length = _timeline.Count; int[] summons = new int[length / __hoursPerDay]; int[] decisions = new int[length / __hoursPerDay]; int[] summonsQ = new int[length / __hoursPerDay]; int[] decisionQ = new int[length / __hoursPerDay]; bool[] smsArray = new bool[_timeline.Count]; bool[] decArray = new bool[_timeline.Count]; int[] sQArray = new int[_timeline.Count]; int[] dQArray = new int[_timeline.Count]; for (int i = 0; i < _timeline.Count; i++) { smsArray[i] = _timeline[i].ChairReport.SummonsOut; decArray[i] = _timeline[i].ChairReport.DecisionOut; sQArray[i] = (int)_timeline[i].ChairReport.SummonsQueueSize; dQArray[i] = (int)_timeline[i].ChairReport.DecisionQueueSize; } summons = _sumTrueByN(smsArray, __hoursPerDay); decisions = _sumTrueByN(decArray, __hoursPerDay); summonsQ = _lastOfN(sQArray, __hoursPerDay); decisionQ = _lastOfN(dQArray, __hoursPerDay); _blockChartDayData = new BlockChartDayData(summons, decisions, summonsQ, decisionQ); }
public ActivityTimeLines_VM(Board board) { if (board.ReportLogList.Count == 0) { board.RunSimulation(); } _analyser = new ActivityAnalyzer(board.ReportLogList); ActivityTimeLines = _analyser.ActivityTimeLines; ActivityData = _analyser.ActivityBlockChartData; DayData = _analyser.DayData; }