Exemplo n.º 1
0
 public EvaluationController(ITownRepository townRepository,
                             IENodebRepository eNodebRepository, ICellRepository cellRepositroy)
 {
     this.townRepository   = townRepository;
     this.eNodebRepository = eNodebRepository;
     cellRepository        = cellRepositroy;
 }
Exemplo n.º 2
0
 public PreciseWorkItemService(IPreciseWorkItemCellRepository repository, ICellPowerService powerService,
                               ICellRepository cellRepository)
 {
     _repository     = repository;
     _powerService   = powerService;
     _cellRepository = cellRepository;
 }
 public CellStasticService(ICellStasticRepository repository, ICellStatMysqlRepository statRepository,
                           ICellRepository cellRepository)
 {
     _repository     = repository;
     _statRepository = statRepository;
     _cellRepository = cellRepository;
 }
Exemplo n.º 4
0
 public FlowService(
     IFlowHuaweiRepository huaweiRepositroy, IFlowZteRepository zteRepository,
     IRrcZteRepository rrcZteRepository, IRrcHuaweiRepository rrcHuaweiRepository,
     IQciZteRepository qciZteRepository, IQciHuaweiRepository qciHuaweiRepository,
     ITownFlowRepository townFlowRepository, IENodebRepository eNodebRepository,
     ITownRrcRepository townRrcRepository, ITownQciRepository townQciRepository,
     ICellRepository cellRepository, IPrbHuaweiRepository prbHuaweiRepository,
     IPrbZteRepository prbZteRepository, ITownPrbRepository townPrbRepository)
 {
     _huaweiRepository    = huaweiRepositroy;
     _zteRepository       = zteRepository;
     _rrcZteRepository    = rrcZteRepository;
     _rrcHuaweiRepository = rrcHuaweiRepository;
     _qciZteRepository    = qciZteRepository;
     _qciHuaweiRepository = qciHuaweiRepository;
     _townFlowRepository  = townFlowRepository;
     _eNodebRepository    = eNodebRepository;
     _townRrcRepository   = townRrcRepository;
     _townQciRepository   = townQciRepository;
     _cellRepository      = cellRepository;
     _prbHuaweiRepository = prbHuaweiRepository;
     _prbZteRepository    = prbZteRepository;
     _townPrbRepository   = townPrbRepository;
     if (FlowHuaweis == null)
     {
         FlowHuaweis = new Stack <Tuple <FlowHuawei, RrcHuawei, QciHuawei, PrbHuawei> >();
     }
     if (FlowZtes == null)
     {
         FlowZtes = new Stack <Tuple <FlowZte, RrcZte, QciZte, PrbZte> >();
     }
 }
 public EvaluationController(ITownRepository townRepository,
     IENodebRepository eNodebRepository, ICellRepository cellRepositroy)
 {
     this.townRepository = townRepository;
     this.eNodebRepository = eNodebRepository;
     cellRepository = cellRepositroy;
 }
Exemplo n.º 6
0
 protected QuickSaveOneCellService(ICellRepository repository, CellExcel cellInfo,
                                   CellBaseRepository baseRepository, bool updateExisted = false)
     : base(repository, cellInfo)
 {
     _baseRepository = baseRepository;
     _updateExisted  = updateExisted;
 }
 public QuickSaveCellInfoListService(ICellRepository repository,
                                     IENodebRepository eNodebRepository)
     : base(repository)
 {
     _baseRepository       = new CellBaseRepository(repository);
     _baseENodebRepository = new ENodebBaseRepository(eNodebRepository);
 }
Exemplo n.º 8
0
 public CollegeCellsController(IInfrastructureRepository repository, ICellRepository cellRepository,
     IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _eNodebRepository = eNodebRepository;
 }
Exemplo n.º 9
0
 public CollegeCellsService(IInfrastructureRepository repository, ICellRepository cellRepository,
                            IENodebRepository eNodebRepository)
 {
     _repository       = repository;
     _cellRepository   = cellRepository;
     _eNodebRepository = eNodebRepository;
 }
