public static GridRow CreateRow(GriddedReportDataRowBase dataRow, CompactionReportRequest request) { var row = new GridRow(); row.SetValues(dataRow.Northing, dataRow.Easting, dataRow.Elevation, dataRow.CutFill, dataRow.Cmv, dataRow.Mdp, dataRow.PassCount, dataRow.Temperature); row.SetReportFlags(request); return(row); }
/// <summary> /// Create an instance of the <see cref="GridRow"/> class. /// </summary> /// <returns>An instance of the <see cref="GridRow"/> class.</returns> #if RAPTOR public static GridRow CreateRow(TGridRow report, CompactionReportRequest request) { var row = new GridRow(); row.SetValues(report.Northing, report.Easting, report.Elevation, report.CutFill, report.CMV, report.MDP, report.PassCount, report.Temperature); row.SetReportFlags(request); return(row); }
/// <summary> /// Sets flags that indicates which of the reported values present in the report. /// </summary> public void SetReportFlags(CompactionReportRequest request) { ElevationReport = request.ReportElevation; CutFillReport = request.ReportCutFill; CMVReport = request.ReportCMV; MDPReport = request.ReportMDP; PassCountReport = request.ReportPassCount; TemperatureReport = request.ReportTemperature; }
/// <summary> /// Static constructor for the <see cref="StationOffsetRow"/> type. /// </summary> /// <returns>Returns an instance of <see cref="StationOffsetRow"/> populated from the supplied <see cref="StationOffsetDataRow"/> object.</returns> public static StationOffsetRow CreateRow(StationOffsetDataRow offset, CompactionReportRequest request) { var row = new StationOffsetRow { Offset = offset.Offset, Station = offset.Station, }; row.SetValues(offset.Northing, offset.Easting, offset.Elevation, offset.CutFill, offset.Cmv, offset.Mdp, offset.PassCount, offset.Temperature); row.SetReportFlags(request); return(row); }
public static OffsetStatistics Create(OffsetStatisticType type, StationOffsetReportDataRow station, CompactionReportRequest request) { var offsetStatistics = new OffsetStatistics(); switch (type) { case OffsetStatisticType.Maximum: offsetStatistics.SetValues(0, 0, station.Maximum.Elevation, station.Maximum.CutFill, station.Maximum.Cmv, station.Maximum.Mdp, station.Maximum.PassCount, station.Maximum.Temperature); break; case OffsetStatisticType.Minimum: offsetStatistics.SetValues(0, 0, station.Minimum.Elevation, station.Minimum.CutFill, station.Minimum.Cmv, station.Minimum.Mdp, station.Minimum.PassCount, station.Minimum.PassCount); break; case OffsetStatisticType.Average: offsetStatistics.SetValues(0, 0, station.Average.Elevation, station.Average.CutFill, station.Average.Cmv, station.Average.Mdp, station.Average.PassCount, station.Average.Temperature); break; } offsetStatistics.SetReportFlags(request); return(offsetStatistics); }
public static OffsetStatistics Create(OffsetStatisticType type, TStation station, CompactionReportRequest request) { var offsetStatistics = new OffsetStatistics(); switch (type) { case OffsetStatisticType.Maximum: offsetStatistics.SetValues(0, 0, station.ElevMax, station.CutFillMax, station.CMVMax, station.MDPMax, station.PassCountMax, station.TemperatureMax); break; case OffsetStatisticType.Minimum: offsetStatistics.SetValues(0, 0, station.ElevMin, station.CutFillMin, station.CMVMin, station.MDPMin, station.PassCountMin, station.TemperatureMin); break; case OffsetStatisticType.Average: offsetStatistics.SetValues(0, 0, station.ElevAvg, station.CutFillAvg, station.CMVAvg, station.MDPAvg, station.PassCountAvg, station.TemperatureAvg); break; } offsetStatistics.SetReportFlags(request); return(offsetStatistics); }