public InterferenceNeighborService(IInterferenceMatrixRepository repository, INearestPciCellRepository neighboRepository, IENodebRepository eNodebRepository) { _repository = repository; _neighborRepository = neighboRepository; _eNodebRepository = eNodebRepository; }
public NearestPciCellService(INearestPciCellRepository repository, ICellRepository cellRepository, IENodebRepository eNodebRepository) { _repository = repository; _cellRepository = cellRepository; _eNodebRepository = eNodebRepository; if (NearestCells == null) NearestCells = new Stack<NearestPciCell>(); }
public NearestPciCellService(INearestPciCellRepository repository, ICellRepository cellRepository, IENodebRepository eNodebRepository, IInfrastructureRepository infrastructureRepository) { _repository = repository; _cellRepository = cellRepository; _eNodebRepository = eNodebRepository; _infrastructureRepository = infrastructureRepository; if (NearestCells == null) { NearestCells = new Stack <NearestPciCell>(); } }
public NearestPciCellService(INearestPciCellRepository repository, ICellRepository cellRepository, IENodebRepository eNodebRepository, IAgisDtPointRepository agisRepository) { _repository = repository; _cellRepository = cellRepository; _eNodebRepository = eNodebRepository; _agisRepository = agisRepository; if (NearestCells == null) { NearestCells = new Stack <NearestPciCell>(); } }
public void SetUp() { repository = new NearestPciCellRepository(cells); neiRepository.SetupGet(x => x.NearestPciCells).Returns(new List<NearestPciCell> { new NearestPciCell {CellId = 1, SectorId = 1, NearestCellId = 1, NearestSectorId = 2, Pci = 102}, new NearestPciCell {CellId = 1, SectorId = 1, NearestCellId = 1, NearestSectorId = 3, Pci = 103}, new NearestPciCell {CellId = 1, SectorId = 1, NearestCellId = 2, NearestSectorId = 1, Pci = 111} }.AsQueryable()); neiRepository.SetupGet(x => x.NeighborCells).Returns(new List<LteNeighborCell> { new LteNeighborCell {CellId = 1, SectorId = 2, NearestCellId = 1, NearestSectorId = 1}, new LteNeighborCell {CellId = 1, SectorId = 2, NearestCellId = 1, NearestSectorId = 3}, new LteNeighborCell {CellId = 1, SectorId = 2, NearestCellId = 2, NearestSectorId = 1} }.AsQueryable()); repository=new NearestPciCellRepository(cells); }
public void ImportRecordSet(INearestPciCellRepository repository) { foreach (MrRecord record in RecordList) { foreach (MrNeighborCell neighborCell in record.NbCells) { NearestPciCell pciCell = repository.NearestPciCells.FirstOrDefault(x => x.CellId == record.RefCell.CellId && x.SectorId == record.RefCell.SectorId && x.Pci == neighborCell.Pci && (x.NearestSectorId < 30) == (neighborCell.Frequency < 1000)) ?? repository.Import(record.RefCell, neighborCell.Pci); if (pciCell == null) { continue; } neighborCell.CellId = pciCell.NearestCellId; neighborCell.SectorId = pciCell.NearestSectorId; } } }
public NearestPciCellService(INearestPciCellRepository repository, ICellRepository cellRepository, IENodebRepository eNodebRepository, IAgisDtPointRepository agisRepository, ITownRepository townRepository, IMrGridRepository mrGridRepository, IAppStreamRepository streamRepository, IWebBrowsingRepository browsingRepository, IMrGridKpiRepository mrGridKpiRepository) { _repository = repository; _cellRepository = cellRepository; _eNodebRepository = eNodebRepository; _agisRepository = agisRepository; _streamRepository = streamRepository; _browsingRepository = browsingRepository; _mrGridKpiRepository = mrGridKpiRepository; _townRepository = townRepository; _mrGridService = new MrGridService(mrGridRepository); if (NearestCells == null) { NearestCells = new Stack <NearestPciCell>(); } }
public InterferenceNeighborService(IInterferenceMatrixRepository repository, INearestPciCellRepository neighboRepository, IENodebRepository eNodebRepository, ICellRepository cellRepository) { _repository = repository; _neighborRepository = neighboRepository; _eNodebRepository = eNodebRepository; _cellRepository = cellRepository; }