public ActionResult GetAggregateDataTypes(int id) { List <AggregatedDataType> AggregatedDataTypes; switch (id) { case 16: AggregatedDataTypes = new DetectorVolumeAggregationOptions().AggregatedDataTypes; break; case 25: AggregatedDataTypes = new ApproachSpeedAggregationOptions().AggregatedDataTypes; break; case 18: AggregatedDataTypes = new ApproachPcdAggregationOptions().AggregatedDataTypes; break; case 19: AggregatedDataTypes = new ApproachCycleAggregationOptions().AggregatedDataTypes; break; case 20: AggregatedDataTypes = new ApproachSplitFailAggregationOptions().AggregatedDataTypes; break; case 26: AggregatedDataTypes = new ApproachYellowRedActivationsAggregationOptions().AggregatedDataTypes; break; case 22: AggregatedDataTypes = new SignalPreemptionAggregationOptions().AggregatedDataTypes; break; case 24: AggregatedDataTypes = new SignalPriorityAggregationOptions().AggregatedDataTypes; break; case 27: AggregatedDataTypes = new SignalEventCountAggregationOptions().AggregatedDataTypes; break; case 28: AggregatedDataTypes = new ApproachEventCountAggregationOptions().AggregatedDataTypes; break; case 29: AggregatedDataTypes = new PhaseTerminationAggregationOptions().AggregatedDataTypes; break; case 30: AggregatedDataTypes = new PhasePedAggregationOptions().AggregatedDataTypes; break; default: throw new Exception("Invalid Metric Type"); break; } return(PartialView(AggregatedDataTypes)); }
public void SetEventCountSeriesTest() { SignalPreemptionAggregationOptions options = new SignalPreemptionAggregationOptions(); Series y = new Series(); Series s = options.SetEventCountSeries(y); Assert.IsTrue(s.Color == Color.Black); }
public void SetAggregateData() { switch (SelectedMetricTypeId) { case 16: AggregatedDataTypes = new DetectorVolumeAggregationOptions().AggregatedDataTypes; break; case 18: AggregatedDataTypes = new ApproachPcdAggregationOptions().AggregatedDataTypes; break; case 19: AggregatedDataTypes = new ApproachCycleAggregationOptions().AggregatedDataTypes; break; case 20: AggregatedDataTypes = new ApproachSplitFailAggregationOptions().AggregatedDataTypes; break; case 22: AggregatedDataTypes = new SignalPreemptionAggregationOptions().AggregatedDataTypes; break; case 24: AggregatedDataTypes = new SignalPriorityAggregationOptions().AggregatedDataTypes; break; case 25: AggregatedDataTypes = new ApproachSpeedAggregationOptions().AggregatedDataTypes; break; case 26: AggregatedDataTypes = new ApproachYellowRedActivationsAggregationOptions().AggregatedDataTypes; break; case 27: AggregatedDataTypes = new SignalEventCountAggregationOptions().AggregatedDataTypes; break; case 28: AggregatedDataTypes = new ApproachEventCountAggregationOptions().AggregatedDataTypes; break; default: throw new Exception("Invalid Metric Type"); break; } }
private ActionResult GetPreemptionChart(AggDataExportViewModel aggDataExportViewModel) { SignalPreemptionAggregationOptions options = new SignalPreemptionAggregationOptions(); return(GetChart(aggDataExportViewModel, options)); }
public void CreateTimeMetricStartToFinishAllBinSizesAllAggregateDataTypesTest() { var options = new SignalPreemptionAggregationOptions(); base.CreateTimeMetricStartToFinishAllBinSizesAllAggregateDataTypesTest(options); }
public PreemptionAggregationBySignal(SignalPreemptionAggregationOptions options, Models.Signal signal) : base( options, signal) { LoadBins(options, signal); }