private SimGroup CloneGroup(SimGroup originalGroup) { SimGroup group = new SimGroup(this.m_subSysInterface); string nameOfSimulation = originalGroup.Param.NameOfSimulation; CustomizedParamForSimulation simulation = new CustomizedParamForSimulation(); group.Param = simulation; group.Param.NameOfSimulation = originalGroup.Param.NameOfSimulation; group.Param.Comments = originalGroup.Param.Comments; group.Param.NumOfSnapShot = originalGroup.Param.NumOfSnapShot; group.Param.IsExecuteLater = originalGroup.Param.IsExecuteLater; group.Param.ScalingFactor = originalGroup.Param.ScalingFactor; group.Param.MapList = originalGroup.Param.MapList; group.Param.PolygonList = originalGroup.Param.PolygonList; group.Param.NumOfTTI = originalGroup.Param.NumOfTTI; group.Param.SiteCorr = originalGroup.Param.SiteCorr; group.Param.BLER = originalGroup.Param.BLER; group.Param.IsFixure = originalGroup.Param.IsFixure; group.Param.IsHARQ = originalGroup.Param.IsHARQ; group.Param.IsIRC = originalGroup.Param.IsIRC; group.Param.IsTTIBundling = originalGroup.Param.IsTTIBundling; group.Param.IsVMIMO = originalGroup.Param.IsVMIMO; group.Param.IOTConThreshold = originalGroup.Param.IOTConThreshold; group.Param.DLLoadConThreshold = originalGroup.Param.DLLoadConThreshold; group.Param.DLThroughputConThreshold = originalGroup.Param.DLThroughputConThreshold; group.Param.ULLoadConThreshold = originalGroup.Param.ULLoadConThreshold; group.Param.ULThroughputConThreshold = originalGroup.Param.ULThroughputConThreshold; group.CellList = originalGroup.CellList; this.AdjustGroupAttribute(group); return group; }
public void AddGroup(CustomizedParamForSimulation param) { SimGroup item = new SimGroup(param, this.m_subSysInterface); this.m_simGroups.Add(item); TreeNode node = new TreeNode(); node.Text = item.GroupName; node.ImageKey = "Group"; node.SelectedImageKey = "Group"; node.StateImageIndex = 1; node.ContextMenuStrip = this.m_GroupContextMenuStrip; this.m_Node.Nodes.Add(node); this.m_Node.TreeView.SelectedNode = node; this.SetNeedPromptSave(); }
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 SimulationProperty() { this.components = null; this.m_CustomParam = null; this.InitializeComponent(); }
private void Init() { this.polygonList = this.m_otherSubSysInterface.PolygonRegion; this.mapList = this.m_otherSubSysInterface.TrafficMapService.TrafficMapList; this.m_CustomParam = new CustomizedParamForSimulation(); this.m_selectSimGroup = this.m_SimGroupManager.FindGroup(this.m_SimGroupName); this.tbName.Text = this.m_selectSimGroup.GroupName; this.tbComments.Text = this.m_selectSimGroup.Param.Comments; this.ntbNumofSim.Value = this.m_selectSimGroup.Param.NumOfSnapShot; this.BLER.Value = ((decimal) this.m_selectSimGroup.Param.BLER) * 100M; this.ntbScalingFactor.Value = this.m_selectSimGroup.Param.ScalingFactor; this.AddPolyNameToComboBox(); this.AddMapNameToComboBox(); this.numofIterations.Value = this.m_selectSimGroup.Param.NumOfTTI; this.siteCorr.Value = (decimal) this.m_selectSimGroup.Param.SiteCorr; this.cellCorr.Value = (decimal) this.m_selectSimGroup.Param.CellCorr; this.cbxFixure.Checked = this.m_selectSimGroup.Param.IsFixure; this.chkHARQ.Checked = this.m_selectSimGroup.Param.IsHARQ; this.chkIRC.Checked = this.m_selectSimGroup.Param.IsIRC; this.chkTTIBundling.Checked = this.m_selectSimGroup.Param.IsTTIBundling; //this.chkVMIMO.Checked = this.m_selectSimGroup.Param.IsVMIMO; this.IOTConThreshold.Value = (decimal) this.m_selectSimGroup.Param.IOTConThreshold; this.DlLoadConThreshold.Value = ((decimal) this.m_selectSimGroup.Param.DLLoadConThreshold) * 100M; this.DlThroughputConThreshold.Value = ((decimal) this.m_selectSimGroup.Param.DLThroughputConThreshold) * 100M; this.UlLoadConThreshold.Value = ((decimal) this.m_selectSimGroup.Param.ULLoadConThreshold) * 100M; this.UlThroughputConThreshold.Value = ((decimal) this.m_selectSimGroup.Param.ULThroughputConThreshold) * 100M; this.btnApply.Enabled = false; }
public void ModifyGroup(CustomizedParamForSimulation param) { TreeNode selectedNode = this.m_Node.TreeView.SelectedNode; SimGroup group = this.FindGroup(selectedNode.Text); if (group == null) { group = this.FindGroup(param.NameOfSimulation); } group.Param = param; group.GroupName = param.NameOfSimulation; selectedNode.Text = param.NameOfSimulation; this.SetNeedPromptSave(); }