| | |
| | | }); |
| | | |
| | | // get placeSeg serial |
| | | int placeSegSerial = 9999; |
| | | int placeSegSerial; |
| | | // query placeSeg idx |
| | | int idx = -1; |
| | | for (int i = 0; i < destPosList.size(); i++) { |
| | |
| | | if (!blockVehicleDto.isAvoidable()) { |
| | | continue; |
| | | } |
| | | Long agvId = agvService.getAgvId(blockVehicleDto.getVehicle()); |
| | | // 当前vehicle正在进行避让作业 |
| | | if (!Cools.isEmpty(jamService.getUnfinishedAvoSegByAvo(blockVehicleDto.getVehicle(), null))) { |
| | | if (!Cools.isEmpty(jamService.getUnfinishedAvoSegByAvo(agvId, null))) { |
| | | continue; |
| | | } |
| | | // 当前vehicle正在进行滚筒输送线等待 |
| | | if () { |
| | | if (segmentService.isRollerWaiting(agvId)) { |
| | | continue; |
| | | } |
| | | return blockVehicleDto.getVehicle(); |
| | |
| | | * 阻塞任务 不管 |
| | | * 避让任务 未 完成 |
| | | */ |
| | | List<Jam> getUnfinishedAvoSegByAvo(String avoAgvNo, Segment currSeg); |
| | | List<Jam> getUnfinishedAvoSegByAvo(Long avoAgvId, Segment currSeg); |
| | | |
| | | List<Jam> queryByAvoid(Long avoAgv, JamStateType jamState); |
| | | |
| | |
| | | |
| | | Segment getRollerWaiting(Long agvId, Long codeId, TaskPosDto.PosType posType); |
| | | |
| | | Boolean isRollerWaiting(Long agvId); |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<Jam> getUnfinishedAvoSegByAvo(String avoAgvNo, Segment currSeg) { |
| | | Long agvId = agvService.getAgvId(avoAgvNo); |
| | | return this.baseMapper.selectUnfinishedAvoSegByAvo(agvId, null); |
| | | public List<Jam> getUnfinishedAvoSegByAvo(Long avoAgvId, Segment currSeg) { |
| | | return this.baseMapper.selectUnfinishedAvoSegByAvo(avoAgvId, null); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return segments.get(0); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean isRollerWaiting(Long agvId) { |
| | | return 0 < this.count(new LambdaQueryWrapper<Segment>() |
| | | .eq(Segment::getAgvId, agvId) |
| | | .eq(Segment::getState, SegmentStateType.WAITING.toString()) |
| | | .eq(Segment::getRollerWaiting, 1) |
| | | ); |
| | | } |
| | | |
| | | } |