Пример #1
0
 public void InitialProperty(int blockIndex)
 {
     this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_BestServerRSRP = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_DLBestServerLinkLoss = this.m_DataManager.DLBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix;
     this.m_NeedCalRsrq = this.m_DataManager.NeedCalRSRQ;
 }
Пример #2
0
 private void FindCoverPoints(ValueMatrixShort onepolygonvalues, Transceiver cell, List<GeoXYPoint> points, LTECellCalcInfo onecellinfo)
 {
     if (onecellinfo.Tanceiver == cell)
     {
         this.FindCellAllCalcPoints(onepolygonvalues, cell, points, onecellinfo);
     }
 }
Пример #3
0
 public void SetMatrixInCase(int blockIndex)
 {
     this.m_BestServerCellID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_DLSameInterfere = this.m_DataManager.DLSameInterfere.MatrixBlockArr[blockIndex].IntMatrix;
     this.m_Tranceiverlist = this.m_DataManager.BlockCellInfoArr[blockIndex].CalCellColl.GetTranceiverList();
     this.m_Tranceiverlist.Sort();
 }
Пример #4
0
        [TestInitialize]  //初始化测试用例
        public void MyTestInitialize()
        {
            m_Index = 0;
            m_Name = "GSMCodingScheme";
            m_Context = new Context();
            m_Case = new CodingSchemeCase();

            IACell cell = Mock.CreatGsmCell();
            group = Mock.MockGSMPredicGroup();
            TrueFalseMatrix tFMatrix = new TrueFalseMatrix(4, 4, 0, 200, 50, true);

            LinkLossAssist.Init();

            IProjectManager projectMgr = ServiceHelper.Lookup<MockIProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            string absolutePath1 = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, GSMPredictionStudyType.BestServer.ToString());
            string relativePath1 = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, GSMPredictionStudyType.BestServer.ToString());
            ShortResultStruct srs1 = ShortResultStruct.DefaultMax;
            gsmBestServerID = ValueMatrixAssist.GenerateByTrueFalseMatrix(tFMatrix, absolutePath1, relativePath1, srs1);
            gsmBestServerID[0] = cell.ID;

            string absolutePath2 = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, GSMPredictionStudyType.DLServiceCIR.ToString());
            string relativePath2 = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, GSMPredictionStudyType.DLServiceCIR.ToString());
            ShortResultStruct srs2 = ShortResultStruct.DefaultMin;
            ValueMatrixShort gsmDLServiceCIR = ValueMatrixAssist.GenerateByTrueFalseMatrix(tFMatrix, absolutePath2, relativePath2, srs2);
            gsmDLServiceCIR[0] = 26 * 100;

                        
            //ITrafficForApplication trafficForApplication=new MockITrafficForApplication();

            m_Context.Add(ContextKeys.Group, group);
            m_Context.Add(ContextKeys.TFMatrix, tFMatrix);
            m_Context.Add(ContextKeys.ApplicationContext, ProjectSingleton.CurrentProject.AppContext);
            m_Context.Add(ContextKeys.GSMBestServerID, gsmBestServerID);
            m_Context.Add(ContextKeys.GSMDLServiceCIR, gsmDLServiceCIR);
        }
Пример #5
0
        public void MyTestInitialize()
        {
            m_Index = 0;
            m_Name = "HSPDSCHRSCP";
            m_Case = new HSPDSCHRSCPCase();
            m_Context = new Context();

            tfMatrix = new TrueFalseMatrix(4, 4, 0.0, 200, 50, true);
            tdGroup = MockGroupAndCell.MockTDPredicGroup();
            cell = MockGroupAndCell.CreateTDCell();

            InitTerminal(tdGroup);

            LinkLossAssist.Init();
            IProjectManager projectMgr = ServiceHelper.Lookup<IProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            string path = projectMgr.CurrentProjectLossPath;
            string absolutePath = ResultFilePath.CreateFilePath(path, tdGroup.Name, tdGroup.Region.Name, TDPredictionStudyType.Best_Server.ToString());
            string relativePath = ResultFilePath.CreateRelativePath(tdGroup.Name, tdGroup.Region.Name, TDPredictionStudyType.Best_Server.ToString());
            BestServerCellID = ValueMatrixAssist.GenerateByTrueFalseMatrix(tfMatrix, absolutePath, relativePath, ShortResultStruct.DefaultMax);
            BestServerCellID[0] = cell.ID;

            m_Context.Add(ContextKeys.CurrentCalcCell, cell);
            m_Context.Add(ContextKeys.Group, tdGroup);
            m_Context.Add(ContextKeys.TDBestServerCellID, BestServerCellID);
            m_Context.Add(ContextKeys.TFMatrix, tfMatrix);
            m_Context.Add(ContextKeys.CellList, InitCellList(cell));
            m_Context.Add(ContextKeys.ApplicationContext, ProjectSingleton.CurrentProject.AppContext);
        }
