Exemple #1
0
        public bool isWillPutToSt(BLL.VehicleBLL vehicleBLL, BLL.PortStationBLL portStationBLL, BLL.EqptBLL eqptBLL)
        {
            if (!IsCarryCommand)
            {
                return(false);
            }
            bool is_carry_cmd_cst = vehicleBLL.cache.IsCarryCstByCstID(VH_ID, CARRIER_ID);

            if (is_carry_cmd_cst)
            {
                bool is_target_port_agv_st = IsTargetPortAGVStation(portStationBLL, eqptBLL);
                return(is_target_port_agv_st);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
        public void start(SCApplication _app)
        {
            LineBLL        = _app.LineBLL;
            CMDBLL         = _app.CMDBLL;
            VehicleBLL     = _app.VehicleBLL;
            MapBLL         = _app.MapBLL;
            SegmentBLL     = _app.SegmentBLL;
            SectionBLL     = _app.SectionBLL;
            PortStationBLL = _app.PortStationBLL;
            ReportBLL      = _app.ReportBLL;
            VehicleService = _app.VehicleService;
            LineService    = _app.LineService;

            RouteGuide = _app.RouteGuide;

            NodeBLL = _app.NodeBLL;
            app     = _app;
        }
        public ASYSEXCUTEQUALITY GetSysExcuteQuality(BLL.VehicleBLL vehicleBLL)
        {
            int total_act_vh  = vehicleBLL.cache.getActVhCount();
            int total_idle_vh = vehicleBLL.cache.getIdleVhCount();

            return(new ASYSEXCUTEQUALITY()
            {
                CMD_ID_MCS = this.ID,
                CST_ID = this.CARRIER_ID,
                CMD_INSERT_TIME = this.CMD_INSER_TIME,
                SOURCE_ADR = this.HOSTSOURCE,
                DESTINATION_ADR = this.HOSTDESTINATION,
                TOTAL_ACT_VH_COUNT = total_act_vh,
                TOTAL_IDLE_VH_COUNT = total_idle_vh,
                PARKING_VH_COUNT = 0,
                CYCLERUN_VH_COUNT = 0
            });
        }
        //public ACARRIER GetCarrierInfo()
        public ACARRIER GetCarrierInfo(BLL.VehicleBLL vehicleBLL)
        {
            bool is_vh_location = vehicleBLL.cache.IsVehicleLocationExistByLocationRealID(this.HOSTSOURCE);

            return(new ACARRIER()
            {
                ID = this.CARRIER_ID,
                LOT_ID = this.LOT_ID,
                INSER_TIME = this.CMD_INSER_TIME,
                INSTALLED_TIME = this.CMD_INSER_TIME,
                LOCATION = this.HOSTSOURCE,
                //STATE = ProtocolFormat.OHTMessage.E_CARRIER_STATE.WaitIn,
                STATE = is_vh_location ? ProtocolFormat.OHTMessage.E_CARRIER_STATE.Installed :
                        ProtocolFormat.OHTMessage.E_CARRIER_STATE.WaitIn,
                HOSTSOURCE = this.HOSTSOURCE,
                HOSTDESTINATION = this.HOSTDESTINATION,
                READ_STATUS = ProtocolFormat.OHTMessage.E_ID_READ_STSTUS.Successful
            });
        }
 public CMD_MCSObjToShow(BLL.VehicleBLL vehicleBLL, ACMD_MCS cmdMcs)
 {
     cmd_mcs    = cmdMcs;
     VehicleBLL = vehicleBLL;
 }
Exemple #6
0
        public bool IsSourceOnVh(BLL.VehicleBLL vehicleBLL)
        {
            var vh = vehicleBLL.cache.getVehicleByLocationRealID(HOSTSOURCE);

            return(vh != null);
        }
 public CMD_MCSObjToShow(BLL.VehicleBLL vehicleBLL, BLL.PortStationBLL portStationBLL, ACMD_MCS _cmd_mcs)
 {
     cmd_mcs        = _cmd_mcs;
     VehicleBLL     = vehicleBLL;
     PortStationBLL = portStationBLL;
 }
Exemple #8
0
 public List <AVEHICLE> getCurrentVhs(BLL.VehicleBLL vehicleBLL)
 {
     return(vehicleBLL.cache.loadVhByZoneID(ZONE_ID));
 }