Esempio n. 1
0
 public void AutoLoadData(ISubSystemData systemData)
 {
     SimSerializeData data = systemData as SimSerializeData;
     if (data != null)
     {
         this.m_GroupCollection.SetExclusiveID(data.ExclusiveID);
         foreach (ISimulationGroup group in data.Groups)
         {
             this.m_GroupCollection.Add(group);
         }
         ProjectSingleton.CurrentProject.NeedPromptSave = false;
     }
 }
Esempio n. 2
0
 public void AutoLoadData(ISubSystemData systemData)
 {
     PredictionSystemData psd = (PredictionSystemData) systemData;
     this.m_PredictionGroupsManager.PredictionConfigTemplate = psd.PredictionConfig;
     psd.PredictionGroupList.Reverse();
     this.m_PredictionGroupsManager.PredictionGroups.AddRange(psd.PredictionGroupList);
     this.m_PredictionGroupsManager.AddPredictionGroup(this.m_PredictionGroupsManager.PredictionGroups);
     this.m_PredictionGroupsManager.PredictionGroups.Reverse();
     this.m_IPredicForTrafficMap.LoadGroups(this.m_PredictionGroupsManager.PredictionGroups);
     this.m_PredictionGroupsManager.PredictionLegendManagement = new PredictionLegendManager(this.m_PredictionGroupsManager.PredictionGroups, this.m_SubSysInterface, psd.NeedShowIndex);
     new PredictionModuleManager(this.m_PredictionGroupsManager, this.m_SubSysInterface).FreshResult(this.m_PredictionGroupsManager.PredictionGroups);
     this.m_PredictionGroupsManager.RootNode.StateImageIndex = psd.RootNodeState;
     this.SetTreeState(psd, this.m_PredictionGroupsManager.RootNode, string.Empty);
     this.m_PredictionResultManager.MapReDraw();
 }
Esempio n. 3
0
 public void AutoLoadData(ISubSystemData systemData)
 {
     LTESimulationData data = systemData as LTESimulationData;
     this.m_SimGroupManager.SimGroups.Clear();
     if (data != null)
     {
         foreach (SimGroup group in data.SimulationGroup)
         {
             group.SetOtherSubSysInterface(this.m_SubSysInterface);
             this.m_SimGroupManager.SimGroups.Add(group);
         }
         this.m_SimulationView = new SimulationContextMenuView(this.m_NodeOperations[0].SubSysNode, this.m_SimGroupManager.SimGroups, this.m_SubSysInterface, this.m_UserInfo, this.m_SimGroupManager, this.m_AppContext);
         this.m_SimGroupManager.LoadSnapShotStatColDisplay();
         this.SetNodeCheckState(this.m_NodeOperations[0].SubSysNode, data.NodeCheckState);
     }
 }
Esempio n. 4
0
 public void AutoLoadData(ISubSystemData systemData)
 {
     try
     {
         if (!this.m_NetWorkTypeList.Contains(NetWorkType.CDMA))
         {
             this.m_TrafficMapSerializedData = (TrafficMapSerializedData) systemData;
             this.ClearMapData();
             this.UpdateSavedToProject();
             this.setMapNodeCheckState();
         }
     }
     catch (Exception exception)
     {
         WriteLog.Logger.Error(exception.StackTrace);
         throw exception;
     }
 }
Esempio n. 5
0
 public void AutoLoadData(ISubSystemData systemData)
 {
     try
     {
         if (this.m_NetWorkType != NetWorkType.CDMA)
         {
             this.m_TrafficSerializedData = (TrafficSerializedData) systemData;
             this.m_DeSerializeHelper = new DeSerializedHelper(this.m_Model, this.m_TrafficSerializedData, this.m_NetWorkTypeList);
             this.m_DeSerializeHelper.ClearDataToManagement();
             this.m_DeSerializeHelper.UpdateDataToManagement();
         }
     }
     catch (Exception exception)
     {
         WriteLog.Logger.Error(exception.StackTrace);
         throw exception;
     }
 }
