コード例 #1
0
ファイル: CoSnapshot.cs プロジェクト: xiaoyj/Space
 private void RunPolyModeInAdvance(List<NetWorkType> types, AllocateUser allocateUser)
 {
     foreach (NetWorkType type in types)
     {
         allocateUser.AllocatePolyModeUsers(type);
         m_ResultDic[type] = RunOneNetWorkSnapshots(type);
         allocateUser.RefreshPreAccessUsers(type);
     }
 }
コード例 #2
0
ファイル: CoSnapshot.cs プロジェクト: xiaoyj/Space
 private void SetAllocatUserProperty(UnionUIParam m_UIParam, AllocateUser allocatUser)
 {
     allocatUser.Voice = m_UIParam.Voice;
     allocatUser.WideBand = m_UIParam.WideBand;
     allocatUser.NarrowBand = m_UIParam.NarrowBand;
     allocatUser.WideBandDemand = m_UIParam.WideBandDemand;
 }
コード例 #3
0
ファイル: CoSnapshot.cs プロジェクト: xiaoyj/Space
 private void RunSnapshots(List<NetWorkType> netWorkQueue, AllocateUser allocatUser)
 {
     RunSingleModeInAdvance(netWorkQueue, allocatUser);
     //获取负载接口
     GetLoadDic();
     //RunPolyModeInAdvance(netWorkQueue, allocatUser);
     for (int i = 0; i < m_UIParam.UnionIterationNumber ; i++)
     {
         RunPolyModeInAdvance(netWorkQueue, allocatUser);
     }
 }
コード例 #4
0
ファイル: CoSnapshot.cs プロジェクト: xiaoyj/Space
        /// <summary>
        /// 迭代计算
        /// </summary>
        private void CalcIteration()
        {
            Dictionary<NetWorkType, List<ISimCellBase>> cellDic = GetNetCellDic();
            NetWorkTypeSort netWorkSort = new NetWorkTypeSort(m_Nets, cellDic);
            netWorkSort.NetQosDic = m_UIParam.NetDic;

            List<NetWorkType> netWorkQueue = netWorkSort.Sort(m_UIParam.AllocateType);

            AllocateUser allocatUser = new AllocateUser(m_Nets, m_LoadStatusDic, m_SnapshotContext, m_UIParam.AllocateType, m_VersionDic);
            SetAllocatUserProperty(m_UIParam, allocatUser);
            allocatUser.SetUsers(m_Users);
            RunSnapshots(netWorkQueue, allocatUser);

        }