private void SaveScheduledRelay(SimulationUser user, UlResAssignOutput result) { user.PreScheduleTime = base.CurTTI; user.RbList = result.RbIndexs; user.UlMcsEff = UlScheduleTools.GetMcsBySinr(user, user.PuschSinr); user.realScheduleTBS = result.realTBS; user.State = State.Service; }
private void GenerateScheduleInfo(IUlScheduleUser user, ref int residualRb, ref int scheduledUserNum, UlResAssignOutput result) { if ((result != null) && (result.RBNum > 0)) { user.UlRbNum = (byte)result.RBNum; residualRb -= result.RBNum; //保存本次调度用户的调度完的信息 this.SaveScheduledUser(user, result.RbIndexs, result.MeasureSinr, result.FinalSinr, result.TBSAvailable, result.realTBS); base.UpdateUserRbInfo(user, result.RbIndexs); scheduledUserNum++; } else { this.UserPackageLoss(user); } }
private void GenerateScheduleInfo(SimulationUser user, ref int residualRb, UlResAssignOutput result) { if ((result != null) && (result.RBNum > 0)) { user.UlRbNum = (byte)result.RBNum; residualRb -= result.RBNum; //保存本次调度用户的调度完的信息 this.SaveScheduledRelay(user, result); base.UpdateUserRbInfo(user, result.RbIndexs); } }