Пример #6
0
 public void InitialProperty(int blockIndex)
 {
     this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_BestServerRSRP = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_ULBestServerLinkLoss = this.m_DataManager.ULBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix;
     this.m_DLInterfMatrix = this.m_DataManager.InterferenceForUL.MatrixBlockArr[blockIndex].IntMatrix;
 }
Пример #7
0
 public void SetMatrixInCase(int blockIndex)
 {
     this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_InterferenceForUL = this.m_DataManager.InterferenceForUL.MatrixBlockArr[blockIndex].IntMatrix;
     this.m_Tranceiverlist = this.m_DataManager.BlockTransceiverExCollArr[blockIndex].TransceiverExColl.GetTranceiverList();
     //this.m_Tranceiverlist.Sort();
 }
Пример #8
0
        public void SetMatrixInCase(int index)
        {
            m_LTEBestServerID = m_DataManager.LTEBestServerID.MatrixBlockArr[index].ShortMatrix;
            //this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[index].ShortMatrix;
            this.m_InterfereForRPDCCH = this.m_DataManager.InterfereForRPDCCH.MatrixBlockArr[index].IntMatrix;

        }
Пример #9
0
 public void InitialProperty(int blockIndex)
 {
     this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_BestServerRSRPMatrix = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_ULBestServerLinkLoss = this.m_DataManager.ULBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix;
     this.m_ULTxSensitivity = this.m_DataManager.Group.ULTxSensitivity;
     this.m_ULMaxSensitivity = this.m_DataManager.Group.ULMaxSensitivity;
 }
Пример #10
0
 public void InitialProperty(int blockIndex)
 {
     this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     if (this.m_RsShifting)
     {
         this.m_ShiftingInterfOfDLPBCHSinr = this.m_DataManager.ShfitingInterfOfDlPBCHSinr.MatrixBlockArr[blockIndex].IntMatrix;
     }
 }
Пример #11
0
 public static ValueMatrixShort GenerateValueMatrixShortNoInitial(TrueFalseMatrix tfMatrix, string filepath, string relativePath)
 {
     ValueMatrixShort shortMatrix = new ValueMatrixShort(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount);
     m_ShortMatrix = shortMatrix;
     shortMatrix.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution);
     shortMatrix.SetValue(-32768, -32768, -32768);
     return shortMatrix;
 }