Esempio n. 6
0
 public void AutoLoadData(ISubSystemData systemData)
 {
     PropagSubSystemData psd = (PropagSubSystemData) systemData;
     this.ClearUpPropagData();
     this.m_ModelsMngr.PropModelCategoryList = psd.PropagationModelCategoryList;
     foreach (KeyValuePair<string, List<IPropagationModel>> kvpPropModel in psd.PropagationModelDic)
     {
         List<IPropagationModel> propModelList = kvpPropModel.Value;
         foreach (IPropagationModel propModel in propModelList)
         {
             this.PropParameterImp.AddPropModel(propModel);
         }
     }
     this.m_ModelsMngr.PropModelTree.PropModelCategoryList = psd.PropagationModelCategoryList;
     this.m_ModelsMngr.PropModelTree.UpdateTreeNodeList();
     int cwSymInfoNum;
     int propFunctionIndex = 0;
     foreach (KeyValuePair<string, IList<FileInfoBase>> kvpFileInfo in psd.FileInfoDic)
     {
         this.m_PropFunctions[propFunctionIndex].CWFileInfoList = kvpFileInfo.Value;
         this.m_PropFunctions[propFunctionIndex].LegendSymbolDict.Clear();
         List<CWSymboInformation> CWSymInfoList = psd.CWSymboInformationList[kvpFileInfo.Key];
         for (cwSymInfoNum = 0; cwSymInfoNum < CWSymInfoList.Count; cwSymInfoNum++)
         {
             MaxMinValue key = CWSymInfoList[cwSymInfoNum].MMV;
             SymbolElement element = new SymbolElement(CWSymInfoList[cwSymInfoNum].SymbolValue, 
                 new FontFamily(CWSymInfoList[cwSymInfoNum].Family), CWSymInfoList[cwSymInfoNum].Style, 
                 CWSymInfoList[cwSymInfoNum].EMSize, CWSymInfoList[cwSymInfoNum].ForeColor);
             this.m_PropFunctions[propFunctionIndex].LegendSymbolDict.Add(key, element);
         }
         this.m_PropFunctions[propFunctionIndex].EncapsulationCwTree();
         propFunctionIndex++;
     }
     for (cwSymInfoNum = 0; cwSymInfoNum < this.m_PropFunctionsTree.Count; cwSymInfoNum++)
     {
         this.SetTreeState(psd, this.m_PropFunctions[cwSymInfoNum].RootNode, this.m_PropFunctions[cwSymInfoNum]);
     }
     ((PLCalcDataMngr) this.m_PLCalcDataMngr).FileAccesser.LoadRecordFile();
     ((PLCalcDataMngr)this.m_PLCalcDataMngr).RelayFileAccesser.LoadRecordFile();
 }
Esempio n. 7
0
 public override ISubSystemData ConvertXls(ISubSystemData iSubSystemData, XlsTable xlsTable)
 {
     ImportXLSManager manager = new ImportXLSManager(base.m_ServiceProvider as IApplicationContext);
     return manager.ConvertXls(xlsTable, iSubSystemData);
 }
Esempio n. 8
0
 public void AutoLoadData(ISubSystemData systemData)
 {
     throw new NotImplementedException();
 }
Esempio n. 9
0
 public void Import(ISubSystemData subsystem, bool isUpdate)
 {
 }
Esempio n. 10
0
 public void AutoLoadData(ISubSystemData systemData)
 {
 }
Esempio n. 11
0
 public void Import(ISubSystemData subsystem, bool isUpdate)
 {
 }
Esempio n. 12
0
 public void AutoLoadData(ISubSystemData systemData)
 {
 }
