当前位置: 首页>>代码示例>>C#>>正文


C# IApplicationContext.Lookup方法代码示例

本文整理汇总了C#中IApplicationContext.Lookup方法的典型用法代码示例。如果您正苦于以下问题:C# IApplicationContext.Lookup方法的具体用法?C# IApplicationContext.Lookup怎么用?C# IApplicationContext.Lookup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IApplicationContext的用法示例。


在下文中一共展示了IApplicationContext.Lookup方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: TrafficMapView

 public TrafficMapView(IApplicationContext context, List<NetWorkType> netWorkTypeList)
 {
     this.m_ServiceContext = context;
     this.m_NetWorkTypeList = netWorkTypeList;
     this.m_GeoProvider = context.Lookup(typeof(IDataProvider).FullName) as IDataProvider;
     this.m_TrafficMapService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
     this.m_GeoDataProvider = new GeoDataObserver(this.m_GeoProvider).GeoProvider;
     this.m_TrafficEvent = ServiceHelper.Lookup<ITrafficEvent>(context);
     this.InitializeComponent();
     this.Init();
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:11,代码来源:TrafficMapView.cs

示例2: TrafficMapModelServiceImpl

 public TrafficMapModelServiceImpl(IApplicationContext context)
 {
     this.m_ServiceContext = context;
     this.m_TrafficMapVectorData = new Huawei.UNet.Traffic.Map.Model.TrafficMapVectorData();
     this.m_EnvMapMgr = new Huawei.UNet.Traffic.Map.Model.EnvTrafficMapMgr(context, this, this.m_TrafficMapVectorData);
     this.m_VecMapMgr = new Huawei.UNet.Traffic.Map.Model.VectorTrafficMapMgr(context, this, this.m_TrafficMapVectorData);
     this.m_CellMapMgr = new Huawei.UNet.Traffic.Map.Model.CellTrafficMapMgr(context, this);
     this.m_TrafficMapMrg = new Huawei.UNet.Traffic.Map.Model.TrafficMapMgr(context);
     IDataProvider subject = context.Lookup(typeof(IDataProvider).FullName) as IDataProvider;
     this.m_GeoDataHandler = new GeoDataObserver(subject);
     this.m_TrafficEvent = context.Lookup(typeof(ITrafficEvent).FullName) as ITrafficEvent;
     IDataProvider provider2 = context.Lookup(typeof(IDataProvider).FullName) as IDataProvider;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:13,代码来源:TrafficMapModelServiceImpl.cs

示例3: TrafficMapFunctionImp

 public TrafficMapFunctionImp(IApplicationContext context, TrafficMapView trafficMapView)
 {
     this.m_Context = context;
     this.m_TrafficMapView = trafficMapView;
     this.m_TrafficMapModelService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
     this.m_GisPolygonAssist = this.m_TrafficMapModelService.GeoProvider.PolygonRegionAssist;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:TrafficMapFunctionImp.cs

示例4: CellUserGenerator

 public CellUserGenerator(IApplicationContext context)
 {
     this.m_ServiceContext = context;
     this.m_UserCollection = new UserCollection();
     this.m_CellClutterPtsCntDict = new Dictionary<int, Dictionary<short, int>>();
     this.m_CellClutterWeightFactorDict = new Dictionary<int, Dictionary<short, double>>();
     this.m_TrafficModelService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
     this.m_PolyAssist = this.m_TrafficModelService.PolygonRegionAssist;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:9,代码来源:CellUserGenerator.cs

示例5: InitStage1

 public void InitStage1(IApplicationContext appContext)
 {
     if (!this.m_NetTypeList.Contains(NetWorkType.CDMA))
     {
         TrafficMapModelServiceImpl mapModelService = new TrafficMapModelServiceImpl(appContext);
         TrafficMapServiceImpl service = new TrafficMapServiceImpl(mapModelService, appContext);
         appContext.RegisterService(mapModelService);
         appContext.RegisterService(service);
         (appContext.Lookup(typeof(IAppAgent).FullName) as IAppAgent).AddApplicationVectorLayer(mapModelService.TrafficMapVectorData);
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:11,代码来源:TrafficMapLogicSubSys.cs

示例6: VectorTrafficMap

 public VectorTrafficMap(IApplicationContext context)
 {
     ITrafficMapModelService service = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
     this.m_MapIndex = service.VectorTrafficMapMgr.VectorTrafficMapList.Count;
     this.Name = TrafficMapResource.TRAFFICMAP_VECTORMAP + this.m_MapIndex.ToString();
     this.m_ServiceContext = context;
     this.m_MapIndex++;
     Random random = new Random();
     this.m_TrafficMapColor = Color.FromArgb(120, random.Next(0, 0x100), random.Next(0, 0x100), random.Next(0, 0x100));
     this.Init();
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:11,代码来源:VectorTrafficMap.cs

示例7: CellTrafficMapMgr

 public CellTrafficMapMgr(IApplicationContext context, ITrafficMapModelService mservice)
 {
     this.m_ModelService = mservice;
     this.m_ServiceContext = context;
     this.m_ErrorMessageDic = new Dictionary<string, string>();
     this.m_ErrorMessageDic.Add(TrafficMapResource.TRAFFICMAP_NAME_EXIST, TrafficMapResource.TRAFFICMAP_MAP_EXIST);
     this.m_ErrorMessageDic.Add(TrafficMapResource.TRAFFICMAP_BELOWZERO, TrafficMapResource.TRAFFICMAP_VALUE_LARGE_ZERO);
     this.m_ErrorMessageDic.Add(TrafficMapResource.TRAFFICMAP_LARGEHUNDRED, TrafficMapResource.TRAFFICMAP_VALUE_SAMLL_HUNDRAND);
     this.m_ErrorMessageDic.Add(TrafficMapResource.TRAFFICMAP_NULL, TrafficMapResource.TRAFFICMAP_VALUE_NULL);
     ITrafficForMap map = context.Lookup(typeof(ITrafficForMap).FullName) as ITrafficForMap;
     map.CanMobilityDeletingEvent += new EventHandler<CancellerEventArgs>(this.DelMobilityEvent);
     map.CanServiceDeletingEvent += new EventHandler<CancellerEventArgs>(this.DelServiceEvent);
     map.CanTerminalDeletingEvent += new EventHandler<CancellerEventArgs>(this.DelTerminalEvent);
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:14,代码来源:CellTrafficMapMgr.cs

示例8: MapClutterHelper

 public MapClutterHelper(GeoPolygonRegion poly, IGeoPolygonAssist polyAssist, Dictionary<short, ClutterData> clutterDataDict, IApplicationContext appContext, bool isFixure)
 {
     this.m_ClutterAreaPercentDict = new Dictionary<short, double>();
     this.m_ClutterPtsCntDict = new Dictionary<short, int>();
     this.m_CluttersId = new List<short>();
     this.m_ClutterWeightFactorDict = new Dictionary<short, double>();
     this.m_ClutterDataDict = clutterDataDict;
     this.EventViewService = appContext.Lookup(typeof(IEventViewService).FullName) as IEventViewService;
     this.EventViewService.SetProgressScope(TrafficMapResource.TRAFFICMAP_GENUSER, 0, 100);
     this.m_ClutterPtsCntDict = polyAssist.GetClutterCountDict(poly, new SimulationProgressHandle(this.ReportProgrss), 5, 0x55, TrafficMapResource.TRAFFICMAP_GENUSER, !isFixure);
     this.EventViewService.ResetProgress(TrafficMapResource.TRAFFICMAP_GENUSER);
     this.GetClutterIDs();
     this.GetClutterAreaPercentDict();
     this.GetClutterWeightFactorDict();
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:15,代码来源:MapClutterHelper.cs

示例9: Load

 public void Load(IApplicationContext context)
 {
     try
     {
         XmlReaderSettings settings = new XmlReaderSettings {
             ProhibitDtd = false,
             ValidationType = ValidationType.DTD
         };
         XmlReader reader = XmlReader.Create(this.PLUGIN_CONFIG, settings);
         XmlDocument document = new XmlDocument();
         document.Load(reader);
         XmlNodeList childNodes = document.ChildNodes;
         XmlNode node = null;
         foreach (XmlNode node2 in childNodes)
         {
             if (node2.Name.Equals("TrafficMap"))
             {
                 node = node2;
                 break;
             }
         }
         if (node.ChildNodes != null)
         {
             XmlNodeList list2 = node.ChildNodes;
             foreach (XmlNode node3 in list2)
             {
                 if (node3.Name.Equals("CoverageInfo"))
                 {
                     string serviceName = node3.InnerText.Trim();
                     ITrafficMapCoveragePlugin item = context.Lookup(serviceName) as ITrafficMapCoveragePlugin;
                     this.m_PluginList.Add(item);
                 }
             }
         }
     }
     catch (Exception exception)
     {
         WriteLog.Logger.Error(exception.StackTrace);
         throw exception;
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:41,代码来源:TrafficMapPluginParser.cs

示例10: CellMapPropertiesFrm

 public CellMapPropertiesFrm(IApplicationContext context, List<NetWorkType> netTypeList)
 {
     this.m_AllTerminal = new Dictionary<string, Terminal>();
     this.m_AllMobility = new Dictionary<string, Mobility>();
     this.m_CellNamesInLowercase = new List<string>();
     this.m_ServiceContext = null;
     this.m_TrafficService = null;
     this.modelService = null;
     this.m_CellDataGridViewDict = new Dictionary<int, Dictionary<int, List<object>>>();
     this.inNode = null;
     this.m_ServiceList = null;
     this.m_TerminalList = null;
     this.m_OldMapName = string.Empty;
     this.components = null;
     this.m_ServiceContext = context;
     this.m_TrafficService = context.Lookup(typeof(ITrafficService).FullName) as ITrafficService;
     this.modelService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
     this.m_TrafficMapAutomation = context.Lookup(typeof(ITrafficMapFunction).FullName) as ITrafficMapFunction;
     this.m_netWorkTypeList = netTypeList;
     this.m_TrafficForMap = this.m_ServiceContext.Lookup(typeof(ITrafficForMap).FullName) as ITrafficForMap;
     this.InitializeComponent();
     this.InitCellMap();
     this.m_OldMapName = this.m_Map.Name;
     this.m_IsNodeAdded = false;
     this.Text = TrafficMapResource.TRAFFICMAP_CELL_PROPERTY;
     this.LoadCellMapProperty();
     this.btnApply.Enabled = false;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:28,代码来源:CellMapPropertiesFrm.cs

示例11: InitStage1

 public void InitStage1(IApplicationContext appContext)
 {
     if (!this.m_NetWorkTypeList.Contains(NetWorkType.CDMA))
     {
         TrafficServiceImpl impl = new TrafficServiceImpl(appContext, this.m_NetWorkType);
         this.m_Model = impl.TrafficColModel;
         this.m_TrafficService = appContext.Lookup(typeof(ITrafficService).FullName) as ITrafficService;
         this.m_TrafficInterface = new TrafficForNetEntity(appContext, this.m_Model);
         this.m_TrafficForMapInterface = new TrafficForMap(appContext, this.m_Model);
         this.m_TrafficForApp = new TrafficForApplication(appContext, this.m_Model);
         CalMcsEfficiency service = new CalMcsEfficiency(appContext, this.m_Model);
         appContext.RegisterService(this.m_TrafficInterface);
         appContext.RegisterService(this.m_TrafficForMapInterface);
         appContext.RegisterService(this.m_TrafficForApp);
         appContext.RegisterService(service);
         this.m_appContext = appContext;
         this.m_Antennas = ServiceHelper.Lookup<INetAntenna<AntennaEntity>>(appContext);
         this.m_SerializeHelper = new SerializedHelper(this.m_Model, this.m_TrafficSerializedData, this.m_NetWorkTypeList);
         this.InitManagement();
         this.InitExportExcelDic();
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:22,代码来源:TrafficSubSys.cs

示例12: InitParam

 private void InitParam(IApplicationContext context)
 {
     this.m_ServiceContext = context;
     this.m_TrafficMapService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
     this.m_TrafficModelService = this.m_ServiceContext.Lookup(typeof(ITrafficService).FullName) as ITrafficService;
     this.m_TrafficMapAutomation = ServiceHelper.Lookup<ITrafficMapFunction>(this.m_ServiceContext);
     this.InitHandleMap();
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:8,代码来源:VectorMapPropertiesFrm.cs


注:本文中的IApplicationContext.Lookup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。