public void TestUpdateTotalInterference_rsOneElement_trafficEmpty()
 {
     _rsInterference = new List<MeasurableCell>();
     MeasurableCell mcell1 = new MeasurableCell();
     mcell1.ReceivedRsrp = -12.3;
     _rsInterference.Add(mcell1);
     _trafficInterference = new List<MeasurableCell>();
     result.UpdateTotalInterference(0.1, _rsInterference, _trafficInterference);
     Assert.AreEqual(result.TotalInterferencePower, -12.3);
 }
 public void GenerateMeasurableCellList(ComparableCell[] compCells, MeasurePoint point)
 {
     CellList.Clear();
     int count = Math.Min(compCells.Length, _maxMeasurableCells);
     for (int i = 0; i < count; i++)
     {
         MeasurableCell c = new MeasurableCell(compCells[i], point);
         c.CalculateRsrp();
         CellList.Add(c);
     }
 }
Esempio n. 3
0
        public void GenerateMeasurableCellList(ComparableCell[] compCells, MeasurePoint point)
        {
            CellList.Clear();
            int count = Math.Min(compCells.Length, _maxMeasurableCells);

            for (int i = 0; i < count; i++)
            {
                MeasurableCell c = new MeasurableCell(compCells[i], point);
                c.CalculateRsrp();
                CellList.Add(c);
            }
        }
Esempio n. 4
0
 public static void MockMeasurePointProperties(this MeasurePoint point,
     double nominalSinr, double strongestCellRsrp, double strongestInterferenceRsrp,
     double totalInterferencePower)
 {
     Mock<IMeasurePointResult> mockResult = new Mock<IMeasurePointResult>();
     mockResult.Setup(x => x.NominalSinr).Returns(nominalSinr);
     MeasurableCell signal = new MeasurableCell();
     signal.ReceivedRsrp = strongestCellRsrp;
     mockResult.Setup(x => x.StrongestCell).Returns(signal);
     MeasurableCell interference = new MeasurableCell();
     interference.ReceivedRsrp = strongestInterferenceRsrp;
     mockResult.Setup(x => x.StrongestInterference).Returns(interference);
     mockResult.Setup(x => x.TotalInterferencePower).Returns(totalInterferencePower);
     point.Result = mockResult.Object;
 }
        public void TestStrongestCell_OneElement()
        {
            MeasurableCell mcell = new MeasurableCell();
            mcell.ReceivedRsrp = 1.2345;
            cellList.Add(mcell);
            Assert.AreEqual(cellList.Count, 1);

            MeasurableCellRepository repository = new MeasurableCellRepository
            {
                CellList = cellList
            };
            result.StrongestCell = repository.CalculateStrongestCell();
            Assert.IsNotNull(result.StrongestCell);
            Assert.AreEqual(result.StrongestCell.ReceivedRsrp, 1.2345);
        }
