public virtual void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: initEQStatus(); break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
public virtual void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: CarOutSafetyChcek(null, null); CarInSafetyChcek(null, null); MTL_LFTStatus(null, null); break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
public override void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { foreach (IValueDefMapAction action in valueDefMapActionDic.Values) { action.doShareMemoryInit(runLevel); } //對sub eqpt進行初始化 List <AUNIT> subUnitList = SCApplication.getInstance().getEQObjCacheManager().getUnitListByEquipment(EQPT_ID); if (subUnitList != null) { foreach (AUNIT unit in subUnitList) { unit.doShareMemoryInit(runLevel); } } List <APORT> subPortList = SCApplication.getInstance().getEQObjCacheManager().getPortListByEquipment(EQPT_ID); if (subPortList != null) { foreach (APORT port in subPortList) { port.doShareMemoryInit(runLevel); } } List <ABUFFER> subBuffList = SCApplication.getInstance().getEQObjCacheManager().getBuffListByEquipment(EQPT_ID); if (subBuffList != null) { foreach (ABUFFER buff in subBuffList) { buff.doShareMemoryInit(runLevel); } } }
public override void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { foreach (IValueDefMapAction action in valueDefMapActionDic.Values) { action.doShareMemoryInit(runLevel); } }
/// <summary> /// Does the share memory initialize. /// </summary> /// <param name="runLevel">The run level.</param> public override void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exception:"); } }
public virtual void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: //initFireReport(); initFireCrossSignal(); initFireDoorData(); break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
public virtual void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: initialValueWrite(); initialFilckTimerAction(); break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
public override void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { foreach (IValueDefMapAction action in valueDefMapActionDic.Values) { action.doShareMemoryInit(runLevel); } //對sub eqpt進行初始化 List <AEQPT> subEqptList = SCApplication.getInstance().getEQObjCacheManager().getEuipmentListByNode(NODE_ID); if (subEqptList != null) { foreach (AEQPT eqpt in subEqptList) { eqpt.doShareMemoryInit(runLevel); } } List <AVEHICLE> subVhList = SCApplication.getInstance().getEQObjCacheManager().getAllVehicle(); if (subVhList != null) { foreach (AVEHICLE vh in subVhList) { vh.doShareMemoryInit(runLevel); } } }
public virtual void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: DEVICE_NAME_TRAFFIC_LIGHT = eqpt.EQPT_ID; sendTrafficLightSignal(false, true, false, false, false, true); initTrafficLight(); //addVirtualVehicle(); //initFireDoorData(); break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
public virtual void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: MTLTrackClosedChange(null, null); break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
public override void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: //scApp.MapBLL.addVehicle(eqpt.VEHICLE_ID); //eqpt.VID_Collection.VID_70_VehicleID.VEHILCE_ID = eqpt.VEHICLE_ID; if (eqpt != null) { if (!SCUtility.isEmpty(eqpt.OHTC_CMD)) { ACMD_OHTC aCMD_OHTC = scApp.CMDBLL.getExcuteCMD_OHTCByCmdID(eqpt.OHTC_CMD); string[] PredictPath = scApp.CMDBLL.loadPassSectionByCMDID(eqpt.OHTC_CMD); List <string> segments = new List <string>(); string pre_segment_id = null; foreach (string section_id in PredictPath) { ASECTION section = scApp.SectionBLL.cache.GetSection(section_id); if (!SCUtility.isMatche(pre_segment_id, section.SEG_NUM)) { segments.Add(section.SEG_NUM.Trim()); pre_segment_id = section.SEG_NUM; } } scApp.CMDBLL.setVhExcuteCmdToShow(aCMD_OHTC, this.eqpt, segments, PredictPath, null, new List <string>(), new List <string>()); } } //先讓車子一開始都當作是"VehicleInstall"的狀態 //之後要從DB得知上次的狀態,是否為Remove eqpt.VehicleInstall(); break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
public override void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: if (eqpt != null) { //if (!SCUtility.isEmpty(eqpt.OHTC_CMD)) //{ // ACMD aCMD_OHTC = scApp.CMDBLL.getExcuteCMD_OHTCByCmdID(eqpt.OHTC_CMD); // string[] PredictPath = scApp.CMDBLL.loadPassSectionByCMDID(eqpt.OHTC_CMD); // List<string> segments = new List<string>(); // string pre_segment_id = null; // foreach (string section_id in PredictPath) // { // ASECTION section = scApp.SectionBLL.cache.GetSection(section_id); // if (!SCUtility.isMatche(pre_segment_id, section.SEG_NUM)) // { // segments.Add(section.SEG_NUM.Trim()); // pre_segment_id = section.SEG_NUM; // } // } // scApp.CMDBLL.setVhExcuteCmdToShow(aCMD_OHTC, this.eqpt, segments, PredictPath, null); //} //todo kevin 要重新想一下 路徑指示要如何實現 } //先讓車子一開始都當作是"VehicleInstall"的狀態 //之後要從DB得知上次的狀態,是否為Remove eqpt.VehicleInstall(); break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
public override void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { foreach (IValueDefMapAction action in valueDefMapActionDic.Values) { action.doShareMemoryInit(runLevel); } //對sub eqpt進行初始化 List <AZONE> subZoneList = SCApplication.getInstance().getEQObjCacheManager().getZoneListByLine(); if (subZoneList != null) { foreach (AZONE zone in subZoneList) { zone.doShareMemoryInit(runLevel); } } }
/// <summary> /// Does the share memory initialize. /// </summary> /// <param name="runLevel">The run level.</param> public override void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: //scApp.MapBLL.addVehicle(eqpt.VEHICLE_ID); //eqpt.VID_Collection.VID_70_VehicleID.VEHILCE_ID = eqpt.VEHICLE_ID; if (eqpt != null) { if (!SCUtility.isEmpty(eqpt.OHTC_CMD)) { ACMD_OHTC aCMD_OHTC = scApp.CMDBLL.getExcuteCMD_OHTCByCmdID(eqpt.OHTC_CMD); string[] PredictPath = scApp.CMDBLL.loadPassSectionByCMDID(eqpt.OHTC_CMD); scApp.CMDBLL.setVhExcuteCmdToShow(aCMD_OHTC, this.eqpt, PredictPath, null); } } //先讓車子一開始都當作是"VehicleInstall"的狀態 //之後要從DB得知上次的狀態,是否為Remove if (eqpt.IS_INSTALLED) { eqpt.VehicleInstall(); } break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
public virtual void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: CarOutSafetyChcek(null, null); CarOutActionType(null, null); CarInSafetyChcek(null, null); MTL_LFTStatus(null, null); //如果該機台為MTS1或者是MTL時,需要將兩台設定為互相doking的機台 if (eqpt is MaintainSpace && SCUtility.isMatche((eqpt as MaintainSpace).EQPT_ID, "MTS")) { (eqpt as MaintainSpace).DokingMaintainDevice = scApp.EquipmentBLL.cache.GetMaintainLift(); } else if (eqpt is MaintainLift && SCUtility.isMatche((eqpt as MaintainLift).EQPT_ID, "MTL")) { (eqpt as MaintainLift).DokingMaintainDevice = scApp.EquipmentBLL.cache.GetDockingMTLOfMaintainSpace(); } break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }
/// <summary> /// Does the share memory initialize. /// </summary> /// <param name="runLevel">The run level.</param> public override void doShareMemoryInit(BCFAppConstants.RUN_LEVEL runLevel) { try { switch (runLevel) { case BCFAppConstants.RUN_LEVEL.ZERO: if (eqpt != null) { if (!SCUtility.isEmpty(eqpt.OHTC_CMD)) { ACMD_OHTC aCMD_OHTC = scApp.CMDBLL.getExcuteCMD_OHTCByCmdID(eqpt.OHTC_CMD); string[] PredictPath = scApp.CMDBLL.loadPassSectionByCMDID(eqpt.OHTC_CMD); scApp.CMDBLL.setVhExcuteCmdToShow(aCMD_OHTC, this.eqpt, PredictPath, null, null, null); } } if (eqpt.IS_INSTALLED) { eqpt.VehicleInstall(); } break; case BCFAppConstants.RUN_LEVEL.ONE: break; case BCFAppConstants.RUN_LEVEL.TWO: break; case BCFAppConstants.RUN_LEVEL.NINE: break; } } catch (Exception ex) { logger.Error(ex, "Exection:"); } }