private void RunPolyModeInAdvance(List<NetWorkType> types, AllocateUser allocateUser) { foreach (NetWorkType type in types) { allocateUser.AllocatePolyModeUsers(type); m_ResultDic[type] = RunOneNetWorkSnapshots(type); allocateUser.RefreshPreAccessUsers(type); } }
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; }
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); } }
/// <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); }