Пример #12
0
        public void MyTestInitialize()
        {
            m_Index = 0;
            m_Name = "HandOverArea";
            m_Context = new Huawei.UNet.Prediction.CalculateInterface.Context();
            m_Case =new HandOverAreaCase() ;
            cellList = new List<IACell>();
            TrueFalseMatrix matrix = new TrueFalseMatrix(4, 4, 0.0, 200, 50, true);
            LinkLossAssist.Init();

            UMTSPredictionGroup group = new UMTSPredictionGroup();
            group.HandoverAreaThreshold = 3;
            group.Region = MockRegion.CreateRegion();
            group.Name = "UMTSPredictionGroup";
            group.UIParam.HOGate = 5f;
            UnionCsService service = new UnionCsService();
            Service umtsService = new UMTSService();
            service.CSServiceDic.Add(NetWorkType.UMTS, umtsService);
            group.CsService = service;
            group.TrafficTerminal = new Terminal();
            group.TrafficTerminal.NetTerminalList.Add(new NetworkTerminal());

            #region 文件存储
            IProjectManager projectMgr = ServiceHelper.Lookup<MockIProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            string absolutePathID = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, ContextKeys.UmtsBestServerCellID);
            string relativePathID = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, ContextKeys.UmtsBestServerCellID);
            string absolutePathRSCP = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, ContextKeys.UmtsBestServerRSCP);
            string relativePathRSCP = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, ContextKeys.UmtsBestServerRSCP);
            ShortResultStruct srsID = ShortResultStruct.DefaultMin;
            ShortResultStruct srsRSCP = ShortResultStruct.DefaultMax;
            m_BestServerID = ValueMatrixAssist.GenerateByTrueFalseMatrix(matrix, absolutePathID, relativePathID, srsID);
            m_BestServerRSCP = ValueMatrixAssist.GenerateByTrueFalseMatrix(matrix, absolutePathRSCP, relativePathRSCP, srsRSCP);
            #endregion

            m_BestServerID[0] = 0;
            
            for (int i = 0; i < 2; i++)
            {
                IACell cell = new UMTSCell();
                cellList.Add(cell);
            }
            double[] x = new double[2] { 50, 100 };
            double[] y = new double[2] { 50, 100 };
            MockCellList.CreateCellList(cellList, x, y);

            #region 把数据加入Context
            m_Context.Add(ContextKeys.Group, group);
            m_Context.Add(ContextKeys.TFMatrix, matrix);
            m_Context.Add(ContextKeys.ApplicationContext, ProjectSingleton.CurrentProject.AppContext);
            m_Context.Add(ContextKeys.UmtsBestServerCellID, m_BestServerID);
            m_Context.Add(ContextKeys.UmtsBestServerRSCP, m_BestServerRSCP);
            m_Context.Add(ContextKeys.CellList, cellList);
            #endregion

            m_Case.Name = m_Name;
            m_Case.InitialCase(m_Context);
            
        }
Пример #13
0
 private void CreateContext()
 {
     context = new Context();
     matrix = GenerateTestShortMatrix.GetShortMatrix();
     context.Add(ContextKeys.UmtsEPDSCHEcNt, matrix);
     List<IACell> cellList = new List<IACell>();
     MockUMTSCellList.InitCellList(cellList);
     context.Add(ContextKeys.CellList, cellList);
 }
Пример #14
0
 public static ValueMatrixShort GenerateValueMatrixShort(TrueFalseMatrix tfMatrix, string filepath, string relativePath)
 {
     ValueMatrixShort vms = new ValueMatrixShort(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount);
     m_ShortMatrix = vms;
     vms.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution);
     vms.SetValue(-32768, -32768, -32768);
     InitialValueMatrix(tfMatrix, -32768, -32768, vms);
     return vms;
 }
Пример #15
0
 private static void InitialValueMatrix(TrueFalseMatrix tfMatrix, short notCalcValue, short defaultValue, ValueMatrixShort vms)
 {
     bool flag = false;
     for (int i = 0; i < vms.TotalCount; i++)
     {
         flag = tfMatrix[i];
         vms[i] = notCalcValue;
     }
 }
Пример #16
0
 private void FindCellAllCalcPoints(ValueMatrixShort onepolygonvalues, UNet.NE.Interface.Transceiver cell, List<GeoXYPoint> points, LTECellCalcInfo onecellinfo)
 {
     for (int i = onecellinfo.StartPoint.Y; i < (onecellinfo.EndPoint.Y + 1); i++)
     {
         for (int j = onecellinfo.StartPoint.X; j < (onecellinfo.EndPoint.X + 1); j++)
         {
             this.ValidatePointCover(onepolygonvalues, cell, points, i, j);
         }
     }
 }
Пример #17
0
 private void CreatContext()
 {
     m_Context = new Context();
     matrix = GenerateTestShortMatrix.GetShortMatrix();
     m_Context.Add(ContextKeys.GSMBestServerID, matrix);
     IACell cell = Mock.CreatGsmCell();
     List<IACell> cellList = new List<IACell>();
     cellList.Add(cell);
     m_Context.Add(ContextKeys.CellList, cellList);
 }
