예제 #1
0
        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);
        }
예제 #2
0
 private void SetValues(double station = double.MinValue, List <StationOffsetDataRow> offsets = null)
 {
     Station = station;
     Offsets = new List <StationOffsetDataRow>();
     Minimum = new GriddedReportDataRowBase();
     Maximum = new GriddedReportDataRowBase();
     Average = new GriddedReportDataRowBase();
     if (offsets != null)
     {
         Offsets.AddRange(offsets);
         if (Offsets.Count > 0)
         {
             Minimum = CalculateMinimum(Offsets);
             Maximum = CalculateMaximum(Offsets);
             Average = CalculateAverage(Offsets);
         }
     }
 }