public PredictionDataManager(PredictionGroup pg, PredictionConfig cfg, OtherSubSysInterface interfaces, ProgressHandle pgrsHandle, string savepath, string projectName) { this.m_Interfaces = interfaces; this.m_Group = pg; this.m_PredictionCfg = cfg; this.m_ProgressHandle = pgrsHandle; this.m_DLBLER = pg.DLBLER; this.m_ULBLER = pg.ULBLER; this.m_CalcLTECells = new LTECalcCellsInfoCollection(); this.m_CaseDataManager = new CaseDataManager(this.m_Group, savepath, projectName); this.m_AllPolygonsCellCalcInfo = new List<LTECalcCellsInfoCollection>(); this.m_NeedCalActualRxIntf = false; this.m_NeedCalMaxRxIntf = false; this.m_NeedCalSecondMaxRSRP = false; this.m_NeedCalSymbolRSRP = false; this.m_NeedCalOverlapping = false; this.NeedCreateActualRxPowerValueMatrix(); this.NeedCreateMaxRxPowerValueMartix(); this.NeedCalSecondMaxRSRP(); this.NeedCalSymbol_RSRP(); this.NeedCalOverlapping(); this.SetSavingPath(savepath, projectName); }
public CalculateEngine(PredictionGroup pg, PredictionConfig predictioncfg, OtherSubSysInterface interfaces, string savepath, string projectName, bool isRF) { this.InitialMember(pg, predictioncfg, interfaces, savepath, projectName, isRF); }
private void InitialMember(PredictionGroup pg, PredictionConfig predictioncfg, OtherSubSysInterface interfaces, string savepath, string projectName, bool isRF) { this.m_Interfaces = interfaces; this.m_Group = pg; this.m_CalcStep = CalcStep.BestServerCalcStep; if (isRF) { this.m_ProgressHandle = new ProgressHandle(projectName); } else { this.m_ProgressHandle = new ProgressHandle(projectName + pg.Name); } this.m_LinkPrediction = this.m_Interfaces.LossCalculatorBuilder.GetCalculator(this.m_Group.CellEdgeCoverageProbability); this.m_LinkPrediction.SetPareForPrediction((this.m_Group.TrafficService as UnionPsService).BodyLoss, this.m_Group.TrafficTerminal.NetTerminalList[0].Loss, this.m_Group.TrafficTerminal.Attenuation, this.m_Group.TrafficTerminal.Gain, this.m_Group.CellEdgeCoverageProbability, this.m_Group.IsShadowdowAccout, this.m_Group.IsIndoorCoverage); this.m_DataManager = new PredictionDataManager(this.m_Group, predictioncfg, this.m_Interfaces, this.m_ProgressHandle, savepath, projectName); this.InitialSuite(); }
private void PredictionTableToData(PredictionSystemData predictionData, XlsTable xTable, IEventViewService eventViewService) { PredictionConfig config = new PredictionConfig(); for (int i = 0; i < xTable.Data.Rows.Count; i++) { DataRow row = xTable.Data.Rows[i]; try { config.Resolution = float.Parse(row["Default Resolution(m)"].ToString()); config.UEHeight = float.Parse(row["Receiver Height(m)"].ToString()); } catch (Exception exception) { eventViewService.WriteLog(string.Format(LTEPredictionResource.PREDICTION_TABLE_CONVERT_FAIL, Convert.ToString((int) (i + 1))), Huawei.UNet.Frame.Interface.LogLevel.Warning); WriteLog.Logger.Error(exception.StackTrace); config = null; } } predictionData.PredictionConfig = config; }