Пример #18
0
 private void CreatContext()
 {
     context = new Context();
     matrix = GenerateTestShortMatrix.GetShortMatrix();
     context.Add(ContextKeys.TDBestServerCellID, matrix);
     IACell cell = MockGroupAndCell.CreateTDCell();
     List<IACell> cellList = new List<IACell>();
     cellList.Add(cell);
     context.Add(ContextKeys.CellList, cellList);
 }
Пример #19
0
 /// <summary>
 /// 从Context中获取本case所需的指标
 /// </summary>
 /// <param name="context"></param>
 private void GetDataFromContext(Context context)
 {
     m_appContext = (IBaseService)context[ContextKeys.ApplicationContext];
     m_ProjectManager = ServiceHelper.Lookup<IProjectManager>(m_appContext);
     m_tFMatrix = (TrueFalseMatrix)context[ContextKeys.TFMatrix];
     m_predictionGroup = (TDPredictionGroup)context[ContextKeys.Group];
     m_procGain = TDPredictionCommonCalc.GetProcGain(m_predictionGroup);
     m_ULDCHRSCPMatrix = (ValueMatrixShort)context[ContextKeys.ULDCHRSCP];
     m_BestServerCellIDMatrix = (ValueMatrixShort)context[ContextKeys.TDBestServerCellID];
     m_cells = (List<IACell>)context[ContextKeys.CellList];  
 }
Пример #20
0
        /// <summary>
        /// 为小区的BestServer区域涂色
        /// </summary>
        /// <param name="study"></param>
        /// <param name="bestServerCellID"></param>
        public void GetColorForCell(IStudy study, ValueMatrixShort bestServerCellID,List<IACell> cellList)
        {
            ((ShortDiscreteStudy)study).StyleList.Clear();
            List<Color> colors = this.GenGeoDisplayColor();

            foreach (IACell cell in cellList)
            {
                string cellName = cell.Name;
                GeoDiscreteSytle style = this.AllocateColorToCell(colors, cell.ID, cellName);
                ((ShortDiscreteStudy)study).StyleList.Add(style);
            }
        }
Пример #21
0
 public static ValueMatrixShort GenerateValueMatrixShortNoInitial(TrueFalseMatrix tfMatrix, string filepath, PredictionStudyType st, string relativePath)
 {
     short num;
     short num2;
     short num3;
     DefaultValueDefine.GetShortResult(st, out num3, out num2, out num);
     ValueMatrixShort @short = new ValueMatrixShort(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount);
     m_ShortMatrix = @short;
     @short.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution);
     @short.SetValue(num, num2, num3);
     return @short;
 }
Пример #22
0
        public void MyTestInitialize()
        {
            m_Index = 0;
            m_Name = "DLInterf";
            m_Context = new Huawei.UNet.Prediction.CalculateInterface.Context();
            m_Case = new DLInterfCase();
            cellList = new List<IACell>();
            TrueFalseMatrix matrix = new TrueFalseMatrix(4, 4, 0.0, 200, 50, true);
            LinkLossAssist.Init();

            GSMPredicGroup group = new GSMPredicGroup();
            group.Region = MockRegion.CreateRegion();
            group.Name = "GSMPredicGroup";
            group.CsService = new Huawei.UNet.Traffic.Interface.UnionCsService();
            group.TrafficTerminal = new Huawei.UNet.Traffic.Interface.Terminal();

            IProjectManager projectMgr = ServiceHelper.Lookup<MockIProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            string absolutePathID = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, ContextKeys.GSMBestServerID);
            string relativePathID = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, ContextKeys.GSMBestServerID);
            string absolutePathRSCP = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, ContextKeys.GSMBCCHRP);
            string relativePathRSCP = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, ContextKeys.GSMBCCHRP);
            ShortResultStruct srsID = ShortResultStruct.DefaultMax;
            ShortResultStruct srsRSCP = ShortResultStruct.DefaultMin;
            m_BestServerID = ValueMatrixAssist.GenerateByTrueFalseMatrix(matrix, absolutePathID, relativePathID, srsID);
            m_BestServerRSCP = ValueMatrixAssist.GenerateByTrueFalseMatrix(matrix, absolutePathRSCP, relativePathRSCP, srsRSCP);
            m_BestServerID[0] = 0;
            m_BestServerRSCP[0] = -9000;
       
            //InitCellList();

            //double[] x = new double[3] { 50, 100, 150 };
            //double[] y = new double[3] { 50, 100, 50 };
            //MockCellList.CreateCellList(cellList, x, y);
            TrafficAdaptorMgr trafficMgr = TrafficAdaptorMgr.Instance;
            m_InterfTable = trafficMgr.TableDIC;

            m_Context.Add(ContextKeys.InterfTable, m_InterfTable);
            m_Context.Add(ContextKeys.Group, group);
            m_Context.Add(ContextKeys.TFMatrix, matrix);
            m_Context.Add(ContextKeys.ApplicationContext, ProjectSingleton.CurrentProject.AppContext);
            m_Context.Add(ContextKeys.GSMBestServerID, m_BestServerID);
            m_Context.Add(ContextKeys.GSMBCCHRP, m_BestServerRSCP);
            m_Case.Name = m_Name;
            m_Context.Add(ContextKeys.CellList, cellList);
            m_Case.InitialCase(m_Context);
            //for (int i = 0; i < 3;i++ )
            //{
            //    m_Context.Add(ContextKeys.CurrentCalcCell, cellList[i]);
            //    RunCase();
            //    m_Context.Remove(ContextKeys.CurrentCalcCell);
            //}
        }
