Пример #1
0
 public void InitUserTotalLossList(List<ISimulationUser> userList, List<ISimulationCarrier> allCarrierList, ReportProgressDelegate reporter)
 {
     Dictionary<int, List<CarrierTotalLoss>> userTotalLossDic = new Dictionary<int, List<CarrierTotalLoss>>();
     //这样排列有什么意义没
     allCarrierList.Sort(new Comparison<ISimulationCarrier>(this.SortCarrierBySite));
     this.initUserTotalLossDic(userList, userTotalLossDic);
     ISimulationCarrier preCarrier = null;
     float count = allCarrierList.Count;
     //用28除是什么意思
     float usedCounter = 28f / count;
     foreach (SimulationCarrier carrier2 in allCarrierList)
     {
         this.ClearUserSiteShadowValue(preCarrier, carrier2);
         List<User> inComputerAreaUsers = this.GetInComputerAreaUsers(userList, carrier2);
         this.UpdateUserTotalLoss(inComputerAreaUsers, carrier2, userTotalLossDic);
         if (reporter != null)
         {
             reporter(usedCounter);
         }
     }
     this.m_TotalLossCalObj.releaseMediacy();
     this.m_TotalLossCalObj = null;
     GC.Collect();
     this.initCarrierListInComputeArea(userList, userTotalLossDic);
 }
Пример #2
0
 public TotalLossMatrix(OtherSubSysInterface subSysInterface, Coefficient coefficientABC)
 {
     this.m_TotalLossCalObj = new TotalLossCalculation(subSysInterface, coefficientABC);
 }