public HSUPA_CommonParam(SnapshotContext context) { //IApplicationContext appContext = context.Lookup<IApplicationContext>(ContextKeys.AppContext); //ITrafficService trafficSvc = ServiceHelper.Lookup<ITrafficService>(appContext); //m_R99Mgr = (UMTSR99BearerManagement)trafficSvc.LookupManager(typeof(UMTSR99BearerManagement)); //m_DpaMgr = (HSDPABearerManagement)trafficSvc.LookupManager(typeof(HSDPABearerManagement)); m_SnapshotContext = context; m_UMTSUIParam = context.Lookup<UMTSUIParam>(ContextKeys.UMTSUIParam); m_UMTSServiceProvide = new UMTSServiceProvider(context); m_CellCol = new CellCollection(); m_UserCol = new UserCollection(); InitUIParam(); }
public HSDPA_CommonParam(SnapshotContext context) { m_Context = context; m_UMTSUIParam = context.Lookup<UMTSUIParam>(ContextKeys.UMTSUIParam); m_UMTSServiceProvide = new UMTSServiceProvider(context); m_CellCol = new CellCollection(); m_UserCol = new UserCollection(); m_HSDPABearerList = m_UMTSServiceProvide.TrafficMgr.HSDPABearerList; m_SingleModeUserList = new List<UMTSSimUser>(); }
/// <summary> /// UPA网元封装,Todo...调用model中的公用方法 /// </summary> /// <param name="context"></param> public void InitCells(SnapshotContext context) { //调用model中的包装cell m_CommonParams = new HSUPA_CommonParam(context); m_ServiceProvider = new UMTSServiceProvider(context); //m_UMTSTrafficMgr = new UMTSTrafficMgr(context); //m_SimEncapsulate.EncapsulateCells(context); m_CommonParams.CellCol.UMTSCellList = m_SimEncapsulate.EncapsulateCells(context); foreach (UMTSSimCell cell in m_CommonParams.CellCol.UMTSCellList) { bool flag = cell.CellType== CarrierTypeOfUMTS.HSUPA || cell.CellType == CarrierTypeOfUMTS.R99AndHSUPA; if (flag) { m_CommonParams.CellList.Add(cell); } } }