public CollegeCellsController(IInfrastructureRepository repository, ICellRepository cellRepository,
     IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _eNodebRepository = eNodebRepository;
 }
 public CollegeStatService(ICollegeRepository repository, IInfrastructureRepository infrastructureRepository,
     ICollegeYearRepository yearRepository)
 {
     _repository = repository;
     _infrastructureRepository = infrastructureRepository;
     _yearRepository = yearRepository;
 }
 public CollegeCdmaCellViewService(IInfrastructureRepository repository, ICdmaCellRepository cellRepository,
     IBtsRepository btsRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
 }
Beispiel #4
0
 public CollegeCellsService(IInfrastructureRepository repository, ICellRepository cellRepository,
                            IENodebRepository eNodebRepository)
 {
     _repository       = repository;
     _cellRepository   = cellRepository;
     _eNodebRepository = eNodebRepository;
 }
 public CollegeCdmaCellsService(IInfrastructureRepository repository, ICdmaCellRepository cellRepository,
                                IBtsRepository btsRepository)
 {
     _repository     = repository;
     _cellRepository = cellRepository;
     _btsRepository  = btsRepository;
 }
Beispiel #6
0
 public CollegeENodebService(IInfrastructureRepository repository,
                             IENodebRepository eNodebRepository, IAlarmRepository alarmRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
     _alarmRepository  = alarmRepository;
 }