Esempio n. 13
0
 public void Import(ISubSystemData subsystem, bool isUpdata)
 {
     PredictionSystemData data = subsystem as PredictionSystemData;
     IEventViewService service = this.m_AppContext.Lookup(typeof(IEventViewService).FullName) as IEventViewService;
     if (isUpdata)
     {
         if (data.PredictionConfig != null)
         {
             this.m_PredictionGroupsManager.PredictionConfigTemplate.Resolution = data.PredictionConfig.Resolution;
             this.m_PredictionGroupsManager.PredictionConfigTemplate.UEHeight = data.PredictionConfig.UEHeight;
             service.WriteLog(LTEPredictionResource.PREDICTION_TABLE_IMPORT_SUCCESS, Huawei.UNet.Frame.Interface.LogLevel.Info);
         }
         else
         {
             service.WriteLog(LTEPredictionResource.PREDICTION_TABLE_IMPORT_FAIL, Huawei.UNet.Frame.Interface.LogLevel.Warning);
         }
     }
     else if (data.PredictionConfig != null)
     {
         service.WriteLog(LTEPredictionResource.PREDICTION_TABLE_IMPORT_SUCCESS, Huawei.UNet.Frame.Interface.LogLevel.Info);
     }
     else
     {
         service.WriteLog(LTEPredictionResource.PREDICTION_TABLE_IMPORT_FAIL, Huawei.UNet.Frame.Interface.LogLevel.Warning);
     }
 }
Esempio n. 14
0
 public void Import(ISubSystemData subsystem, bool isUpdate)
 {
     //throw new NotImplementedException();
 }
Esempio n. 15
0
 public void Import(ISubSystemData subsystem, bool isUpdata)
 {
     try
     {
         IAutomation trafficAuto = this.m_appContext.Lookup(typeof(IAutomation).FullName) as IAutomation;
         IEventViewService eventViewServic = this.m_appContext.Lookup(typeof(IEventViewService).FullName) as IEventViewService;
         TrafficSubSystemData data = subsystem as TrafficSubSystemData;
         ImportDataTool.TrafficService = this.m_TrafficService;
         ImportDataTool.ImportMcs(data.McsList, isUpdata, trafficAuto, eventViewServic);
         ImportDataTool.ImportMIMO(data.MIMOList, isUpdata, trafficAuto, eventViewServic);
         ImportDataTool.ImportMobility(data.MobilityList, isUpdata, trafficAuto, eventViewServic);
         ImportDataTool.ImportService(data.ServiceList, isUpdata, trafficAuto, eventViewServic);
         ImportDataTool.ImportTerminals(data.TerminalList, isUpdata, trafficAuto, eventViewServic);
         this.setServiceTermnalToServiceUsage(data.UserProfileEnvList);
         ImportDataTool.ImportUserProfiles(data.UserProfileEnvList, isUpdata, trafficAuto, eventViewServic);
         this.setUserMobilitToBinging(data.TrafficEnvList);
         ImportDataTool.ImportEnvironment(data.TrafficEnvList, isUpdata, trafficAuto, eventViewServic);
     }
     catch (Exception exception)
     {
         WriteLog.Logger.Error(exception.StackTrace);
     }
 }
Esempio n. 16
0
 public virtual ISubSystemData ConvertXls(ISubSystemData iSubSystemData, XlsTable xlsTable)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 17
0
 public void Import(ISubSystemData subsystem, bool isUpdate)
 {
     PropagSubSystemData data = (PropagSubSystemData) subsystem;
     foreach (KeyValuePair<string, List<IPropagationModel>> pair in data.PropagationModelDic)
     {
         string tableName = pair.Key;
         System.Type propModelTypeFromCategoryList = this.GetPropModelTypeFromCategoryList(tableName);
         if (propModelTypeFromCategoryList != null)
         {
             ((PathLosCalcMethod) this.m_IPTPLossCalcMethod).PLCalcCollection[propModelTypeFromCategoryList].ParseAndFillData(tableName, pair.Value, isUpdate, this.m_ModelsMngr.PropModelCategoryList);
         }
     }
     this.m_ModelsMngr.PropModelTree.UpdateTreeNodeList();
 }