public void ImportMeasurePoint(MeasurePoint mPoint) { if (MainCell.Cell != mPoint.Result.StrongestCell.Cell.Cell) { return; } MainCell.UpdateRsrpPower(mPoint.Result.StrongestCell); CoverPoints++; foreach (MeasurableCell mcell in mPoint.CellRepository.CellList.Where(x => x != mPoint.Result.StrongestCell)) { MeasurePlanCell mpCell = InterferenceCells.FirstOrDefault( x => x.Cell == mcell.Cell.Cell); if (mpCell != null) { mpCell.UpdateRsrpPower(mcell); } else { InterferenceCells.Add(new MeasurePlanCell(mcell)); } } }
public void GenerateMeasurableCellList(ComparableCell[] compCells, MeasurePoint point) { CellList.Clear(); int count = Math.Min(compCells.Length, _maxMeasurableCells); for (int i = 0; i < count; i++) { MeasurableCell c = new MeasurableCell(compCells[i], point); c.CalculateRsrp(); CellList.Add(c); } }