public void GetherSnapShortStatColDisplay(OtherSubSysInterface subSys) { this.SnapShortStatColDisplay.Clear(); List<int> snapshotIndexs = this.GetSnapshotIndexs(); foreach (int num in snapshotIndexs) { SnapShotStatData snapShotStatData = this.GetSnapShotStatData(num, subSys); if (snapShotStatData != null) { SnapShotStatColumnDisplay display = new SnapShotStatColumnDisplay(); foreach (string str in snapShotStatData.CellGridUnvisible) { display.CellGridUnvisible.Add(str); } foreach (string str in snapShotStatData.SiteGridUnvisible) { display.SiteGridUnvisible.Add(str); } foreach (string str in snapShotStatData.UserGridUnvisible) { display.UserGridUnvisible.Add(str); } this.m_SnapShortStatColDisplay.Add(num, display); snapShotStatData = null; } } }
public LegendExportAndImport(OtherSubSysInterface subSysInterface) { this.m_SubSysInterface = subSysInterface; this.m_StudyTypeDic = new Dictionary<PredictionStudyType, string>(); this.m_StudyTypeDic.Add(this.m_DiscreteStudy, "Discrete_values"); this.m_StudyTypeDic.Add(this.m_IntervalStudy, "Interval_values"); }
public SimulationFrmUIModel(SimGroupManager groupManager, OtherSubSysInterface subSys, SimGroup simGroup) { this.m_GroupManager = groupManager; this.m_otherSubSysInterface = subSys; this.m_simGroup = simGroup; this.Init(); }
public PredictionStatisticsManager(PredictionGroup pg, OtherSubSysInterface subSysInterface) { this.m_ActualMaxValue = -32768f; this.m_ActualMinValue = 0x7fffffff; this.m_SubSysInterface = subSysInterface; this.m_PredictionGroup = pg; }
public GroupPropertiesForm(PredictionGroupsManager pgm, OtherSubSysInterface subSysInterface) { this.m_SubSysInterface = subSysInterface; this.InitializeComponent(); this.m_PredictionGroupsManager = pgm; this.Init(); }
public SimulationProperty(string nodeName, SimGroupManager groupManager, OtherSubSysInterface subSys) : this() { this.m_SimGroupManager = groupManager; this.m_otherSubSysInterface = subSys; this.m_SimGroupName = nodeName; this.Init(); }
public SnapShotStatData GenerateStatisticData(int beginStaTime, int endStaTime, OtherSubSysInterface subSysInterface, int snapshotId) { StaSimulationCarrier carrier = new StaSimulationCarrier(); SnapShotStatData data = new SnapShotStatData(); data.SnapShotName = SimulationTools.GenerateSnapshotName(snapshotId); data.DlRsrpFailList.AddRange(this.DlRsrpFailUserList); data.UlRsrpFailList.AddRange(this.UlRsrpFailUserList); List<StatSimuCarrierResult> carrierResList = carrier.Statistic(beginStaTime, endStaTime, this.m_SimulationCarrierList, subSysInterface); data.StatSimuSiteResultList = new StaSimulationSite().Statistic(carrierResList, this.m_SimulationCarrierList); foreach (SimulationCarrier carrier2 in this.m_SimulationCarrierList) { this.SelectUsers(carrier2.OffLineUserList, data.OffLineList); List<ISimulationUser> waitUserList = new List<ISimulationUser>(); waitUserList.AddRange(carrier2.DlDataWaitUserList); waitUserList.AddRange(carrier2.DlVoiceWaitUserList); waitUserList.AddRange(carrier2.UlDataWaitUserList); waitUserList.AddRange(carrier2.UlVoiceWaitUserList); temp = carrier2.count; this.ClassifyWaitUsers(waitUserList, data); data.SatisfiedList.AddRange(this.ToISimuUser(carrier2.UlVoiceServiceUserList)); data.SatisfiedList.AddRange(this.ToISimuUser(carrier2.UlDataServiceUserList)); data.SatisfiedList.AddRange(this.ToISimuUser(carrier2.DlVoiceServiceUserList)); data.SatisfiedList.AddRange(this.ToISimuUser(carrier2.DlDataServiceUserList)); data.DlRsSinrFailList.AddRange(this.ToISimuUser(carrier2.FailUserList)); data.UlRsSinrFailList.AddRange(this.ToISimuUser(carrier2.UlRsSinrFailUserList)); } data.WholeNetDLInstantaneousThroughput = this.m_WholeNetDLThroughput; data.WholeNetULInstantaneousThroughput = this.m_WholeNetULThroughput; return data; }
private string GetUserMIMOType(SimulationUser user, OtherSubSysInterface subSysInterface) { if (subSysInterface != null) { return UserManager.getInstance().GetMIMOType(subSysInterface, user).Name; } return string.Empty; }
public MonteCarloSnapResult GetMonteCarloSnapData(int index, OtherSubSysInterface subSys) { SnapShotResult snapShotResult = this.GetSnapShotResult(index, subSys); if (snapShotResult != null) { return snapShotResult.MonteCarloSnapData; } return null; }
public SimulationFrmControl(SimGroupManager groupManager, OtherSubSysInterface subSys, SimGroup simGroup, FormOpenType frmType) { if (frmType == FormOpenType.New) { simGroup.GroupName = this.GenerateNewName(); } this.m_GroupManager = groupManager; this.m_FrmUIModel = new SimulationFrmUIModel(this.m_GroupManager, subSys, simGroup); }
public PRACH_SINRCase(PredictionDataManager datamanager, OtherSubSysInterface otherIntf, CaseValueTemp oneBinValueTemp) { this.m_DataManager = datamanager; this.m_Interface = otherIntf; this.m_InvalidateValue = DefaultValueDefine.GetBestServerCarrierIDResult(ResultValueType.INVALID); this.m_OneBinValueTemp = oneBinValueTemp; this.m_IsDebugEnable = LTEPredictionLogForTest.IsDebugEnabled(); this.m_PrachPower = (this.m_DataManager.Group.TrafficTerminal.NetTerminalList[0] as LTETerminal).PrachPower; }
public PredictionStatisticsManager(string checkedtype, List<PredictionGroup> pglist, List<bool> IsShow, OtherSubSysInterface subSysInterface, ZedGraphControl zgc) { this.m_ActualMaxValue = -32768f; this.m_ActualMinValue = 0x7fffffff; this.m_checkedtype = checkedtype; this.m_pglist = pglist; this.m_ZedGraph = zgc; this.m_SubSysInterface = subSysInterface; this.m_IsShow = IsShow; }
public BinSearchCalculator(PredictionDataManager dataManager, OtherSubSysInterface otherInterface, ILTELinkLossCalculator linkloss, ProgressHandle progress) { this.m_DataMgr = dataManager; this.m_Interface = otherInterface; this.m_LinkLoss = linkloss; this.m_LinkLoss.InitialClutterInfo(); this.m_ProgressHandle = progress; this.m_OneBinValueTemp = new CaseValueTemp(); this.m_BinCases = new List<IBinSearchCase>(); }
public TotalLossCalculation(OtherSubSysInterface subSysInterface, Coefficient coefficientABC) { this.m_SubSysInterface = subSysInterface; this.m_AutoRandom = new Random(this.GetHashCode()); if (SimulationConstant.USE_LINKLOSS && (subSysInterface != null)) { this.m_LinkLoss = this.m_SubSysInterface.LossCalculatorBuilder.GetCalculator(0.85f); } this.m_Coefficientabc = coefficientABC; }
private MIMO GetMimo(OtherSubSysInterface subSysInterface, int txAntNumber, int rxAntNumber, bool isSmSupport) { MIMO mimo = subSysInterface.ITrafficMCS.GetMIMO(txAntNumber, rxAntNumber, isSmSupport); if (mimo == null) { string str = string.Format(SimulationResource.SIMULATION_GET_MIMO_ERROR, txAntNumber, rxAntNumber, isSmSupport); throw new Exception(SimulationResource.SIMULATION_GET_MIMO_ERROR_PROMPT + str); } return mimo; }
private MIMO GetMimo(OtherSubSysInterface subSysInterface, SimulationUser user, bool isSmSupport) { LTETerminal terminal = user.LTEUser.Terminal.NetTerminalList[0] as LTETerminal; if (user.LTEUser.LinkType == LinkType.Uplink) { int rxNum = SimulationTools.GetRxNum(user.BestServiceCarrier); return this.GetMimo(subSysInterface, terminal.TxAntNumber, rxNum, isSmSupport); } int txNum = SimulationTools.GetTxNum(user.BestServiceCarrier); return this.GetMimo(subSysInterface, txNum, terminal.RxAntNumber, isSmSupport); }
public PredictionStatisticsManager(TreeNode treenode, PredictionGroupsManager pgm, ZedGraphControl zgc, ListBox lb, OtherSubSysInterface subSysInterface) { this.m_ActualMaxValue = -32768f; this.m_ActualMinValue = 0x7fffffff; this.m_SubSysInterface = subSysInterface; this.m_TreeNode = treenode; this.m_PredictionGroupManager = pgm; this.m_ZedGraph = zgc; this.m_ListBox = lb; this.Init(); }
public StudyPropertiesForm(PredictionGroupsManager pgm, OtherSubSysInterface subSysInterface) { this.m_SubSysInterface = subSysInterface; this.InitializeComponent(); this.m_PredictionGroupsManager = pgm; this.m_PredictionStudyManager = new PredictionStudyManager(pgm, this.dgvLegend, this.cmbDisplayType, this.cmbField, this.m_SubSysInterface); this.m_DefaultConfig = new DefaultLegendConfig(); this.CheckAll.CheckedChanged -= new EventHandler(this.CheckAll_CheckedChanged); this.Init(); this.CheckAll.CheckedChanged += new EventHandler(this.CheckAll_CheckedChanged); }
public SimGroup(OtherSubSysInterface subSys) { this.m_PolygonList = new List<GeoPolygonRegion>(); this.m_GraphResult = new Dictionary<string, List<float>>(); this.m_IsNew = true; this.m_unit = new List<string>(); this.m_groupName = ""; this.m_GenUserLocker = new object(); this.cellGroupAvgGridUnvisible = new List<string>(); this.siteGroupGridUnvisible = new List<string>(); this.m_otherSubSysInterface = subSys; }
public List<StatSimuCarrierResult> Statistic(int beginStaTime, int endStaTime, List<ISimulationCarrier> simulationCarrierList, OtherSubSysInterface subSysInterface) { List<StatSimuCarrierResult> list = new List<StatSimuCarrierResult>(); StaSimulationUser statisticProcessor = new StaSimulationUser(); foreach (SimulationCarrier carrier in simulationCarrierList) { int num = (endStaTime - beginStaTime) + 1; StatSimuCarrierResult staSimulationCarrierResult = new StatSimuCarrierResult(); staSimulationCarrierResult.TxPower = SimulationTools.ConvertLineTodB(this.CalculateAvgTxPower(beginStaTime, endStaTime, carrier)); staSimulationCarrierResult.UlScheduleUserNum = ((float) carrier.UlWarmupTotalScheduleUserNum) / ((float) ((endStaTime - beginStaTime) + 1)); staSimulationCarrierResult.UlAvgVMIMOUsedRbRate = (((float) carrier.UlWarmupTotalVMIMOUsedRB) / ((float) num)) / ((float) carrier.PuschRbNum); staSimulationCarrierResult.UlIoT = carrier.UlIoT; staSimulationCarrierResult.UlAvgUsedRbNum = this.CalculateUlAvgUsedRbNum(beginStaTime, endStaTime, carrier); staSimulationCarrierResult.DlAvgUsedRbNum = this.CalculateDlAvgUsedRbNum(beginStaTime, endStaTime, carrier); staSimulationCarrierResult.UlAvgLoad = this.CalculateUlAvgLoad(beginStaTime, endStaTime, carrier); staSimulationCarrierResult.DlAvgLoad = this.CalculateDlAvgLoad(beginStaTime, endStaTime, carrier); staSimulationCarrierResult.UlAvgThroughput = this.CalculateUlCarrierAvgThroughput(beginStaTime, endStaTime, carrier); staSimulationCarrierResult.DlAvgThroughput = this.CalculateDlCarrierThroughput(beginStaTime, endStaTime, carrier); staSimulationCarrierResult.UlAppAvgThroughput = carrier.WarmupTotalTh.UlAppThroughput / ((float) num); staSimulationCarrierResult.DlAppAvgThroughput = carrier.WarmupTotalTh.DlAppThroughput / ((float) num); staSimulationCarrierResult.DlPeakThroughput = carrier.CarrierPeakThr.DlMacThroughput; staSimulationCarrierResult.UlPeakThroughput = carrier.CarrierPeakThr.UlMacThroughput; staSimulationCarrierResult.DlPeakAplThroughput = carrier.CarrierPeakThr.DlAppThroughput; staSimulationCarrierResult.UlPeakAplThroughput = carrier.CarrierPeakThr.UlAppThroughput; staSimulationCarrierResult.ServicePeakThDic = carrier.ServicePeakThDic; staSimulationCarrierResult.ServiceAvgThDic.Clear(); foreach (string str in carrier.ServiceWarmUpTotalThDic.Keys) { float ulmac = carrier.ServiceWarmUpTotalThDic[str].UlMacThroughput / ((float) num); float dlmac = carrier.ServiceWarmUpTotalThDic[str].DlMacThroughput / ((float) num); float ulapl = carrier.ServiceWarmUpTotalThDic[str].UlAppThroughput / ((float) num); float dlapl = carrier.ServiceWarmUpTotalThDic[str].DlAppThroughput / ((float) num); ThroughputGroup group = new ThroughputGroup(ulmac, dlmac, ulapl, dlapl); staSimulationCarrierResult.ServiceAvgThDic.Add(str, group); } staSimulationCarrierResult.UlScheduleTh = (carrier.UlScheduleTh * 1000f) / ((float) ((endStaTime - beginStaTime) + 1)); staSimulationCarrierResult.CarrierID = carrier.Carrier.ID; staSimulationCarrierResult.CellName = SimulationTools.GetTransName(carrier); staSimulationCarrierResult.CarrierName = carrier.Carrier.Name; List<StatSimuUserResult> userResult = new List<StatSimuUserResult>(); this.UpdateUserFailReason(carrier.DlUserList); this.UpdateUserFailReason(carrier.UlUserList); this.StatisticUsers(carrier.DlUserList, userResult, statisticProcessor, beginStaTime, endStaTime, subSysInterface); this.StatisticUsers(carrier.UlUserList, userResult, statisticProcessor, beginStaTime, endStaTime, subSysInterface); this.StatisticUsers(carrier.FailUserList, userResult, statisticProcessor, beginStaTime, endStaTime, subSysInterface); this.StatisticUsers(carrier.UlRsSinrFailUserList, userResult, statisticProcessor, beginStaTime, endStaTime, subSysInterface); staSimulationCarrierResult.StatSimuUserResultList = userResult; this.StatisticStateUserNum(userResult, staSimulationCarrierResult); carrier.count = count; list.Add(staSimulationCarrierResult); } return list; }
public PredictionExportDataForm(PredictionGroupsManager pgm, OtherSubSysInterface subSysInterface, IApplicationContext appContext) { this.m_AppContext = appContext; this.m_SubSysInterface = subSysInterface; this.m_PredictionGroupsManager = pgm; this.InitializeComponent(); this.GetClutter(); this.ExportDataDisplay(); this.dgvExpoertData.AllowUserToAddRows = false; this.dgvExpoertData.AllowUserToDeleteRows = false; this.dgvExpoertData.ServiceCustom.ServiceCustomDic[DgvServiceEnum.RecordProperties] = false; this.dgvExpoertData.ServiceCustom.ServiceCustomDic[DgvServiceEnum.Copy] = false; this.dgvExpoertData.ServiceCustom.ServiceCustomDic[DgvServiceEnum.Paste] = false; }
public CDFCompareForm(PredictionGroupsManager pgm, OtherSubSysInterface SubSysInterface) { this.InitializeComponent(); this.m_PredictionGroupManager = pgm; this.m_SubSysInterface = SubSysInterface; this.cboStudy.SelectedIndex = 0; this.Init(); this.m_PredictionStatisticsManager = new PredictionStatisticsManager((string) this.cboStudy.SelectedItem, this.m_pglist, this.m_IsShow, this.m_SubSysInterface, this.zgc); this.m_PredictionStatisticsManager.PredictionGroupManager = pgm; this.m_PredictionStatisticsManager.LineColor = this.m_Color; this.ShowCDF(); this.cboStudy.SelectedIndexChanged += new EventHandler(this.cboStudy_SelectedIndexChanged); this.dgvGroup.CellContentClick += new DataGridViewCellEventHandler(this.dgvGroup_CellContentClick); }
public SimulationContextMenuView(TreeNode node, OtherSubSysInterface subSys, UserInformationInMap userInfo, SimGroupManager groupManager, IApplicationContext appContext) { this.components = null; this.simGroupIndex = 0; this.isfirst = true; this.FT = FieldType.State; this.DT = DisplayType.DiscreteValues; this.calculatFlag = false; this.isFirstAddGroup = false; this.m_SubSysInterface = subSys; this.m_UserInfo = userInfo; this.m_SimGroupManager = groupManager; this.m_ParentNode = node; this.AppContext = appContext; this.InitializeComponent(); this.Init(); }
public float GetMIMOClutterGain(OtherSubSysInterface subSysInterface, SimulationUser user, bool isSmSupport) { if ((user.BestServiceCarrier != null) && (subSysInterface != null)) { float num; MIMO key = this.GetMimo(subSysInterface, user, isSmSupport); if (!this.m_MimoClutterGainDic.TryGetValue(key, out num)) { float spatialMultiplex = subSysInterface.IClutterParams.GetClutterParamByCode(user.LTEUser.Clutter.Id).SpatialMultiplex; double num3 = SimulationTools.ConvertdBToLine(key.SmGain); num = Convert.ToSingle((double) (1.0 + ((num3 - 1.0) * spatialMultiplex))); this.m_MimoClutterGainDic.Add(key, num); } return num; } return 1f; }
public SimGroup(CustomizedParamForSimulation param, OtherSubSysInterface subSys) { this.m_PolygonList = new List<GeoPolygonRegion>(); this.m_GraphResult = new Dictionary<string, List<float>>(); this.m_IsNew = true; this.m_unit = new List<string>(); this.m_groupName = ""; this.m_GenUserLocker = new object(); this.cellGroupAvgGridUnvisible = new List<string>(); this.siteGroupGridUnvisible = new List<string>(); this.m_param = param; this.m_groupName = param.NameOfSimulation; this.m_otherSubSysInterface = subSys; this.m_PolygonList = param.PolygonList; this.m_calcCells = new List<Transceiver>(); this.m_MapList = param.MapList; //this.ReadDatabaseToList(); }
public void DeleteResultFile(OtherSubSysInterface subSys) { string path = string.Empty; string str2 = string.Empty; try { foreach (string str3 in this.m_SnapshotDataFileNameDic.Values) { str2 = str3.Split(new string[] { @"\" }, StringSplitOptions.RemoveEmptyEntries)[0]; break; } if (str2 != string.Empty) { path = SimulationTools.GetResultFilePath(subSys) + str2; Directory.Delete(path, true); } } catch (Exception) { subSys.EventViewService.WriteLog("Remove SimulationResult File " + path + " Failed", Huawei.UNet.Frame.Interface.LogLevel.Info); } }
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 AverageResultCalculator(OtherSubSysInterface subSysInterface) { this.m_OtherSubSysInterface = subSysInterface; }
public CalculateTargetValue(PredictionGroupsManager tempManger, OtherSubSysInterface subSysInterface) { this.groupManger = tempManger; this.m_SubSysInterface = subSysInterface; }
public static SnapShotResult DeserializeSnapshotData(string fileName, OtherSubSysInterface subSys) { SnapShotResult result = null; string resultFilePath = ""; try { resultFilePath = GetResultFilePath(subSys); IFormatter formatter = new BinaryFormatter(); Stream serializationStream = new FileStream(resultFilePath + fileName, FileMode.Open, FileAccess.Read, FileShare.Read); result = formatter.Deserialize(serializationStream) as SnapShotResult; serializationStream.Close(); } catch (Exception exception) { subSys.EventViewService.WriteLog("Open File: " + resultFilePath + fileName + " Failed", Huawei.UNet.Frame.Interface.LogLevel.Error); WriteLog.Logger.Error("Open File: " + resultFilePath + fileName + " Failed \n" + GetExceptionStack(exception)); result = null; } return result; }