public InterferenceMatrixStat QueryStat(int eNodebId, short pci, short neighborPci, DateTime time)
        {
            var statList = _mongoRepository.GetList(eNodebId, pci, neighborPci, time);

            if (!statList.Any())
            {
                return(null);
            }
            return(new InterferenceMatrixStat
            {
                ENodebId = eNodebId,
                DestPci = neighborPci,
                InterferenceLevel = statList.Sum(x => x.InterfLevel ?? 0),
                Mod3Interferences = statList.Sum(x => x.Mod3Count ?? 0),
                Mod6Interferences = statList.Sum(x => x.Mod6Count ?? 0),
                OverInterferences10Db = statList.Sum(x => x.Over10db ?? 0),
                OverInterferences6Db = statList.Sum(x => x.Over6db ?? 0),
                RecordTime = time
            });
        }
Esempio n. 2
0
        public void Test_GetList(int eNodebId, short pci, short neighborPci, string dateString)
        {
            var result = _repository.GetList(eNodebId, pci, neighborPci, DateTime.Parse(dateString));

            Assert.IsNotNull(result);
        }