Example #1
0
        /// <summary>
        /// 计算UPA快照
        /// </summary>
        /// <returns></returns>
        public object Run()
        {
            InitUsers();
            InitParam();
            bool notNeedRun = m_CommonParams.CellList.Count == 0;
            if (notNeedRun)
            {
                return null;
            }
            notNeedRun = m_CommonParams.UserCol.PreAccessedUser.Count == 0;
            if (notNeedRun)
            {
                return m_Result;
            }  
            for (int i = 0; i < m_CommonParams.SimTTINumber; i++)
            {
                m_CommonParams.NewSimTTIStart(m_CommonParams.TTILength);
                PerformSchedule();               
                
                //Todo···
                //m_CommonParams.CoSimuParam.GotoNextTTI(m_CommonParams.TTILength * (m_CommonParams.CurTTIIndex + 1));
            }
            m_OutTTIResult.OutPutTTIResult();
            UpdateSnapResult();
            m_CommonParams.TTISimEnd();
            m_Result = new SnapResult(m_CommonParams);
            m_Result.GetExcelResult();

            HSUPA_UpdateData dataUpdate = new HSUPA_UpdateData();
            dataUpdate.CommonParam = m_CommonParams;
            dataUpdate.Execute();

            return m_Result; 
        }