public void Test_GetBySectorId()
        {
            var result = _repository.GetRecent(502776, 48);

            Assert.IsNotNull(result);
            Assert.AreEqual(result.iDate, "20160408");
        }
        public CellHuaweiMongo Query()
        {
            var zteCell  = _zteCellRepository.GetRecent(_eNodebId, _sectorId);
            var zteMeas  = _zteMeasRepository.GetRecent(_eNodebId, _sectorId);
            var ztePrach = _ztePrachRepository.GetRecent(_eNodebId, _sectorId);

            return(new CellHuaweiMongo
            {
                PhyCellId = zteCell?.pci ?? 0,
                CellSpecificOffset = zteCell?.ocs ?? 15,
                QoffsetFreq = zteMeas?.eutranMeasParas_offsetFreq ?? 15,
                RootSequenceIdx = ztePrach?.rootSequenceIndex ?? -1
            });
        }
        public List <CellInterFreqHoView> Query()
        {
            var view = new CellInterFreqHoView
            {
                Earfcn = 0
            };

            var zteCellGroup = _zteCellGroupRepository.GetRecent(_eNodebId, _sectorId);
            int configId, configIdA1, configIdA2;

            if (zteCellGroup != null)
            {
                configId   = int.Parse(zteCellGroup.interFHOMeasCfg.Split(',')[0]);
                configIdA1 = int.Parse(zteCellGroup.closedInterFMeasCfg.Split(',')[0]);
                configIdA2 = int.Parse(zteCellGroup.openInterFMeasCfg.Split(',')[0]);
            }
            else
            {
                var zteGroup = _zteGroupRepository.GetRecent(_eNodebId);
                configId   = zteGroup == null ? 70 : int.Parse(zteGroup.interFHOMeasCfg.Split(',')[0]);
                configIdA1 = zteGroup == null ? 10 : int.Parse(zteGroup.closedInterFMeasCfg.Split(',')[0]);
                configIdA2 = zteGroup == null ? 20 : int.Parse(zteGroup.openInterFMeasCfg.Split(',')[0]);
            }
            var measurement = _zteMeasurementRepository.GetRecent(_eNodebId, configId);

            if (measurement != null)
            {
                view.InterFreqHoEventType = measurement.eventId;
                view.InterFreqEventA3     = Mapper.Map <UeEUtranMeasurementZte, InterFreqEventA3>(measurement);
                view.InterFreqEventA4     = Mapper.Map <UeEUtranMeasurementZte, InterFreqEventA4>(measurement);
                view.InterFreqEventA5     = Mapper.Map <UeEUtranMeasurementZte, InterFreqEventA5>(measurement);
            }
            measurement = _zteMeasurementRepository.GetRecent(_eNodebId, configIdA1);
            if (measurement != null)
            {
                view.InterFreqEventA1 = Mapper.Map <UeEUtranMeasurementZte, InterFreqEventA1>(measurement);
            }
            measurement = _zteMeasurementRepository.GetRecent(_eNodebId, configIdA2);
            if (measurement != null)
            {
                view.InterFreqEventA2 = Mapper.Map <UeEUtranMeasurementZte, InterFreqEventA2>(measurement);
            }

            return(new List <CellInterFreqHoView>
            {
                view
            });
        }
Пример #4
0
        public CellIntraFreqHoView Query()
        {
            var zteCellGroup = _zteCellGroupRepository.GetRecent(_eNodebId, _sectorId);
            int configId;

            if (zteCellGroup != null)
            {
                configId = int.Parse(zteCellGroup.intraFHOMeasCfg.Split(',')[0]);
            }
            else
            {
                var zteGroup = _zteGroupRepository.GetRecent(_eNodebId);
                configId = zteGroup == null ? 50 : int.Parse(zteGroup.intraFHOMeasCfg.Split(',')[0]);
            }

            var ztePara = _zteMeasurementRepository.GetRecent(_eNodebId, configId);

            return(ztePara == null ? null : Mapper.Map <UeEUtranMeasurementZte, CellIntraFreqHoView>(ztePara));
        }