Exemplo n.º 1
0
 public void Import(IRuRecord <MrReferenceCell, MrNeighborCell> record,
                    Func <MrNeighborCell, bool> FrequencyValidation)
 {
     foreach (MrNeighborCell neiCell in record.NbCells)
     {
         MeasuredTimes++;
         if (!FrequencyValidation(neiCell) ||
             !(neiCell.Strength > record.RefCell.Strength - InterferenceThreshold))
         {
             continue;
         }
         RuInterference interference =
             Interferences.FirstOrDefault(x =>
                                          x.CellId == neiCell.CellId && x.SectorId == neiCell.SectorId);
         if (interference == null)
         {
             interference = new RuInterference(neiCell);
             Interferences.Add(interference);
         }
         interference.InterferenceTimes++;
         if (!neiCell.NeedUpdateRtdStat)
         {
             continue;
         }
         interference.SumRtds += neiCell.Rtd;
         interference.TotalRtds++;
     }
 }
Exemplo n.º 2
0
 public void Import(IRuRecord <MrReferenceCell, MrNeighborCell> record,
                    Func <MrNeighborCell, bool> FrequencyValidation)
 {
     foreach (MrNeighborCell neiCell in record.NbCells)
     {
         this.Import(neiCell, record.RefCell, FrequencyValidation, x => new MrInterference(x));
     }
 }
Exemplo n.º 3
0
 public void Import(IRuRecord <ReferenceCell, NeighborCell> record,
                    Func <NeighborCell, bool> FrequencyValidation)
 {
     foreach (NeighborCell neiCell in record.NbCells)
     {
         RuInterference interference
             = this.Import(neiCell, record.RefCell, FrequencyValidation, x => new RuInterference(x));
         if (interference == null || !neiCell.NeedUpdateRtdStat)
         {
             continue;
         }
         interference.SumRtds += neiCell.Rtd;
         interference.TotalRtds++;
     }
 }