Exemplo n.º 10
0
 public CoveragePointsController(IInfrastructureRepository repository,
     ICellRepository cellRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Exemplo n.º 11
0
 public AlarmWorkItemService(IAlarmWorkItemRepository repository,
                             IENodebRepository eNodebRepository, ICellRepository cellRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
     _cellRepository   = cellRepository;
 }
        public int SaveCells(IEnumerable <CollegeCellExcel> cellExcels, ICellRepository cellRepository)
        {
            int count = 0;

            foreach (CollegeCellExcel excel in cellExcels)
            {
                Cell cell =
                    cellRepository.GetAll().FirstOrDefault(
                        x => x.ENodebId == excel.ENodebId && x.SectorId == excel.SectorId);
                if (cell == null)
                {
                    continue;
                }
                InfrastructureInfo infrastructure = _repository.InfrastructureInfos.FirstOrDefault(x =>
                                                                                                   x.HotspotName == excel.CollegeName && x.HotspotType == HotspotType.College &&
                                                                                                   x.InfrastructureType == InfrastructureType.Cell && x.InfrastructureId == cell.Id);
                if (infrastructure == null)
                {
                    infrastructure = new InfrastructureInfo
                    {
                        HotspotName        = excel.CollegeName,
                        HotspotType        = HotspotType.College,
                        InfrastructureType = InfrastructureType.Cell,
                        InfrastructureId   = cell.Id
                    };
                    _repository.AddOneInfrastructure(infrastructure);
                    _repository.SaveChanges();
                }
                count++;
            }
            return(count);
        }
Exemplo n.º 13
0
 protected QuickSaveOneCellService(ICellRepository repository, CellExcel cellInfo,
     CellBaseRepository baseRepository, bool updateExisted = false)
     : base(repository, cellInfo)
 {
     _baseRepository = baseRepository;
     _updateExisted = updateExisted;
 }
Exemplo n.º 14
0
 public CollegeCellViewService(IInfrastructureRepository repository, ICellRepository cellRepoistory,
     IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _cellRepository = cellRepoistory;
     _eNodebRepository = eNodebRepository;
 }
Exemplo n.º 15
0
 public BandCellService(ICellRepository repository, IENodebRepository eNodebRepository,
                        ITownRepository townRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
     _townRepository   = townRepository;
 }
 public QuickSaveCellInfoListService(ICellRepository repository,
     IENodebRepository eNodebRepository)
     : base(repository)
 {
     _baseRepository = new CellBaseRepository(repository);
     _baseENodebRepository = new ENodebBaseRepository(eNodebRepository);
 }
 public ByENodebQueryOutdoorCellService(ICellRepository repository, ENodeb eNodeb,
                                        Func <ENodeb, Cell, TOutdoorCell> outdoorCellConstructor)
     : base(repository)
 {
     _eNodeb = eNodeb;
     _outdoorCellConstructor = outdoorCellConstructor;
 }
Exemplo n.º 18
0
 public CollegePreciseService(IInfrastructureRepository repository, ICellRepository cellRepository,
                              IENodebRepository eNodebRepository, IPreciseCoverage4GRepository kpiRepository)
 {
     _repository       = repository;
     _cellRepository   = cellRepository;
     _eNodebRepository = eNodebRepository;
     _kpiRepository    = kpiRepository;
 }
Exemplo n.º 19
0
 public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository,
                           IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _eNodebRepository   = eNodebRepository;
     _cellRepository     = cellRepository;
     _btsRepository      = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Exemplo n.º 20
0
 public TownCoverageService(IENodebRepository eNodebRepository, ICoverageStatRepository statRepository,
                            ITownCoverageRepository townRepository, ICellRepository cellRepository)
 {
     _eNodebRepository = eNodebRepository;
     _statRepository   = statRepository;
     _townRepository   = townRepository;
     _cellRepository   = cellRepository;
 }
 public static IEnumerable<Cell> QueryCollegeCells(this IInfrastructureRepository repository,
     ICellRepository cellRepository, CollegeInfo info)
 {
     IEnumerable<int> ids = repository.InfrastructureInfos.Where(x =>
         x.HotspotName == info.Name && x.InfrastructureType == InfrastructureType.Cell
         ).Select(x => x.InfrastructureId).ToList();
     return ids.Select(cellRepository.Get).Where(cell => cell != null).ToList();
 }
Exemplo n.º 22
0
 public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository,
     IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Exemplo n.º 23
0
 public CellService(ICellRepository repository, IENodebRepository eNodebRepository, ILteRruRepository rruRepository,
                    IStationDictionaryRepository stationDictionaryRepository)
 {
     _repository                  = repository;
     _eNodebRepository            = eNodebRepository;
     _rruRepository               = rruRepository;
     _stationDictionaryRepository = stationDictionaryRepository;
 }
Exemplo n.º 24
0
 public DoubleFlowQueryService(IDoubleFlowHuaweiRepository huaweiRepository,
                               IDoubleFlowZteRepository zteRepository, IENodebRepository eNodebRepository,
                               ICellRepository huaweiCellRepository, ITownRepository townRepository, ICellRepository cellRepository) :
     base(huaweiRepository,
          zteRepository, eNodebRepository, huaweiCellRepository, townRepository)
 {
     _cellRepository = cellRepository;
 }
Exemplo n.º 25
0
 public CollegeCellViewService(IHotSpotCellRepository repository, ICellRepository cellRepoistory,
                               IENodebRepository eNodebRepository, ILteRruRepository rruRepository)
 {
     _repository       = repository;
     _cellRepository   = cellRepoistory;
     _eNodebRepository = eNodebRepository;
     _rruRepository    = rruRepository;
 }
Exemplo n.º 26
0
 protected HuaweiDateSpanQuery(THuaweiRepository huaweiRepository, ICellRepository huaweiCellRepository,
                               int eNodebId, byte sectorId)
 {
     HuaweiRepository      = huaweiRepository;
     _huaweiCellRepository = huaweiCellRepository;
     ENodebId  = eNodebId;
     _sectorId = sectorId;
 }
Exemplo n.º 27
0
 public College4GTestService(ICollege4GTestRepository repository,
                             ICollegeRepository collegeRepository, IENodebRepository eNodebRepository, ICellRepository cellRepository)
 {
     _repository        = repository;
     _collegeRepository = collegeRepository;
     _eNodebRepository  = eNodebRepository;
     _cellRepository    = cellRepository;
 }
Exemplo n.º 28
0
 public College4GTestController(ICollege4GTestRepository repository,
     ICollegeRepository collegeRepository, IENodebRepository eNodebRepository, ICellRepository cellRepository)
 {
     _repository = repository;
     _collegeRepository = collegeRepository;
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
 }
Exemplo n.º 29
0
        public static IEnumerable <EvaluationOutdoorCell> QueryOutdoorCellsFromMrs(
            IENodebRepository _eNodebRepository,
            ICellRepository _cellRepository)
        {
            IEnumerable <int>    ids     = MrsStats.Select(x => x.CellId).Distinct();
            IEnumerable <ENodeb> eNodebs = _eNodebRepository.GetAllWithIds(ids);

            return(_cellRepository.Query(MrsStats, eNodebs));
        }
Exemplo n.º 30
0
        public static NearestPciCellView ConstructView(NearestPciCell stat, IENodebRepository repository,
                                                       ICellRepository cellRepository, IInfrastructureRepository infrastructureRepository)
        {
            var view   = Mapper.Map <NearestPciCell, NearestPciCellView>(stat);
            var eNodeb = repository.GetByENodebId(stat.NearestCellId);

            view.NearestENodebName = eNodeb == null ? "Undefined" : eNodeb.Name;
            return(view);
        }
Exemplo n.º 31
0
 public TownHourCqiService(ITownHourCqiRepository repository, ITownRepository townRepository,
                           IENodebRepository eNodebRepository, IHourCqiRepository usersRepository, ICellRepository cellRepository)
 {
     _repository       = repository;
     _townRepository   = townRepository;
     _eNodebRepository = eNodebRepository;
     _usersRepository  = usersRepository;
     _cellRepository   = cellRepository;
 }
Exemplo n.º 32
0
 public MroFilesImporter(ICellRepository cellRepository,
     ILteNeighborCellRepository neighborCellRepository)
 {
     RsrpTaStatList = new List<MroRsrpTa>();
     InterferenceStats = new List<PureInterferenceStat>();
     _neighborRepository
         = new NearestPciCellRepository(cellRepository.GetAllList());
     _neighborCellRepository = neighborCellRepository;
 }
 public ZteReverseNeighborQuery(ICellRepository cellRepository, IEUtranRelationZteRepository zteNeighborRepository,
                                IExternalEUtranCellFDDZteRepository zteExternalRepository, int destENodebId, byte destSectorId)
 {
     _cellRepository        = cellRepository;
     _zteExternalRepository = zteExternalRepository;
     _zteNeighborRepository = zteNeighborRepository;
     _destENodebId          = destENodebId;
     _destSectorId          = destSectorId;
 }
 public ZteNeighborQuery(ICellRepository cellRepository, IEUtranRelationZteRepository zteNeighborRepository,
                         IExternalEUtranCellFDDZteRepository zteExternalRepository, int eNodebId, byte sectorId)
 {
     _cellRepository        = cellRepository;
     _zteExternalRepository = zteExternalRepository;
     _zteNeighborRepository = zteNeighborRepository;
     _eNodebId = eNodebId;
     _sectorId = sectorId;
 }
Exemplo n.º 35
0
 private static bool DeleteCell(this ICellRepository repository, Cell cell)
 {
     if (cell == null)
     {
         return(false);
     }
     repository.Delete(cell);
     return(true);
 }
Exemplo n.º 36
0
        public static IEnumerable <Cell> QueryCollegeCells(this IInfrastructureRepository repository,
                                                           ICellRepository cellRepository, CollegeInfo info)
        {
            IEnumerable <int> ids = repository.InfrastructureInfos.Where(x =>
                                                                         x.HotspotName == info.Name && x.InfrastructureType == InfrastructureType.Cell
                                                                         ).Select(x => x.InfrastructureId).ToList();

            return(ids.Select(cellRepository.Get).Where(cell => cell != null).ToList());
        }
Exemplo n.º 37
0
 public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository,
     IBtsRepository btsRepository, ITownRepository townRepository, ICellRepository cellRepository)
 {
     _repository = repository;
     _eNodebRepository = eNodebRepository;
     _btsRepository = btsRepository;
     _townRepository = townRepository;
     _cellRepository = cellRepository;
 }
 public UpdateConsideredSaveCellInfoListService(ICellRepository repository,
                                                IENodebRepository eNodebRepository,
                                                bool updateExisted = false, bool updatePci = false)
     : base(repository)
 {
     _updateExisted    = updateExisted;
     _updatePci        = updatePci;
     _eNodebRepository = eNodebRepository;
 }
