public void AddNeighbors(ILteNeighborCellRepository repository, int eNodebId) { if (NearestPciCells == null) NearestPciCells = new List<NearestPciCell>(); if (NearestPciCells.FirstOrDefault(x => x.CellId == eNodebId) != null) return; NearestPciCells = new List<NearestPciCell>(); NearestPciCells.AddRange(repository.NearestPciCells.Where(x => x.CellId == eNodebId)); }
public MrFileInfoListImporter(List <InterferenceStat> stats, IEnumerable <Cell> cells, ILteNeighborCellRepository repository) : this() { _stats = stats; _cells = cells; _repository = repository; }
public MroFilesImporter(ICellRepository cellRepository, ILteNeighborCellRepository neighborCellRepository) { RsrpTaStatList = new List <MroRsrpTa>(); InterferenceStats = new List <PureInterferenceStat>(); _neighborRepository = new NearestPciCellRepository(cellRepository.GetAllList()); _neighborCellRepository = neighborCellRepository; }
public MroFilesImporter(ICellRepository cellRepository, ILteNeighborCellRepository neighborCellRepository) { RsrpTaStatList = new List<MroRsrpTa>(); InterferenceStats = new List<PureInterferenceStat>(); _neighborRepository = new NearestPciCellRepository(cellRepository.GetAllList()); _neighborCellRepository = neighborCellRepository; }
public static MrRecordSet Generate(this List<CdrRtdRecord> taRecordList, ILteNeighborCellRepository repository, IEnumerable<Cell> cells, string path) { NearestPciCellRepository neighborRepository = new NearestPciCellRepository(cells); MrRecordSet recordSet; using (StreamReader stream = new StreamReader(path)) { recordSet = new MroRecordSet(stream); neighborRepository.AddNeighbors(repository, recordSet.ENodebId); taRecordList.Update(neighborRepository, recordSet); } return recordSet; }
public void AddNeighbors(ILteNeighborCellRepository repository, int eNodebId) { if (NearestPciCells == null) { NearestPciCells = new List <NearestPciCell>(); } if (NearestPciCells.FirstOrDefault(x => x.CellId == eNodebId) != null) { return; } NearestPciCells = new List <NearestPciCell>(); NearestPciCells.AddRange(repository.NearestPciCells.Where(x => x.CellId == eNodebId)); }
public static MrRecordSet Generate(this List <CdrRtdRecord> taRecordList, ILteNeighborCellRepository repository, IEnumerable <Cell> cells, string path) { NearestPciCellRepository neighborRepository = new NearestPciCellRepository(cells); MrRecordSet recordSet; using (StreamReader stream = new StreamReader(path)) { recordSet = new MroRecordSet(stream); neighborRepository.AddNeighbors(repository, recordSet.ENodebId); taRecordList.Update(neighborRepository, recordSet); } return(recordSet); }
private void OpenMr_Click(object sender, RoutedEventArgs e) { _neighborRepository = new EFLteNeighborCellRepository(); List <Cell> cells = (new EFCellRepository()).GetAllList(); _mrImporter = new MrFileInfoListImporter(_statList, cells, _neighborRepository) { FileInfoList = _fileInfoList }; FileDialogWrapper wrapper = new OpenMrFileDialogWrapper(); if (wrapper.ShowDialog()) { _mrImporter.ImportFiles(wrapper.FileNames); FileList.SetDataSource(_fileInfoList); } }
public static List<MrRecordSet> Import(this List<CdrRtdRecord> taRecordList, ILteNeighborCellRepository repository, IEnumerable<Cell> cells, IEnumerable<string> paths) { return paths.Select(x => taRecordList.Generate(repository, cells, x)).ToList(); }
private void OpenMr_Click(object sender, RoutedEventArgs e) { _neighborRepository = new EFLteNeighborCellRepository(); List<Cell> cells = (new EFCellRepository()).GetAllList(); _mrImporter = new MrFileInfoListImporter(_statList, cells, _neighborRepository) { FileInfoList = _fileInfoList }; FileDialogWrapper wrapper = new OpenMrFileDialogWrapper(); if (wrapper.ShowDialog()) { _mrImporter.ImportFiles(wrapper.FileNames); FileList.SetDataSource(_fileInfoList); } }
public LteNeighborCellService(ILteNeighborCellRepository repository) { _repository = repository; }
public SaveLteCellRelationService(ILteNeighborCellRepository repository) { _repository = repository; }
public NeighborFileListImporter(ILteNeighborCellRepository repository) { _repository = repository; FileType = "CSV-LTE邻区关系"; }
public SaveLteCellRelationService(ILteNeighborCellRepository repository) { _repository = repository; }
public static List <MrRecordSet> Import(this List <CdrRtdRecord> taRecordList, ILteNeighborCellRepository repository, IEnumerable <Cell> cells, IEnumerable <string> paths) { return(paths.Select(x => taRecordList.Generate(repository, cells, x)).ToList()); }
public LteNeighborCellService(ILteNeighborCellRepository repository) { _repository = repository; }
public NeighborFileListImporter(ILteNeighborCellRepository repository) { _repository = repository; FileType = "CSV-LTE邻区关系"; }