Beispiel #7
0
 public TownBoundaryService(ITownRepository repository, ITownBoundaryRepository boundaryRepository,
                            IInfrastructureRepository infrastructureRepository)
 {
     _repository               = repository;
     _boundaryRepository       = boundaryRepository;
     _infrastructureRepository = infrastructureRepository;
 }
 public CollegeCellViewService(IInfrastructureRepository repository, ICellRepository cellRepoistory,
     IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _cellRepository = cellRepoistory;
     _eNodebRepository = eNodebRepository;
 }
 public CoveragePointsController(IInfrastructureRepository repository,
     ICellRepository cellRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Beispiel #10
0
 public CollegeStat(ICollegeRepository repository, CollegeInfo info, CollegeYearInfo yearInfo,
                    IInfrastructureRepository infrastructureRepository, IHotSpotENodebRepository eNodebRepository,
                    IHotSpotCellRepository cellRepository, IHotSpotBtsRepository btsRepository,
                    IHotSpotCdmaCellRepository cdmaCellRepository)
 {
     Name = info.Name;
     ExpectedSubscribers = yearInfo?.ExpectedSubscribers ?? 0;
     Area = repository.GetRegion(info.Id)?.Area ?? 0;
     Id   = info.Id;
     UpdateStats(infrastructureRepository);
     TotalLteENodebs =
         eNodebRepository.Count(
             x =>
             x.HotspotName == Name && x.HotspotType == HotspotType.College &&
             x.InfrastructureType == InfrastructureType.ENodeb);
     TotalLteCells =
         cellRepository.Count(
             x =>
             x.HotspotName == Name && x.HotspotType == HotspotType.College &&
             x.InfrastructureType == InfrastructureType.Cell);
     TotalCdmaBts =
         btsRepository.Count(
             x =>
             x.HotspotName == Name && x.HotspotType == HotspotType.College &&
             x.InfrastructureType == InfrastructureType.CdmaBts);
     TotalCdmaCells =
         cdmaCellRepository.Count(
             x =>
             x.HotspotName == Name && x.HotspotType == HotspotType.College &&
             x.InfrastructureType == InfrastructureType.CdmaCell);
 }
 public CollegeAlarmService(IInfrastructureRepository infrastructureRepository,
                            IENodebRepository eNodebRepository, IAlarmRepository alarmRepository)
 {
     _infrastructureRepository = infrastructureRepository;
     _eNodebRepository         = eNodebRepository;
     _alarmRepository          = alarmRepository;
 }
Beispiel #12
0
 public CollegeAlarmService(IInfrastructureRepository infrastructureRepository,
     IENodebRepository eNodebRepository, IAlarmRepository alarmRepository)
 {
     _infrastructureRepository = infrastructureRepository;
     _eNodebRepository = eNodebRepository;
     _alarmRepository = alarmRepository;
 }
Beispiel #13
0
 public CollegePreciseService(IInfrastructureRepository repository, ICellRepository cellRepository,
                              IENodebRepository eNodebRepository, IPreciseCoverage4GRepository kpiRepository)
 {
     _repository       = repository;
     _cellRepository   = cellRepository;
     _eNodebRepository = eNodebRepository;
     _kpiRepository    = kpiRepository;
 }
 public CollegeAlarmController(ICollegeRepository repository, IInfrastructureRepository infrastructureRepository,
     IAlarmRepository alarmRepository, IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _infrastructureRepository = infrastructureRepository;
     _alarmRepository = alarmRepository;
     _eNodebRepository = eNodebRepository;
 }
Beispiel #15
0
        public static IEnumerable <CdmaCell> QueryCollegeCdmaCells(this IInfrastructureRepository repository,
                                                                   ICdmaCellRepository cdmaCellRepository, CollegeInfo info)
        {
            IEnumerable <int> ids = repository.InfrastructureInfos.Where(x =>
                                                                         x.HotspotName == info.Name && x.InfrastructureType == InfrastructureType.CdmaCell
                                                                         ).Select(x => x.InfrastructureId).ToList();

            return(ids.Select(cdmaCellRepository.Get).Where(cell => cell != null).ToList());
        }
Beispiel #16
0
 private void UpdateStats(IInfrastructureRepository repository)
 {
     TotalLteIndoors = repository.Count(x => x.HotspotName == Name &&
                                        x.HotspotType == HotspotType.College &&
                                        x.InfrastructureType == InfrastructureType.LteIndoor);
     TotalCdmaIndoors = repository.Count(x => x.HotspotName == Name &&
                                         x.HotspotType == HotspotType.College &&
                                         x.InfrastructureType == InfrastructureType.CdmaIndoor);
 }
Beispiel #17
0
        public static IEnumerable <CdmaBts> QueryCollegeBtss(this IInfrastructureRepository repository,
                                                             IBtsRepository btsRepository, CollegeInfo info)
        {
            IEnumerable <int> ids = repository.InfrastructureInfos.Where(x =>
                                                                         x.HotspotName == info.Name && x.InfrastructureType == InfrastructureType.CdmaBts
                                                                         ).Select(x => x.InfrastructureId).ToList();

            return(ids.Select(btsRepository.Get).Where(bts => bts != null).ToList());
        }
Beispiel #18
0
        public static IEnumerable <ENodeb> QueryCollegeENodebs(this IInfrastructureRepository repository,
                                                               IENodebRepository eNodebRepository, CollegeInfo info)
        {
            IEnumerable <int> ids = repository.InfrastructureInfos.Where(x =>
                                                                         x.HotspotName == info.Name && x.InfrastructureType == InfrastructureType.ENodeb
                                                                         ).Select(x => x.InfrastructureId).ToList();

            return(ids.Select(i => eNodebRepository.GetAll().FirstOrDefault(x => x.Id == i)
                              ).Where(eNodeb => eNodeb != null).ToList());
        }
Beispiel #19
0
 public CollegeStat(ICollegeRepository repository, CollegeInfo info, CollegeYearInfo yearInfo,
     IInfrastructureRepository infrastructureRepository)
 {
     CollegeRegion region = repository.GetRegion(info.Id);
     Name = info.Name;
     ExpectedSubscribers = yearInfo?.ExpectedSubscribers ?? 0;
     Area = region?.Area??0;
     Id = info.Id;
     UpdateStats(infrastructureRepository);
 }
Beispiel #20
0
 public CollegeStat(ICollegeRepository repository, CollegeInfo info, 
     IInfrastructureRepository infrastructureRepository)
 {
     CollegeRegion region = repository.GetRegion(info.Id);
     Name = info.Name;
     ExpectedSubscribers = info.ExpectedSubscribers;
     Area = region.Area;
     Id = region.AreaId;
     UpdateStats(infrastructureRepository);
 }
Beispiel #21
0
        public CollegeStat(ICollegeRepository repository, CollegeInfo info,
                           IInfrastructureRepository infrastructureRepository)
        {
            CollegeRegion region = repository.GetRegion(info.Id);

            Name = info.Name;
            ExpectedSubscribers = info.ExpectedSubscribers;
            Area = region.Area;
            Id   = region.AreaId;
            UpdateStats(infrastructureRepository);
        }
Beispiel #22
0
        public static IEnumerable <IndoorDistribution> QueryCollegeCdmaDistributions(
            this IInfrastructureRepository repository,
            IIndoorDistributioinRepository indoorRepository, CollegeInfo info)
        {
            IEnumerable <int> ids = repository.InfrastructureInfos.Where(x =>
                                                                         x.HotspotName == info.Name && x.InfrastructureType == InfrastructureType.CdmaIndoor
                                                                         ).Select(x => x.InfrastructureId).ToList();

            return(ids.Select(i => indoorRepository.IndoorDistributions.FirstOrDefault(x => x.Id == i)
                              ).Where(distribution => distribution != null).ToList());
        }
Beispiel #23
0
 public CollegeStatService(ICollegeRepository repository, IInfrastructureRepository infrastructureRepository,
                           ICollegeYearRepository yearRepository, IHotSpotENodebRepository eNodebRepository, IHotSpotCellRepository cellRepository,
                           IHotSpotBtsRepository btsRepository, IHotSpotCdmaCellRepository cdmaCellRepository)
 {
     _repository = repository;
     _infrastructureRepository = infrastructureRepository;
     _yearRepository           = yearRepository;
     _eNodebRepository         = eNodebRepository;
     _cellRepository           = cellRepository;
     _btsRepository            = btsRepository;
     _cdmaCellRepository       = cdmaCellRepository;
 }
Beispiel #24
0
 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 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;
 }
 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;
 }
 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>>();
     }
 }