Exemplo n.º 39
0
 public NearestPciCellService(INearestPciCellRepository repository, ICellRepository cellRepository,
     IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _eNodebRepository = eNodebRepository;
     if (NearestCells == null)
         NearestCells = new Stack<NearestPciCell>();
 }
Exemplo n.º 40
0
 public InterferenceNeighborService(IInterferenceMatrixRepository repository,
                                    INearestPciCellRepository neighboRepository, IENodebRepository eNodebRepository,
                                    ICellRepository cellRepository)
 {
     _repository         = repository;
     _neighborRepository = neighboRepository;
     _eNodebRepository   = eNodebRepository;
     _cellRepository     = cellRepository;
 }
Exemplo n.º 41
0
 public MainController()
 {
     if (!MainController.initialize)
     {
         MainController.Generationsgame = new GenerationsModel(64, 64);
         repository = new GameOfLifeRepository();
         MainController.initialize = true;
     }
 }
Exemplo n.º 42
0
 public MroFilesImporter(ICellRepository cellRepository,
                         ILteNeighborCellRepository neighborCellRepository)
 {
     RsrpTaStatList    = new List <MroRsrpTa>();
     InterferenceStats = new List <PureInterferenceStat>();
     _neighborRepository
         = new NearestPciCellRepository(cellRepository.GetAllList());
     _neighborCellRepository = neighborCellRepository;
 }