Пример #23
0
        public void MyTestInitialize()
        {
            m_Index = 0;
            m_Name = "HSUPAPeakThroughCase";
            m_Context = new Huawei.UNet.Prediction.CalculateInterface.Context();
            m_Case = new HSUPAPeakThroughCase();
            cellList = new List<IACell>();
            TrueFalseMatrix matrix = new TrueFalseMatrix(4, 4, 0.0, 200, 50, true);
            LinkLossAssist.Init();

            #region group 业务 终端
            group = new UMTSPredictionGroup();
            group.Region = MockRegion.CreateRegion();
            group.Name = "UMTSPredictionGroup";
            group.UIParam.SpatialDivFactor = 0;
            group.UIParam.MaxSpatialDivFactor = 0;
            UnionPsService psService = new UnionPsService();
            UMTSService umtsService = new UMTSService();
            psService.PSServiceDic.Add(NetWorkType.UMTS, umtsService);
            group.PsService = psService;
            umtsService.EnableHsupa = true;

            group.TrafficTerminal = new Terminal();
            List<NetworkTerminal> terminalList = new List<NetworkTerminal>();
            UMTSTerminal tempTerminal = new UMTSTerminal();
            tempTerminal.NoiseFigure = 2;
            tempTerminal.NetType = NetWorkType.UMTS;
            tempTerminal.EnableHsupa = true;
            terminalList.Add(tempTerminal);
            group.TrafficTerminal.NetTerminalList = terminalList;
            #endregion

            IProjectManager projectMgr = ServiceHelper.Lookup<MockIProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            string absolutePathID = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, ContextKeys.UmtsBestServerCellID);
            string relativePathID = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, ContextKeys.UmtsBestServerCellID);
            string absolutePathEPDSCHEcNt = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, ContextKeys.UmtsEPDSCHEcNt);
            string relativePathEPDSCHEcNt = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, ContextKeys.UmtsEPDSCHEcNt);
            ShortResultStruct srsID = ShortResultStruct.DefaultMax;
            ShortResultStruct srsCir = ShortResultStruct.DefaultMin;
            ShortResultStruct srsEPDSCH = ShortResultStruct.DefaultMin;
            m_BestServerID = ValueMatrixAssist.GenerateByTrueFalseMatrix(matrix, absolutePathID, relativePathID, srsID);
            m_EPDSCHEcNt = ValueMatrixAssist.GenerateByTrueFalseMatrix(matrix, absolutePathEPDSCHEcNt, relativePathEPDSCHEcNt, srsEPDSCH);
            m_BestServerID[0] = 0;

            m_Context.Add(ContextKeys.TFMatrix, matrix);
            m_Context.Add(ContextKeys.ApplicationContext, ProjectSingleton.CurrentProject.AppContext);
            m_Context.Add(ContextKeys.UmtsBestServerCellID, m_BestServerID);
            m_Context.Add(ContextKeys.CellList, cellList);
            m_Context.Add(ContextKeys.UmtsEPDSCHEcNt, m_EPDSCHEcNt);
            m_Case.Name = m_Name;

        }
