public static SnapshotContext CreatContext() { SnapshotContext context = new SnapshotContext(); IApplicationContext appContext = new MockAppContext(); UMTSUIParam UIParam = new UMTSUIParam(); UIParam.Rc = 3840000f; List<ISimCellBase> m_UMTSSimCellBaseList = new List<ISimCellBase>(); List<ISimCellBase> m_GSMSimCellBaseList = new List<ISimCellBase>(); List<ISimCellBase> m_TDSimCellBaseList = new List<ISimCellBase>(); List<User> m_UserList = new List<User>(); User user1 = MockUser.CreatUser_CS(); User user2 = MockUser.CreatUser_PS(); m_UserList.Add(user1); m_UserList.Add(user2); context.AddKey(ContextKeys.AppContext, appContext); context.AddKey(ContextKeys.IGetLinkloss, new MockGetLinkloss()); context.AddKey(ContextKeys.IIterfCalc, new MockInterfCalc()); context.AddKey(ContextKeys.IGetFastFading,new MockGetFastFading()); context.AddKey(ContextKeys.UMTSUIParam, UIParam); context.AddKey(ContextKeys.IACellList, MockIACellList.CreatIACellList()); context.AddKey(ContextKeys.UMTSSimCellBase, m_UMTSSimCellBaseList); context.AddKey(ContextKeys.PreAccessUsers, m_UserList); context.AddKey(ContextKeys.GSMSimCellBase, m_GSMSimCellBaseList); context.AddKey(ContextKeys.TDSimCellBase, m_TDSimCellBaseList); return context; }
public void InitOthers(SnapshotContext context) { m_CommonParams.CellCol.GSMCellList = m_CommonParams.Context.Lookup<List<ISimCellBase>>(ContextKeys.GSMSimCellBase); m_CommonParams.CellCol.TDCellList = m_CommonParams.Context.Lookup<List<ISimCellBase>>(ContextKeys.TDSimCellBase); foreach (UMTSSimCell cell in m_CommonParams.CellList) { cell.UMTSInterfCells = m_FindAdjacentCells.GetNeighbourCells(cell, m_CommonParams.CellCol.UMTSCellList, 21); cell.TDInterfCells = m_FindAdjacentCells.GetNeighbourCells(cell, m_CommonParams.CellCol.TDCellList, 21); cell.GSMInterfCells = m_FindAdjacentCells.GetNeighbourCells(cell, m_CommonParams.CellCol.GSMCellList, 21); } AddDataIntoContext(context); m_UIParams = m_CommonParams.UMTSUIParam; }
public HSDPA_CalcInterf(HSDPA_CommonParam param, UMTSUIParam UIparam) { m_CommonParam = param; m_UIParam = UIparam; m_LinkLoss = new HSDPA_LinkLoss(m_CommonParam); }
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>(); }
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(); }