| | |
| | | return result; |
| | | } |
| | | |
| | | public synchronized String execute(Task task, AllocateSupport support) { |
| | | public synchronized String execute(Task task, AllocateSupport inbound, AllocateSupport normal) { |
| | | // inbound roller station |
| | | Sta rollerOriSta = getInboundRollerSta(task); |
| | | String inboundAgv = tryAllocateForRoller(task, rollerOriSta, true); |
| | | if (!Cools.isEmpty(inboundAgv)) { |
| | | inbound.success(task, inboundAgv); |
| | | return inboundAgv; |
| | | } |
| | | |
| | |
| | | Sta rollerDestSta = getOutboundRollerSta(task); |
| | | String outboundAgv = tryAllocateForRoller(task, rollerDestSta, false); |
| | | if (!Cools.isEmpty(outboundAgv)) { |
| | | normal.success(task, outboundAgv); |
| | | return outboundAgv; |
| | | } |
| | | |
| | | String normalAgv = this.normalExecute(task); |
| | | if (!Cools.isEmpty(normalAgv)) { |
| | | support.success(task, normalAgv); |
| | | normal.success(task, normalAgv); |
| | | return normalAgv; |
| | | } |
| | | |