Esempio n. 6
0
        private static CoverageAdjustment CalculateAdjumentFromCell(this CoverageStat coveragePoint,
            IOutdoorCell cell, byte modBase = 3)
        {
            MeasurableCell mCell = new MeasurableCell(coveragePoint, cell, modBase);
            mCell.CalculateRsrp();
            CoverageAdjustment adjustment = new CoverageAdjustment
            {
                ENodebId = coveragePoint.ENodebId,
                SectorId = coveragePoint.SectorId,
                Frequency = coveragePoint.Earfcn
            };

            adjustment.SetAdjustFactor(mCell.Cell.AzimuthAngle, mCell.ReceivedRsrp - coveragePoint.Rsrp);
            return adjustment;
        }
 public void TestMeasurableCellConnection_2_1G_Angle165()
 {
     _mCell = new MeasurableCell(_point, _cell);
     Assert.IsNotNull(_mCell);
     Assert.AreEqual(_mCell.CellName, "Cell-1");
     Assert.AreEqual(_mCell.PciModx, 1);
     Assert.AreEqual(_mCell.DistanceInMeter, 1572.533733, Eps);
     Assert.AreEqual(_mCell.Cell.AzimuthAngle, 165, Eps);
     Assert.AreEqual(_mCell.TiltAngle, 4.907073, Eps);
     Assert.AreEqual(_mCell.Budget.AntennaGain, 17.5);
     Assert.AreEqual(_mCell.Budget.TransmitPower, 15.2);
     Assert.AreEqual(_mCell.Budget.Model.Earfcn, 100);
     Assert.AreEqual(_mCell.Budget.Model.UrbanType, UrbanType.Large);
     _mCell.CalculateRsrp();
     Assert.AreEqual(_mCell.ReceivedRsrp, -145.286797, Eps);
 }
        public void TestStrongestCell_TwoElements()
        {
            MeasurableCell mcell1 = new MeasurableCell();
            MeasurableCell mcell2 = new MeasurableCell();
            mcell1.ReceivedRsrp = 1.2345;
            mcell2.ReceivedRsrp = 2.2345;
            cellList.Add(mcell1);
            cellList.Add(mcell2);

            MeasurableCellRepository repository = new MeasurableCellRepository
            {
                CellList = cellList
            };
            result.StrongestCell = repository.CalculateStrongestCell();
            Assert.AreSame(result.StrongestCell, mcell2);
            Assert.AreEqual(result.StrongestCell.ReceivedRsrp, 2.2345);
        }
 public CalculateSameModTestOneElementSameStrongestCell()
 {
     MeasurableCell mcell = new MeasurableCell();
     CellList = new List<MeasurableCell> { mcell };
     Result.StrongestCell = mcell;
 }
 public UpdateSameModInterferenceTestOneElementInCellList()
 {
     MeasurableCell mcell = new MeasurableCell();
     CellList = new List<MeasurableCell> {mcell};
     Result.StrongestCell = mcell;
 }
Esempio n. 11
0
 public void UpdateRsrpPower(MeasurableCell mCell)
 {
     ReceivePower += mCell.ReceivedRsrp.DbToPower();
 }
 private void TestInitialize(double distance)
 {
     point2 = new StubGeoPoint(point, distance, 45);
     ocell = new StubOutdoorCell(point2, 225);
     ocell.Height = 40;
     ocell.ETilt = 4;
     ocell.MTilt = 1;
     ccell = new ComparableCell(point, ocell);
     cell = new MeasurableCell(ccell, point, budget);
 }
 private void TestInitialize(double distance)
 {
     _point2 = new StubGeoPoint(point, distance, 45);
     _ocell = new StubOutdoorCell(_point2, 195) {Height = 40, ETilt = 4, MTilt = 1};
     _ccell = new ComparableCell(point, _ocell);
     _cell = new MeasurableCell(_ccell, point, budget);
 }
        private void AddDifferentModInterference()
        {
            MeasurableCell diffModInterference = new MeasurableCell();
            diffModInterference.Cell.PciModx = 1;
            diffModInterference.ReceivedRsrp = -12.3;

            cellList.Add(diffModInterference);
        }
Esempio n. 15
0
 public MeasurePlanCell(MeasurableCell cell)
 {
     Cell         = cell.Cell.Cell;
     PciModx      = cell.Cell.PciModx;
     ReceivePower = cell.ReceivedRsrp.DbToPower();
 }
Esempio n. 16
0
 public MeasurePlanCell(MeasurableCell cell)
 {
     Cell = cell.Cell.Cell;
     PciModx = cell.Cell.PciModx;
     ReceivePower = cell.ReceivedRsrp.DbToPower();
 }
Esempio n. 17
0
 public CalculateSameModTestOneElementNullStrongestCell()
 {
     Result.StrongestCell = null;
     MeasurableCell mcell = new MeasurableCell();
     CellList = new List<MeasurableCell> {mcell};
 }
 private MeasurableCell AddSameModInterference(double strength = -12.3)
 {
     MeasurableCell sameModInterference = new MeasurableCell();
     sameModInterference.Cell.PciModx = 0;
     sameModInterference.ReceivedRsrp = strength;
     cellList.Add(sameModInterference);
     return sameModInterference;
 }
Esempio n. 19
0
 public void UpdateRsrpPower(MeasurableCell mCell)
 {
     ReceivePower += mCell.ReceivedRsrp.DbToPower();
 }
 public CalculateDifferentModTestOneElementSameStrongestCell(SfMeasurePointResult result,
     List<MeasurableCell> cellList)
 {
     MeasurableCell mcell = new MeasurableCell();
     cellList.Add(mcell);
     result.StrongestCell = mcell;
 }