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; }
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; }
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(); }
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); }
private void changeMapName(ITrafficMapModelService modelService, int TrafficType, string oldName, string newName, bool isNodeChecked) { if (TrafficType == 0) { modelService.EnvTrafficMapMgr.RenameEnvTrafficMap(oldName, newName, isNodeChecked); } else if (TrafficType == 1) { modelService.VectorTrafficMapMgr.RenameVectorTrafficMap(oldName, newName, isNodeChecked); } else { modelService.CellTrafficMapMgr.RenameTrafficMap(oldName, newName); } }
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; }
private void Init() { this.m_ParentNode = new TreeNode(TrafficMapResource.TRAFFICMAP_PARENTNODE_NAME); this.m_ParentNode.Name = TrafficMapResource.TRAFFICMAP_PARENTNODE_TRAFFIC; this.m_ParentNode.SelectedImageKey = TrafficMapResource.TRAFFICMAP_FOLDER; this.m_ParentNode.ImageKey = TrafficMapResource.TRAFFICMAP_FOLDER; this.m_ParentNode.StateImageIndex = 1; this.m_ParentNode.ContextMenuStrip = this.contextMenuParent; this.m_TrafficMapFunction = ServiceHelper.Lookup<ITrafficMapFunction>(this.m_ServiceContext); this.modelService = this.m_ServiceContext.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService; this.m_TrafficMapEvent.Add(TrafficMapType.Environment, new ShowTrafficMapFrm(this.ShowEnvirmentFrm)); this.m_TrafficMapEvent.Add(TrafficMapType.Vector, new ShowTrafficMapFrm(this.ShowVector)); this.m_TrafficMapEvent.Add(TrafficMapType.CellCoverage, new ShowTrafficMapFrm(this.ShowCellCoverage)); this.m_TrafficPropertyEvent.Add(TrafficMapType.Environment, new ShowTrafficMapPropertyFrm(this.ShowEnvMapPropertiesFrm)); this.m_TrafficPropertyEvent.Add(TrafficMapType.Vector, new ShowTrafficMapPropertyFrm(this.ShowVectorMapPropertiesFrm)); this.m_TrafficPropertyEvent.Add(TrafficMapType.CellCoverage, new ShowTrafficMapPropertyFrm(this.Showcellfrm)); }
private void getVectorMapPolygonListAndColor(string nodeText, ITrafficMapModelService trafficMapService, bool visible) { trafficMapService.VectorTrafficMapMgr.GetVectorTrafficMap(nodeText).IsVisible = visible; }
private void getEnvMapPolygonListAndColor(string nodeName, ITrafficMapModelService trafficMapService, bool visible) { trafficMapService.EnvTrafficMapMgr.GetEnvTrafficMap(nodeName).IsVisible = visible; }
public TrafficMapMgr(IApplicationContext context) { this.m_ServiceContext = context; this.m_TrafficMapModelService = this.m_ServiceContext.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService; }
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(); }
public void InitStage2() { if (!this.m_NetWorkTypeList.Contains(NetWorkType.CDMA)) { this.m_TrafficMapModeService = ServiceHelper.Lookup<ITrafficMapModelService>(this.m_ServiceContext); this.trafficMapImp = new TrafficMapFunctionImp(this.m_ServiceContext, this.treeNode.MapTreeView); this.m_ServiceContext.RegisterService(this.trafficMapImp); } }