Пример #24
0
 public static void GarbageCollect()
 {
     if (m_ShortMatrix != null)
     {
         m_ShortMatrix.Close(true);
         m_ShortMatrix = null;
     }
     if (m_IntMatrix != null)
     {
         m_IntMatrix.Close(true);
         m_IntMatrix = null;
     }
 }
Пример #25
0
 private void GetValueFromContext(Context context)
 {
     m_tdPreGroup = (TDPredictionGroup)context[ContextKeys.Group];
     m_tFMatrix = (TrueFalseMatrix)context[ContextKeys.TFMatrix];
     m_AppContext = (IBaseService)context[ContextKeys.ApplicationContext];
     m_Name = m_tdPreGroup.Name;
     TrafficAdaptorAssist trafficAdaptor = TrafficAdaptorAssist.Instance;
     m_BearerList = trafficAdaptor.TDHSUPABearerList;
     m_BestServerCellIDMatrix = (ValueMatrixShort)context[ContextKeys.TDBestServerCellID];
     m_cells = (List<IACell>)context[ContextKeys.CellList];
     m_ProjectManager = ServiceHelper.Lookup<IProjectManager>(m_AppContext);
     m_tdTerminal = (TDTerminal)m_tdPreGroup.TrafficTerminal.GetNetWorkTerminal(NetWorkType.TDSCDMA);
     m_HSUPACIMatrix = (ValueMatrixShort)context[ContextKeys.ULDCHCIR];
 }
Пример #26
0
        [TestInitialize]  //初始化测试用例
        public void MyTestInitialize()
        {
            m_Index = 0;
            m_Name = "CoverageArea";

            m_Context = new Context();
            m_Case = new CoverageAreaCase();

            group = Mock.MockGSMPredicGroup();
            TrueFalseMatrix tFMatrix = new TrueFalseMatrix(4, 4, 0, 200, 50, true);
            IACell cell = Mock.CreatGsmCell();
            cellList = new List<IACell>();
            double[] x = new double[1] { 100 };
            double[] y = new double[1] { 100 };
            cellList.Add(cell);
            cellList = MockCellList.CreateCellList(cellList, x, y);
            cellList[0].Parent.ID = 1;
            LinkLossAssist.Init();
            IProjectManager projectMgr = ServiceHelper.Lookup<MockIProjectManager>(ProjectSingleton.CurrentProject.AppContext);

            string absolutePath2 = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, GSMPredictionStudyType.BestServer.ToString());
            string relativePath2 = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, GSMPredictionStudyType.BestServer.ToString());
            ShortResultStruct srs2 = ShortResultStruct.DefaultMax;
            m_GSMBestServerID = ValueMatrixAssist.GenerateByTrueFalseMatrix(tFMatrix, absolutePath2, relativePath2, srs2);
            m_GSMBestServerID[m_Index] = cellList[0].ID;

            string absolutePath = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, GSMPredictionStudyType.DLServiceCIR.ToString());
            string relativePath = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, GSMPredictionStudyType.DLServiceCIR.ToString());
            ShortResultStruct srs = ShortResultStruct.DefaultMin;
            m_GSMDLServiceCIR = ValueMatrixAssist.GenerateByTrueFalseMatrix(tFMatrix, absolutePath, relativePath, srs);
            m_GSMDLServiceCIR[m_Index] = 18 * 100;

            string absolutePath1 = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, GSMPredictionStudyType.CodingScheme.ToString());
            string relativePath1 = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, GSMPredictionStudyType.CodingScheme.ToString());
            ShortResultStruct srs1 = ShortResultStruct.DefaultMin;
            m_CodingScheme = ValueMatrixAssist.GenerateByTrueFalseMatrix(tFMatrix, absolutePath1, relativePath1, srs1);
            m_CodingScheme[0] = 4;
            m_CodingScheme[11] = 11;
            m_Context.Add(ContextKeys.CellList, cellList);
            m_Context.Add(ContextKeys.CurrentCalcCell, cellList[0]);
            m_Context.Add(ContextKeys.Group, group);
            m_Context.Add(ContextKeys.TFMatrix, tFMatrix);
            m_Context.Add(ContextKeys.ApplicationContext, ProjectSingleton.CurrentProject.AppContext);
            m_Context.Add(ContextKeys.GSMBestServerID, m_GSMBestServerID);
            m_Context.Add(ContextKeys.GSMDLServiceCIR, m_GSMDLServiceCIR);
            m_Context.Add(ContextKeys.CodingScheme, m_CodingScheme);

        }
