| | |
| | | import com.zy.asrs.wcs.core.entity.Task; |
| | | import com.zy.asrs.wcs.core.kernel.command.AgvCommandService; |
| | | import com.zy.asrs.wcs.core.kernel.command.CraneCommandService; |
| | | import com.zy.asrs.wcs.core.kernel.command.LiftCommandService; |
| | | import com.zy.asrs.wcs.core.kernel.command.ShuttleCommandService; |
| | | import com.zy.asrs.wcs.core.model.enums.DeviceCtgType; |
| | | import com.zy.asrs.wcs.core.model.enums.MotionCtgType; |
| | | import com.zy.asrs.wcs.core.model.enums.MotionStsType; |
| | | import com.zy.asrs.wcs.core.model.enums.TaskStsType; |
| | | import com.zy.asrs.wcs.core.service.TaskService; |
| | | import com.zy.asrs.wcs.rcs.entity.Motion; |
| | | import com.zy.asrs.wcs.rcs.service.MotionService; |
| | | import com.zy.asrs.wcs.core.entity.Motion; |
| | | import com.zy.asrs.wcs.core.service.MotionService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | |
| | | // private ConveyorCommandService conveyorCommandService; |
| | | @Autowired |
| | | private CraneCommandService craneCommandService; |
| | | // @Autowired |
| | | // private LiftCommandService liftCommandService; |
| | | @Autowired |
| | | private LiftCommandService liftCommandService; |
| | | @Autowired |
| | | private ShuttleCommandService shuttleCommandService; |
| | | |
| | | @Scheduled(cron = "0/1 * * * * ? ") |
| | | // @Scheduled(cron = "0/1 * * * * ? ") |
| | | public synchronized void executeWrkMast() { |
| | | Date now = new Date(); |
| | | // ANALYZE_INBOUND |
| | |
| | | executeRes = shuttleCommandService.accept(motion); |
| | | break; |
| | | case LIFT: |
| | | // executeRes = liftCommandService.accept(motion); |
| | | executeRes = liftCommandService.accept(motion); |
| | | break; |
| | | case AGV: |
| | | executeRes = agvCommandService.accept(motion); |
| | |
| | | case CRANE: |
| | | break; |
| | | case LIFT: |
| | | // executeRes = liftCommandService.finish(motion); |
| | | executeRes = liftCommandService.finish(motion); |
| | | break; |
| | | case SHUTTLE: |
| | | executeRes = shuttleCommandService.finish(motion); |