Beispiel #28
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;
 }
Beispiel #29
0
 private void UpdateStats(IInfrastructureRepository repository)
 {
     TotalLteENodebs = repository.Count(x => x.HotspotName == Name
                                             && x.HotspotType == HotspotType.College
                                             && x.InfrastructureType == InfrastructureType.ENodeb);
     TotalLteCells = repository.Count(x => x.HotspotName == Name
                                           && x.HotspotType == HotspotType.College
                                           && x.InfrastructureType == InfrastructureType.Cell);
     TotalCdmaBts = repository.Count(x => x.HotspotName == Name
                                          && x.HotspotType == HotspotType.College
                                          && x.InfrastructureType == InfrastructureType.CdmaBts);
     TotalCdmaCells = repository.Count(x => x.HotspotName == Name
                                            && x.HotspotType == HotspotType.College
                                            && x.InfrastructureType == InfrastructureType.CdmaCell);
     TotalLteIndoors = repository.Count(x => x.HotspotName == Name
                                             && x.HotspotType == HotspotType.College
                                             && x.InfrastructureType == InfrastructureType.LteIndoor);
     TotalCdmaIndoors = repository.Count(x => x.HotspotName == Name
                                              && x.HotspotType == HotspotType.College
                                              && x.InfrastructureType == InfrastructureType.CdmaIndoor);
 }
 public InterferenceMatrixService(IInterferenceMatrixRepository repository, ICellRepository cellRepository,
                                  IInfrastructureRepository infrastructureRepository, IInterferenceMongoRepository mongoRepository,
                                  ICellStatMysqlRepository statRepository, ICellStasticRepository mongoStatRepository)
 {
     _repository          = repository;
     _mongoRepository     = mongoRepository;
     _statRepository      = statRepository;
     _mongoStatRepository = mongoStatRepository;
     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> >();
     }
 }
 public HotSpotService(IInfrastructureRepository repository)
 {
     _repository = repository;
 }
 public CollegeCdmaCellsController(IInfrastructureRepository repository, ICdmaCellRepository cellRepository)
 {
     _repository     = repository;
     _cellRepository = cellRepository;
 }
 public NeighborMonitorService(IInfrastructureRepository repository, ICellRepository cellRepository)
 {
     _repository     = repository;
     _cellRepository = cellRepository;
 }
