public void Init()
 {
     cellResultUpdater = new HSUPA_CellResultUpdater();
     commonParam = new HSUPA_CommonParam(MockContext.CreatContext());
     cell = MockCell.CreatUMTSSimCell(0, 0);
     user = MockUser.CreatUMTSPSUser();
     user2 = MockUser.CreatUMTSPSUser();
     user3 = MockUser.CreatUMTSPSUser();
     user.HSUPA_ULTxPowerList.Add(10);
     user2.HSUPA_ULTxPowerList.Add(10);
     user3.HSUPA_ULTxPowerList.Add(10);
     user.HSUPA_ULThroughputList.Add(64000);
     user2.HSUPA_ULThroughputList.Add(32000);
     user3.HSUPA_ULThroughputList.Add(10000);
     user.HSUPA_ScheduleRateList.Add(64000);
     user2.HSUPA_ScheduleRateList.Add(64000);
     user3.HSUPA_ScheduleRateList.Add(64000);
     cell.ServerdHSUPAUser.Clear();
     cell.ServerdHSUPAUser.Add(user);
     cell.ServerdHSUPAUser.Add(user2);
     cell.ServerdHSUPAUser.Add(user3);
     commonParam.CellList.Add(cell);
     commonParam.SimTTINumber = 1;
     cellResultUpdater.CommonParams = commonParam;
 }
Esempio n. 2
0
 public void Init()
 {
     cellList = new List<UMTSSimCell>();
     access = new HSUPA_Access();
     context = MockContext.CreatContext();
     commonParam = new HSUPA_CommonParam(context);
     bearerSelector = new HSUPA_BearerSelector(commonParam);
     UMTSSimCell cell = MockCell.CreatUMTSSimCell(0, 0);
     UMTSSimCell cell2 = MockCell.CreatUMTSSimCell(100, 100);
     List<UMTSSimUser> userList = new List<UMTSSimUser>();
     UMTSSimUser user1 = MockUser.CreatUMTSPSUser();
     UMTSSimUser user2 = MockUser.CreatUMTSPSUser();
     UMTSSimUser user3 = MockUser.CreatUMTSPSUser();
     user1.IsAccess = true;
     user2.ServedLinkSet.Add(0, new LinkParam(cell));
     user2.ServedLinkSet.Add(1, new LinkParam(cell2));
     user2.AveTrafficRate = 500;
     
     userList.Add(user1);
     userList.Add(user2);
     userList.Add(user3);
     cell.ServerdHSUPAUser = userList;
    
     cellList.Add(cell);
     commonParam.CellList = cellList;
     commonParam.UserCol.PreAccessedUser.AddRange(userList);
     access.CommonParam = commonParam;
     CalcSource.GetBear += bearerSelector.GetBearByRate;
     
 }
Esempio n. 3
0
 public void Init()
 {
     context = MockContext.CreatContext();
     commonParam = new HSUPA_CommonParam(context);
     bearerSelector = new HSUPA_BearerSelector(commonParam);
     user = MockUser.CreatUMTSPSUser();
     user.HSUPABearer = bearerSelector.GetBearByRate(100000, 0.002f);
 }
Esempio n. 4
0
 public HSUPA_BearerSelector(HSUPA_CommonParam commonParam)
 {
     m_BearerList = commonParam.ServiceProvider.TrafficMgr.HSUPABearerList;
     upaBearAss = TrafficAdaptorAssist.Instance; ;
     EcNtDic = upaBearAss.EcNtDic;
     ecnt0 = FindEcNtByBearIndex(m_BearerList[0]);
     ecnt12 = FindEcNtByBearIndex(m_BearerList[12]);
 }
Esempio n. 5
0
 public SnapResult(HSUPA_CommonParam CommonParam)
 {
     //m_CommonParam = CommonParam;
     m_UserCollection = CommonParam.UserCol;
     m_NetVersion = NetVersion.UMTSHSUPA;
     //cellResult.CommonParam = m_CommonParam;
     //userResult.CommonParam = m_CommonParam;
     GeResults(CommonParam);
 }
 public void Init()
 {
     serviceCHType = new HSUPA_ConfirmServiceAcceptedCHType();
     context = MockContext.CreatContext();
     commonParam = new HSUPA_CommonParam(context);
     user = MockUser.CreatUMTSPSUser();
     user2 = MockUser.CreatUMTSCSUser();
     commonParam.UserCol.PreAccessedUser.Add(user2);
     commonParam.UserCol.PreAccessedUser.Add(user);
     serviceCHType.CommonParam = commonParam;
 }
Esempio n. 7
0
 public void Init()
 {
     assignCell = new HSUPA_AssignCell();
     context = MockContext.CreatContext();
     commonParam = new HSUPA_CommonParam(context);
     userList = new List<UMTSSimUser>();
     cellList = new List<UMTSSimCell>();
     UMTSSimCell cell = MockCell.CreatUMTSSimCell(0, 0);
     UMTSSimUser user = MockUser.CreatUMTSPSUser();
     user.ServiceAcceptedCH = ServiveAcceptedCH.E_DPDCH;
     user.UserHandOff = true;
     userList.Add(user);
     commonParam.UserCol.PreAccessedUser = userList;
     cellList.Add(cell);
     commonParam.CellList = cellList;
     assignCell.CommonParam = commonParam;
 }
