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++; } }
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)); } }
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++; } }