| | |
| | | |
| | | import com.zy.asrs.framework.exception.CoolException; |
| | | 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.kernel.command.*; |
| | | 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; |
| | |
| | | private MotionService motionService; |
| | | @Autowired |
| | | private AgvCommandService agvCommandService; |
| | | // @Autowired |
| | | // private ConveyorCommandService conveyorCommandService; |
| | | @Autowired |
| | | private ConveyorCommandService conveyorCommandService; |
| | | @Autowired |
| | | private CraneCommandService craneCommandService; |
| | | @Autowired |
| | |
| | | Boolean executeRes = Boolean.FALSE; |
| | | switch (Objects.requireNonNull(MotionCtgType.get(motion.getMotionCtgEl())).deviceCtg) { |
| | | case CONVEYOR: |
| | | // executeRes = conveyorCommandService.accept(motion); |
| | | executeRes = conveyorCommandService.accept(motion); |
| | | break; |
| | | case CRANE: |
| | | executeRes = craneCommandService.accept(motion); |
| | |
| | | executeRes = shuttleCommandService.finish(motion); |
| | | break; |
| | | case CONVEYOR: |
| | | // executeRes = conveyorCommandService.finish(motion); |
| | | executeRes = conveyorCommandService.finish(motion); |
| | | break; |
| | | default: |
| | | break; |