Esempio n. 8
0
        public void Init()
        {
            averageResult = new HSUPA_AverageResult();
            commonParam = new HSUPA_CommonParam(MockContext.CreatContext());
            UMTSSimCell cell = MockCell.CreatUMTSSimCell(0, 0);
            List<UMTSSimCell> cellList = new List<UMTSSimCell>();
            cell.ServerdHSUPAUser[0].HSUPA_ULThroughputList.Add(64000);
            cell.HSUPA_RxPowerList.Add(30);
            cell.UlInterfFromOtherSystemCell = 10;
            cell.UlInterfFromOtherSystemUsers = 10;
            cellList.Add(cell);
            commonParam.CellList = cellList;
            snapResult = new SnapResult(commonParam);
            snapResultList = new List<object>();
            snapResultList.Add((object)snapResult);
            commonParam.CellList[0].ServerdHSUPAUser[0].HSUPA_ULThroughputList[0] = 128000;
            SnapResult snapResult2 = new SnapResult(commonParam);
            snapResultList.Add((object)snapResult2);
            averageResult.NetVerison = NetVersion.UMTSHSUPA;

        }
Esempio n. 9
0
        public void Init()
        {
            calcIo = new HSUPA_CalcIo();
            context = MockContext.CreatContext();
            commonParam = new HSUPA_CommonParam(context);
            interfCalc = new MockInterfCalc();
            getLinkLoss = new MockGetLinkloss();
            bearerSelector = new HSUPA_BearerSelector(commonParam);
            calcIo.UMTSInterfCalc = new UMTSInterfCalc(interfCalc, getLinkLoss);
            cell = MockCell.CreatUMTSSimCell(0, 0);
            cell.CellType = CarrierTypeOfUMTS.HSUPA;

            user1 = MockUser.CreatUMTSPSUser();
            user1.MaxRSCPCell = cell;
            user1.MaxRSCPCell.UMTSInterfCells = new List<ISimCellBase>();
            user1.MaxRSCPCell.HSUPA_CurRxPower = 10;
            user1.MaxRSCPCell.HSUPA_UsedRxPower = 10;
            user1.IsScheduledInTTI = true;


            calcIo.CommonParams = commonParam;
        }
Esempio n. 10
0
        public void Init()
        {
            commonParam = new HSUPA_CommonParam(MockContext.CreatContext());
            updateData = new HSUPA_UpdateData();

            cellList = new List<UMTSSimCell>();
            UMTSSimCell cell = MockCell.CreatUMTSSimCell(0, 0);
            UMTSSimUser user = MockUser.CreatUMTSPSUser();
            user.HSUPA_EcNtList.Add(0.1f);
            user.HSUPA_ULThroughputList.Add(64000);
            user.HSUPA_ULTxPowerList.Add(10);
            cell.ServerdHSUPAUser[0] = user;
            cell.HSUPA_ThroughPutList.Add(64000);
            cell.RLCPeakRateList.Add(64000);
            cell.ScheduleUserListInTTI.Add("true");
            cell.CellType = CarrierTypeOfUMTS.HSUPA;
            
            cellList.Add(cell);
            commonParam.UserCol.AccessedUser.Add(user);
            commonParam.CellList = cellList;
            updateData.CommonParam = commonParam;
        }
        public void Init()
        {
            commonParam = new HSUPA_CommonParam(MockContext.CreatContext());
            cell = MockCell.CreatUMTSSimCell(0, 0);
            user = MockUser.CreatUMTSPSUser();
            user2 = MockUser.CreatUMTSPSUser();
            user3 = MockUser.CreatUMTSPSUser();
            userPrioritySort = new HSUPA_UserPrioritySort();
            user.UserPriority = 1;
            user.ServicePriority = 1;
            user2.UserPriority = 1;
            user2.ServicePriority = 2;
            user3.UserPriority = 3;
            user3.ServicePriority = 1;

            cell.ServerdHSUPAUser.Clear();
            cell.ServerdHSUPAUser.Add(user);
            cell.ServerdHSUPAUser.Add(user2);
            cell.ServerdHSUPAUser.Add(user3);
            commonParam.CellList.Add(cell);
            userPrioritySort.CommonParam = commonParam;
            userPrioritySort.Execute();
        }
Esempio n. 12
0
 public void Init()
 {
     scheduler = new HSUPA_Scheduler();
     context = MockContext.CreatContext();
     commonParam = new HSUPA_CommonParam(context);
     commonParam.NewSimTTIStart(commonParam.TTILength);
     rateCtrl = new HSUPA_UserScheduleRateCtrl();
     calcIo = new HSUPA_CalcIo();
     interfCalc = new MockInterfCalc();
     getLinkLoss = new MockGetLinkloss();
     bearerSelector = new HSUPA_BearerSelector(commonParam);
     rateCtrl.CommonParams = commonParam;
     scheduler.CommonParams = commonParam;
     calcIo.CommonParams = commonParam;
     calcIo.UMTSInterfCalc = new UMTSInterfCalc(interfCalc, getLinkLoss);
     scheduler.HSUPA_CalcIo = calcIo;
     scheduler.RateCtrl = rateCtrl;
     cell = MockCell.CreatUMTSSimCell(0,0);
     user = MockUser.CreatUMTSPSUser();
     user.MaxRSCPCell = cell;
     rateCtrl.BearerSelector = bearerSelector;
     scheduler.HSUPA_BearerSelector = bearerSelector;
 }
Esempio n. 13
0
 private void GeResults(HSUPA_CommonParam CommonParam)
 {
     m_CellRel = cellResult.GeCellResult(CommonParam);
     m_UserRel = userResult.GeSuccessUserResult(CommonParam);
     m_AccessRel = userResult.GeAccessUserResult(CommonParam);
 }
Esempio n. 14
0
 /// <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);
         }
     }
 }