Пример #27
0
        /// <summary>
        /// 向context中添加本case计算的指标
        /// </summary>
        /// <param name="context"></param>
        private void AddStudyIntoContext(Context context)
        {
            ShortResultStruct srs = ShortResultStruct.DefaultMin;
            string absolutePath = ResultFilePath.CreateFilePath(m_ProjectManager.CurrentProjectLossPath,
                m_predictionGroup.Name, m_predictionGroup.Region.Name, TDPredictionStudyType.UL_DCH_SINR.ToString());
            string relativePath = ResultFilePath.CreateRelativePath(m_predictionGroup.Name, 
                m_predictionGroup.Region.Name, TDPredictionStudyType.UL_DCH_SINR.ToString());
            m_ULDCHSINRMatrix = ValueMatrixAssist.GenerateByTrueFalseMatrix(m_tFMatrix,absolutePath,relativePath, srs);

            ShortResultStruct srs2 = ShortResultStruct.DefaultMin;
            string absolutePath2 = ResultFilePath.CreateFilePath(m_ProjectManager.CurrentProjectLossPath,
                m_predictionGroup.Name, m_predictionGroup.Region.Name, ContextKeys.ULDCHCIR);
            string relativePath2 = ResultFilePath.CreateRelativePath(m_predictionGroup.Name,
                m_predictionGroup.Region.Name, ContextKeys.ULDCHCIR);
            m_ULDCHCIRMatrix = ValueMatrixAssist.GenerateByTrueFalseMatrix(m_tFMatrix, absolutePath2, relativePath2, srs2);
            context.Add(ContextKeys.ULDCHSINR, m_ULDCHSINRMatrix);
            context.Add(ContextKeys.ULDCHCIR, m_ULDCHCIRMatrix);
        }
Пример #28
0
        [TestInitialize]  //初始化测试用例
        public void MyTestInitialize()
        {
            m_Index = 0;
            m_Name = "GSMHandOver";
            m_Context = new Context();
            m_Case = new HandOverCase();

            GSMPredicGroup m_group = Mock.MockGSMPredicGroup();
            TrueFalseMatrix m_tFMatrix = new TrueFalseMatrix(4, 4, 0, 200, 50, true);
            IACell cell1 = Mock.CreatGsmCell();
            IACell cell2 = Mock.CreatGsmCell();
            cellList = new List<IACell>();
            double[] x = new double[2] { 100, 150 };
            double[] y = new double[2] { 100, 150 };
            cellList.Add(cell1);
            cellList.Add(cell2);
            cellList =MockCellList.CreateCellList(cellList, x, y);
            cellList[1].Parent.ID = 1;

            LinkLossAssist.Init();

            IProjectManager projectMgr = ServiceHelper.Lookup<MockIProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            string absolutePath1 = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, m_group.Name, m_group.Region.Name, GSMPredictionStudyType.BCCHRP.ToString());
            string relativePath1 = ResultFilePath.CreateRelativePath(m_group.Name, m_group.Region.Name, GSMPredictionStudyType.BCCHRP.ToString());
            string absolutePath2 = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, m_group.Name, m_group.Region.Name, GSMPredictionStudyType.BestServer.ToString());
            string relativePath2 = ResultFilePath.CreateRelativePath(m_group.Name, m_group.Region.Name, GSMPredictionStudyType.BestServer.ToString());
            ShortResultStruct srs1 = ShortResultStruct.DefaultMin;
            ShortResultStruct srs2 = ShortResultStruct.DefaultMax;
            m_GSMBCCHRP = ValueMatrixAssist.GenerateByTrueFalseMatrix(m_tFMatrix, absolutePath1, relativePath1, srs1);
            m_GSMBestServerID = ValueMatrixAssist.GenerateByTrueFalseMatrix(m_tFMatrix, absolutePath2, relativePath2, srs2);

            m_GSMBestServerID[0] = cellList[0].ID;
            m_GSMBCCHRP[0] = 46*100;

            m_Context.Add(ContextKeys.Group, m_group);
            m_Context.Add(ContextKeys.TFMatrix, m_tFMatrix);
            m_Context.Add(ContextKeys.ApplicationContext, ProjectSingleton.CurrentProject.AppContext);
            m_Context.Add(ContextKeys.CellList, cellList);
            m_Context.Add(ContextKeys.CurrentCalcCell, cellList[1]);
            m_Context.Add(ContextKeys.GSMBCCHRP, m_GSMBCCHRP);
            m_Context.Add(ContextKeys.GSMBestServerID, m_GSMBestServerID);
        }
