示例#1
0
        public void UMTSDetailCalcTest()
        {
            ModelList = UMTSPointAnalysisMock.MockModelList();

            bearer = new UMTSR99Bearer();

            csService = new UnionCsService();
            UMTSService umtsService = new UMTSService();
            umtsService.R99Bearer = "ADPCH-UL64";
            umtsService.UmtsR99Bearer = new UMTSR99Bearer();
            umtsService.UmtsR99Bearer.DLNominalRate = 100f;
            ((UnionCsService)csService).CSServiceDic.Add(NetWorkType.UMTS, umtsService);

            psService = new UnionPsService();
            ((UnionPsService)psService).PSServiceDic.Add(NetWorkType.UMTS, umtsService);

            Terminal terminal = new Terminal();
            UMTSTerminal umtsTerminal = new UMTSTerminal();
            terminal.NetTerminalList.Add(umtsTerminal);

            UMTSGetActiveSet detailCac = new UMTSGetActiveSet(ModelList, umtsService, umtsService, umtsTerminal);

            Assert.AreEqual(20, detailCac.RxPower);
            Assert.AreEqual(2, detailCac.BestServer.ID);
            Assert.AreEqual(3, detailCac.ActiveSet.Count);

            UMTSGetActiveSet detailCac2 = new UMTSGetActiveSet(ModelList, null, umtsService, umtsTerminal);
        }
示例#2
0
 public UMTSR99BearerDesc(UMTSR99Bearer umtsR99Bearer, TrafficCollectionModel model, List<UMTSR99Bearer> excludeUMTSR99)
 {
     this.m_UMTSR99Bearer = umtsR99Bearer;
     this.m_Model = model;
     foreach (UMTSR99Bearer bearer in excludeUMTSR99)
     {
         this.m_ExistNames.Add(bearer.Name);
     }
 }
示例#3
0
 public void CopyFrom(UMTSR99Bearer modR99Bearer)
 {
     this.m_ULNominalRate = modR99Bearer.ULNominalRate;
     this.m_PtchMin = modR99Bearer.PtchMin;
     this.m_PtchMax = modR99Bearer.PtchMax;
     this.m_DLNominalRate = modR99Bearer.DLNominalRate;
     this.m_Type = modR99Bearer.Type;
     this.m_ULCENum = modR99Bearer.ULCENum;
     this.m_DLCENum = modR99Bearer.DLCENum;
     this.m_ULSpreadingFactor = modR99Bearer.ULSpreadingFactor;
     this.m_DLSpreadingFactor = modR99Bearer.DLSpreadingFactor;
     base.Name = modR99Bearer.Name;
     base.Technology = modR99Bearer.Technology;
     base.ID = modR99Bearer.ID;
 }