Пример #1
0
 public static void Import(this List <MroRsrpTa> statList, MroRecordSet recordSet)
 {
     foreach (MrRecord cell in recordSet.RecordList)
     {
         MrReferenceCell record = cell.RefCell;
         if (record == null || record.Ta == 255)
         {
             continue;
         }
         RsrpInterval interval = record.Rsrp.GetInterval();
         MroRsrpTa    stat     = statList.FirstOrDefault(x =>
                                                         x.RecordDate == recordSet.RecordDate && x.CellId == record.CellId && x.SectorId == record.SectorId &&
                                                         x.RsrpInterval == interval);
         if (stat == null)
         {
             statList.Add(new MroRsrpTa
             {
                 RecordDate   = recordSet.RecordDate,
                 CellId       = record.CellId,
                 SectorId     = record.SectorId,
                 RsrpInterval = interval
             });
         }
         else
         {
             stat.UpdateTa(record.Ta);
         }
     }
 }
Пример #2
0
        public MroRsrpTa GenerateStat()
        {
            MroRsrpTa stat = new MroRsrpTa
            {
                SectorId     = SectorId,
                RsrpInterval = Rsrp.GetInterval()
            };

            return(stat);
        }