Exemplo n.º 43
0
 public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository,
                        IBtsRepository btsRepository, ITownRepository townRepository, ICellRepository cellRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
     _btsRepository    = btsRepository;
     _townRepository   = townRepository;
     _cellRepository   = cellRepository;
 }
Exemplo n.º 44
0
 public RutraceController(IENodebRepository eNodebRepository,
     ICellRepository cellRepositroy,
     ITownRepository townRepository,
     IMrsCellRepository mrsRepository)
 {
     PageSize = 10;
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepositroy;
     _townRepository = townRepository;
     _mrsRepository = mrsRepository;
 }
Exemplo n.º 45
0
 public TownQueryService(ITownRepository repository, IRegionRepository regionRepository,
     IENodebRepository eNodebRepositroy, IBtsRepository btsRepository,
     ICellRepository cellRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _repository = repository;
     _regionRepository = regionRepository;
     _eNodebRepository = eNodebRepositroy;
     _btsRepository = btsRepository;
     _cellRepository = cellRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Exemplo n.º 46
0
 public CellBaseRepository(ICellRepository inputRepository)
 {
     cellBaseList.Clear();
     foreach (Cell cell in inputRepository.GetAllList())
     {
         cellBaseList.Add(new CellBase
         {
             ENodebId = cell.ENodebId,
             SectorId = cell.SectorId
         });
     }
 }
Exemplo n.º 47
0
 public static IEnumerable<CoverageAdjustment> GenerateAdjustmentList(
     this IEnumerable<CoverageStat> coveragePoints,
     ICellRepository cellRepository, IEnumerable<ENodeb> eNodebs, byte modBase = 3)
 {
     IEnumerable<IOutdoorCell> cellList = cellRepository.Query(eNodebs);
     List<CoverageAdjustment> adjustmentList =
         (from stat in coveragePoints.Where(x => x.ENodebId > 0)
          let cell = cellList.FirstOrDefault(x => x.ENodebId == stat.ENodebId
              && x.SectorId == stat.SectorId && x.Frequency == stat.Earfcn)
          where cell != null
          select stat.CalculateAdjumentFromCell(cell, modBase)).ToList();
     return adjustmentList.MergeList();
 }
Exemplo n.º 48
0
 public CollegeController(ICollegeRepository repository, ITownRepository townRepository,
     IInfrastructureRepository infrastructureRepository, IIndoorDistributioinRepository indoorDistributioinRepository,
     IENodebRepository eNodebRepository, ICellRepository cellRepository,
     IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _repository = repository;
     _townRepository = townRepository;
     _infrastructureRepository = infrastructureRepository;
     _indoorDistributioinRepository = indoorDistributioinRepository;
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Exemplo n.º 49
0
 public static Precise4GSector ConstructSector(Precise4GView view, ICellRepository repository)
 {
     var sector = Mapper.Map<Precise4GView, Precise4GSector>(view);
     var cell = repository.GetBySectorId(view.CellId, view.SectorId);
     if (cell == null)
     {
         sector.Height = -1;
     }
     else
     {
         Mapper.Map(cell, sector);
         sector.DownTilt = cell.MTilt + cell.ETilt;
     }
     return sector;
 }
Exemplo n.º 50
0
 public InterferenceMatrixService(IInterferenceMatrixRepository repository, ICellRepository cellRepository,
     IInfrastructureRepository infrastructureRepository)
 {
     _repository = repository;
     if (InterferenceMatrixStats == null)
         InterferenceMatrixStats = new Stack<InterferenceMatrixStat>();
     if (PciCellList == null)
     {
         var cells = from cell in cellRepository.GetAllList()
             join moinitor in infrastructureRepository.GetAllPreciseMonitor() on cell.Id equals
                 moinitor.InfrastructureId
             select cell;
         PciCellList = cells.MapTo<List<PciCell>>();
     }
 }
Exemplo n.º 51
0
 public static NearestPciCell ConstructCell(NeighborCellZteCsv info, ICellRepository cellRepository)
 {
     var fields = info.NeighborRelation.GetSplittedFields(':');
     var neighborCellId = fields[3].ConvertToInt(0);
     var neighborSectorId = fields[4].ConvertToByte(0);
     var neiborCell = neighborCellId > 10000 ? cellRepository.GetBySectorId(neighborCellId, neighborSectorId) : null;
     return new NearestPciCell
     {
         CellId = info.ENodebId,
         SectorId = info.SectorId,
         NearestCellId = neighborCellId,
         NearestSectorId = neighborSectorId,
         Pci = neiborCell?.Pci ?? (short) -1,
         TotalTimes = info.IntraSystemTimes + info.InterSystemTimes
     };
 }
Exemplo n.º 52
0
 public CollegeController(
     IInfrastructureRepository infrastructureRepository, 
     IIndoorDistributioinRepository indoorDistributioinRepository,
     IENodebRepository eNodebRepository, 
     ICellRepository cellRepository,
     IBtsRepository btsRepository, 
     ICdmaCellRepository cdmaCellRepository,
     IAlarmRepository alarmRepository)
 {
     _infrastructureRepository = infrastructureRepository;
     _indoorDistributioinRepository = indoorDistributioinRepository;
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
     _alarmRepository = alarmRepository;
 }
Exemplo n.º 53
0
 public ParametersController(
     ITownRepository townRepository,
     IENodebRepository eNodebRepository,
     ICellRepository cellRepository,
     IBtsRepository btsRepository,
     ICdmaCellRepository cdmaCellRepository,
     IRegionRepository regionRepository,
     IENodebPhotoRepository photoRepository)
 {
     _townRepository = townRepository;
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
     _regionRepository = regionRepository;
     _photoRepository = photoRepository;
 }
Exemplo n.º 54
0
 public static NearestPciCell ConstructCell(NeighborCellHwCsv info, ICellRepository cellRepository)
 {
     var fields = info.CellRelation.GetSplittedFields();
     var cellId = fields[13].ConvertToInt(0);
     var sectorId = fields[5].ConvertToByte(0);
     var neighborCellId = fields[11].ConvertToInt(0);
     var neighborSectorId = fields[3].ConvertToByte(0);
     var neiborCell = neighborCellId > 10000 ? cellRepository.GetBySectorId(neighborCellId, neighborSectorId) : null;
     return new NearestPciCell
     {
         CellId = cellId,
         SectorId = (neighborSectorId > 30 && sectorId < 30) ? (byte)(sectorId + 48) : sectorId,
         NearestCellId = neighborCellId,
         NearestSectorId = neighborSectorId,
         Pci = neiborCell?.Pci ?? -1,
         TotalTimes = info.TotalTimes
     };
 }
Exemplo n.º 55
0
 public SectorListController(IENodebRepository eNodebRepository, ICellRepository cellRepository)
 {
     this.eNodebRepository = eNodebRepository;
     this.cellRepository = cellRepository;
 }
Exemplo n.º 56
0
 public static IEnumerable<EvaluationOutdoorCell> QueryOutdoorCellsFromMrs(
     IENodebRepository _eNodebRepository, 
     ICellRepository _cellRepository)
 {
     IEnumerable<int> ids = MrsStats.Select(x => x.CellId).Distinct();
     IEnumerable<ENodeb> eNodebs = _eNodebRepository.GetAllWithIds(ids);
     return _cellRepository.Query(MrsStats, eNodebs);
 }
Exemplo n.º 57
0
 public void ImportCellList(IENodebRepository eNodebRepository, ICellRepository cellRepository,
     IGeoPoint<double> southWest, IGeoPoint<double> northEast)
 {
     IEnumerable<ENodeb> eNodebs = eNodebRepository.GetAll().FilterGeoPointList(
         southWest.Longtitute - GeoMath.BaiduLongtituteOffset,
         southWest.Lattitute - GeoMath.BaiduLattituteOffset,
         northEast.Longtitute - GeoMath.BaiduLongtituteOffset,
         northEast.Lattitute - GeoMath.BaiduLattituteOffset).ToList();
     ImportCellList(cellRepository.Query(eNodebs));
 }
Exemplo n.º 58
0
 public CoverageController(IENodebRepository eNodebRepository,
     ICellRepository cellRepositroy)
 {
     this.eNodebRepository = eNodebRepository;
     cellRepository = cellRepositroy;
 }
 public int SaveCells(IEnumerable<CollegeCellExcel> cellExcels, ICellRepository cellRepository)
 {
     int count = 0;
     foreach (CollegeCellExcel excel in cellExcels)
     {
         Cell cell =
             cellRepository.GetAll().FirstOrDefault(
                 x => x.ENodebId == excel.ENodebId && x.SectorId == excel.SectorId);
         if (cell==null) continue;
         InfrastructureInfo infrastructure = _repository.FirstOrDefault(x =>
             x.HotspotName == excel.CollegeName && x.HotspotType == HotspotType.College
             && x.InfrastructureType == InfrastructureType.Cell && x.InfrastructureId == cell.Id);
         if (infrastructure == null)
         {
             infrastructure = new InfrastructureInfo
             {
                 HotspotName = excel.CollegeName,
                 HotspotType = HotspotType.College,
                 InfrastructureType = InfrastructureType.Cell,
                 InfrastructureId = cell.Id
             };
             _repository.Insert(infrastructure);
         }
         count++;
     }
     return count;
 }
Exemplo n.º 60
0
 public SeedService(ICellRepository cellRepository, IGnomeRepository gnomeRepository, IGnomeActionRepository gnomeActionRepository)
 {
     _cellRepository = cellRepository;
     _gnomeRepository = gnomeRepository;
     _gnomeActionRepository = gnomeActionRepository;
 }