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;
 }
Example #3
0
 public MroFilesImporter(ICellRepository cellRepository,
                         ILteNeighborCellRepository neighborCellRepository)
 {
     RsrpTaStatList    = new List <MroRsrpTa>();
     InterferenceStats = new List <PureInterferenceStat>();
     _neighborRepository
         = new NearestPciCellRepository(cellRepository.GetAllList());
     _neighborCellRepository = neighborCellRepository;
 }
Example #4
0
 public MroFilesImporter(ICellRepository cellRepository,
     ILteNeighborCellRepository neighborCellRepository)
 {
     RsrpTaStatList = new List<MroRsrpTa>();
     InterferenceStats = new List<PureInterferenceStat>();
     _neighborRepository
         = new NearestPciCellRepository(cellRepository.GetAllList());
     _neighborCellRepository = neighborCellRepository;
 }
Example #5
0
 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;
 }
Example #6
0
 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));
 }
Example #7
0
        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);
            }
        }
Example #9
0
 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;
 }
Example #13
0
 public NeighborFileListImporter(ILteNeighborCellRepository repository)
 {
     _repository = repository;
     FileType    = "CSV-LTE邻区关系";
 }
 public SaveLteCellRelationService(ILteNeighborCellRepository repository)
 {
     _repository = repository;
 }
Example #15
0
 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;
 }
Example #17
0
 public NeighborFileListImporter(ILteNeighborCellRepository repository)
 {
     _repository = repository;
     FileType = "CSV-LTE邻区关系";
 }