Beispiel #34
0
 public RebeldService(ILog logger, IInfrastructureRepository <Rebeld> rebeldRepository)
 {
     this.rebeldRepository = rebeldRepository;
     this.logger           = logger;
 }
 public CollegeBtssService(IInfrastructureRepository repository, IBtsRepository btsRepository, ITownRepository townRepository)
 {
     _repository = repository;
     _btsRepository = btsRepository;
     _townRepository = townRepository;
 }
 public HotSpotService(IInfrastructureRepository repository)
 {
     _repository = repository;
 }
 public CollegeENodebController(IInfrastructureRepository repository, IENodebRepository eNodebRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
 }
 public CollegeCdmaDistributionsController(IInfrastructureRepository repository,
     IIndoorDistributioinRepository indoorRepository)
 {
     _repository = repository;
     _indoorRepository = indoorRepository;
 }
 public CollegeENodebController(IInfrastructureRepository repository, IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _eNodebRepository = eNodebRepository;
 }
Beispiel #40
0
 public CollegeBtssService(IInfrastructureRepository repository, IBtsRepository btsRepository)
 {
     _repository    = repository;
     _btsRepository = btsRepository;
 }
 public CollegeStatService(ICollegeRepository repository, IInfrastructureRepository infrastructureRepository)
 {
     _repository = repository;
     _infrastructureRepository = infrastructureRepository;
 }
 public SaveCollegeInfrastructureService(IInfrastructureRepository repository)
 {
     _repository = repository;
 }
 public CollegePreciseService(IInfrastructureRepository repository, ICellRepository cellRepository,
     IENodebRepository eNodebRepository, IPreciseCoverage4GRepository kpiRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _eNodebRepository = eNodebRepository;
     _kpiRepository = kpiRepository;
 }
 public CollegeBtssController(IInfrastructureRepository repository, IBtsRepository btsRepository)
 {
     _repository    = repository;
     _btsRepository = btsRepository;
 }
 public CollegeCdmaCellsController(IInfrastructureRepository repository, ICdmaCellRepository cellRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
 }
 public CollegeCdmaDistributionService(IInfrastructureRepository repository,
     IIndoorDistributionRepository indoorRepository)
 {
     _repository = repository;
     _indoorRepository = indoorRepository;
 }
 public CollegeBtssController(IInfrastructureRepository repository, IBtsRepository btsRepository)
 {
     _repository = repository;
     _btsRepository = btsRepository;
 }
 public CollegeENodebService(IInfrastructureRepository repository, IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _eNodebRepository = eNodebRepository;
 }
Beispiel #49
0
 public HotSpotService(IInfrastructureRepository repository, ITownBoundaryRepository boundaryRepository)
 {
     _repository         = repository;
     _boundaryRepository = boundaryRepository;
 }
 public CollegeCdmaDistributionService(IInfrastructureRepository repository,
                                       IIndoorDistributionRepository indoorRepository)
 {
     _repository       = repository;
     _indoorRepository = indoorRepository;
 }
 public NeighborMonitorService(IInfrastructureRepository repository, ICellRepository cellRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
 }
 public SaveCollegeInfrastructureService(IInfrastructureRepository repository)
 {
     _repository = repository;
 }
 public static DtRecordPoint UpdateCollegeCoverageList(IInfrastructureRepository repository,
     ICellRepository cellRepository, ICdmaCellRepository cdmaCellRepository, string name, double range)
 {
     FileRecords2GList = repository.GetCollege2GRecords(cdmaCellRepository, name, range);
     FileRecords3GList = repository.GetCollege3GRecords(cdmaCellRepository, name, range);
     FileRecords4GList = repository.GetCollege4GRecords(cellRepository, name, range);
     return new DtRecordPoint
     {
         Lon = FileRecords4GList.Average(x => x.BaiduLongtitute),
         Lat = FileRecords4GList.Average(x => x.BaiduLattitute)
     };
 }
 public CollegeCdmaDistributionsController(IInfrastructureRepository repository,
                                           IIndoorDistributioinRepository indoorRepository)
 {
     _repository       = repository;
     _indoorRepository = indoorRepository;
 }
Beispiel #55
0
 public InfrastructureService(IInfrastructureRepository repository)
 {
     this.repository = repository;
 }
 public CollegeStatController(ICollegeRepository repository, IInfrastructureRepository infrastructureRepository)
 {
     _repository = repository;
     _infrastructureRepository = infrastructureRepository;
 }
 public CustomErrorHandlerAttribute(IInfrastructureRepository repository)
 {
     _repository = repository;
 }