Пример #29
0
        /// <summary>
        /// 初始化计算中需要的指标以及存储路径
        /// </summary>
        /// <param name="tfMatrix"></param>
        /// <param name="tdGroup"></param>
        private void InitMatrix(TrueFalseMatrix tfMatrix, TDPredictionGroup tdGroup)
        {
            IProjectManager projectMgr = ServiceHelper.Lookup<MockIProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            string absolutePathID = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, tdGroup.Name, tdGroup.Region.Name, ContextKeys.TDBestServerCellID);
            string relativePathID = ResultFilePath.CreateRelativePath(tdGroup.Name, tdGroup.Region.Name, ContextKeys.TDBestServerCellID);
            string absolutePathRSCP = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, tdGroup.Name, tdGroup.Region.Name, ContextKeys.HSPDSCHRSCP);
            string relativePathRSCP = ResultFilePath.CreateRelativePath(tdGroup.Name, tdGroup.Region.Name, ContextKeys.HSPDSCHRSCP);
            string absolutePathInterf = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, tdGroup.Name, tdGroup.Region.Name, ContextKeys.HSPDSCHInterf);
            string relativePathInterf = ResultFilePath.CreateRelativePath(tdGroup.Name, tdGroup.Region.Name, ContextKeys.HSPDSCHInterf);
            string absolutePathOther = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, tdGroup.Name, tdGroup.Region.Name, ContextKeys.OtherSystemInterf);
            string relativePathOther = ResultFilePath.CreateRelativePath(tdGroup.Name, tdGroup.Region.Name, ContextKeys.OtherSystemInterf);

            m_BestServerCellID = ValueMatrixAssist.GenerateByTrueFalseMatrix(tfMatrix, absolutePathID, relativePathID, ShortResultStruct.DefaultMax);
            m_HSPDSCHRSCP = ValueMatrixAssist.GenerateByTrueFalseMatrix(tfMatrix, absolutePathRSCP, relativePathRSCP, ShortResultStruct.DefaultMin);
            m_HSPDSCHInterf = new ValueMatrixDouble(absolutePathInterf, relativePathInterf, tfMatrix.RowCount, tfMatrix.ColCount);
            m_HSPDSCHInterf.SetValue(0, 0, double.NegativeInfinity);
            m_OtherSystemInterf = new ValueMatrixDouble(absolutePathOther, relativePathOther, tfMatrix.RowCount, tfMatrix.ColCount);
            m_OtherSystemInterf.SetValue(0, 0, double.NegativeInfinity);
           
        }
Пример #30
0
 private string getIsDivisionShort(PredictionStudy study, ValueMatrixShort matrixShort, int index, PredictionGroup group)
 {
     string nameAndStudy = null;
     if ((study.StudyType & this.studyTypeNotdivision) == study.StudyType)
     {
         if (study.StudyType == PredictionStudyType.Best_Server)
         {
             return (this.getCellname(group, matrixShort[index]) + this.blank_enter);
         }
         if ((study.StudyType == PredictionStudyType.PUSCH_MCS) || (study.StudyType == PredictionStudyType.PDSCH_MCS))
         {
             int mscid = matrixShort[index];
             if (mscid == 0)
             {
                 return nameAndStudy;
             }
             return this.GetMscCodingRate(study, group, nameAndStudy, mscid);
         }
         return (((float) matrixShort[index]) + this.blank_enter);
     }
     return ((((float) matrixShort[index]) / 100f) + this.blank_enter);
 }